View | Details | Raw Unified | Return to bug 16012
Collapse All | Expand All

(-)a/admin/authtypes.pl (-1 / +1 lines)
Lines 44-50 my ( $template, $borrowernumber, $cookie ) = get_template_and_user( Link Here
44
44
45
if ( $op eq 'add_form' ) {
45
if ( $op eq 'add_form' ) {
46
    my $authority_type;
46
    my $authority_type;
47
    if ($authtypecode) {
47
    if (defined $authtypecode) {
48
        $authority_type = Koha::Authority::Types->find($authtypecode);
48
        $authority_type = Koha::Authority::Types->find($authtypecode);
49
    }
49
    }
50
50
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authtypes.tt (-6 / +5 lines)
Lines 1-7 Link Here
1
[% INCLUDE 'doc-head-open.inc' %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; Administration &rsaquo; Authority types
2
<title>Koha &rsaquo; Administration &rsaquo; Authority types
3
[% IF op == 'add_form' %]
3
[% IF op == 'add_form' %]
4
&rsaquo; [% IF authority_type.authtypecode %]Modify authority type[% ELSE %]New authority type[% END %]
4
&rsaquo; [% IF authority_type.authtypecode.defined %]Modify authority type[% ELSE %]New authority type[% END %]
5
[% ELSIF op == 'delete_confirm' %]
5
[% ELSIF op == 'delete_confirm' %]
6
&rsaquo; Confirm deletion of authority type
6
&rsaquo; Confirm deletion of authority type
7
[% END %]
7
[% END %]
Lines 32-38 Link Here
32
&rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
32
&rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
33
&rsaquo; <a href="/cgi-bin/koha/admin/authtypes.pl">Authority types</a>
33
&rsaquo; <a href="/cgi-bin/koha/admin/authtypes.pl">Authority types</a>
34
[% IF op == 'add_form' %]
34
[% IF op == 'add_form' %]
35
&rsaquo; [% IF authority_type.authtypecode %]Modify[% ELSE %]New[% END %] Authority type
35
&rsaquo; [% IF authority_type.authtypecode.defined %]Modify[% ELSE %]New[% END %] Authority type
36
[% ELSIF op == 'delete_confirm' %]
36
[% ELSIF op == 'delete_confirm' %]
37
&rsaquo; Confirm deletion of authority type
37
&rsaquo; Confirm deletion of authority type
38
[% END %]
38
[% END %]
Lines 70-76 Link Here
70
    <form action="/cgi-bin/koha/admin/authtypes.pl" name="Aform" method="post" class="validated">
70
    <form action="/cgi-bin/koha/admin/authtypes.pl" name="Aform" method="post" class="validated">
71
        <fieldset class="rows">
71
        <fieldset class="rows">
72
            <legend>
72
            <legend>
73
                [% IF authority_type.authtypecode %]
73
                [% IF authority_type.authtypecode.defined %]
74
                    Modify authority type
74
                    Modify authority type
75
                [% ELSE %]
75
                [% ELSE %]
76
                    New authority type
76
                    New authority type
Lines 78-84 Link Here
78
            </legend>
78
            </legend>
79
            <ol>
79
            <ol>
80
                <li>
80
                <li>
81
                    [% IF authority_type.authtypecode %]
81
                    [% IF authority_type.authtypecode.defined %]
82
                            <span class="label">Authority type</span>
82
                            <span class="label">Authority type</span>
83
                            <input type="hidden" name="op" value="add_validate" />
83
                            <input type="hidden" name="op" value="add_validate" />
84
                            <input type="hidden" name="checked" value="0" />
84
                            <input type="hidden" name="checked" value="0" />
Lines 103-109 Link Here
103
                    <label for="auth_tag_to_report">Authority field to copy: </label>
103
                    <label for="auth_tag_to_report">Authority field to copy: </label>
104
                    <input type="text" id="auth_tag_to_report" name="auth_tag_to_report" size="5" maxlength="3" value="[% authority_type.auth_tag_to_report %]" />
104
                    <input type="text" id="auth_tag_to_report" name="auth_tag_to_report" size="5" maxlength="3" value="[% authority_type.auth_tag_to_report %]" />
105
                    <input type="hidden" name="op" value="add_validate" />
105
                    <input type="hidden" name="op" value="add_validate" />
106
                    [% IF authority_type.authtypecode %]
106
                    [% IF authority_type.authtypecode.defined %]
107
                        <input type="hidden" name="is_a_modif" value="1" />
107
                        <input type="hidden" name="is_a_modif" value="1" />
108
                    [% END %]
108
                    [% END %]
109
                </li>
109
                </li>
110
- 

Return to bug 16012