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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/patron-attr-types.tt (-5 / +17 lines)
Lines 77-83 Link Here
77
           <input type="text" id="description" name="description" required="required" class="required" size="50" maxlength="250" value="[% attribute_type.description |html %]" />
77
           <input type="text" id="description" name="description" required="required" class="required" size="50" maxlength="250" value="[% attribute_type.description |html %]" />
78
           <span class="required">Required</span>
78
           <span class="required">Required</span>
79
       </li>
79
       </li>
80
       <li><label for="repeatable">Repeatable: </label>
80
81
        [% IF attribute_type AND attribute_type.repeatable AND NOT can_be_set_to_nonrepeatable %]
82
            <li aria-disabled="true">
83
        [% ELSE %]
84
            <li>
85
        [% END %]
86
            <label for="repeatable">Repeatable: </label>
81
            [% IF attribute_type %]
87
            [% IF attribute_type %]
82
                [% IF attribute_type.repeatable AND NOT can_be_set_to_nonrepeatable %]
88
                [% IF attribute_type.repeatable AND NOT can_be_set_to_nonrepeatable %]
83
                    <input type="checkbox" id="repeatable" name="repeatable" checked="checked" disabled="disabled" />
89
                    <input type="checkbox" id="repeatable" name="repeatable" checked="checked" disabled="disabled" />
Lines 91-98 Link Here
91
                <input type="checkbox" id="repeatable" name="repeatable" />
97
                <input type="checkbox" id="repeatable" name="repeatable" />
92
            [% END %]
98
            [% END %]
93
            <span>Check to let a patron record have multiple values of this attribute.</span>
99
            <span>Check to let a patron record have multiple values of this attribute.</span>
94
       </li>
100
        </li>
95
       <li><label for="unique_id">Unique identifier: </label>
101
102
        [% IF attribute_type AND not can_be_set_to_unique %]
103
            <li aria-disabled="true">
104
        [% ELSE %]
105
            <li>
106
        [% END %]
107
            <label for="unique_id">Unique identifier: </label>
96
            [% IF attribute_type %]
108
            [% IF attribute_type %]
97
                [% IF attribute_type.unique_id %]
109
                [% IF attribute_type.unique_id %]
98
                    <input type="checkbox" id="unique_id" name="unique_id" checked="checked" />
110
                    <input type="checkbox" id="unique_id" name="unique_id" checked="checked" />
Lines 107-113 Link Here
107
            [% END %]
119
            [% END %]
108
            <span>If checked, attribute will be a unique identifier &mdash; if a value is given to a patron record, the same value
120
            <span>If checked, attribute will be a unique identifier &mdash; if a value is given to a patron record, the same value
109
                  cannot be given to a different record.</span>
121
                  cannot be given to a different record.</span>
110
       </li>
122
        </li>
123
111
       <li><label for="opac_display">Display in OPAC: </label>
124
       <li><label for="opac_display">Display in OPAC: </label>
112
          [% IF attribute_type AND attribute_type.opac_display %]
125
          [% IF attribute_type AND attribute_type.opac_display %]
113
            <input type="checkbox" id="opac_display" name="opac_display" checked="checked" />
126
            <input type="checkbox" id="opac_display" name="opac_display" checked="checked" />
114
- 

Return to bug 8326