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

(-)a/admin/auth_subfields_structure.pl (-35 / +8 lines)
Lines 140-180 if ($op eq 'add_form') { Link Here
140
140
141
		my %row_data;  # get a fresh hash for the row data
141
		my %row_data;  # get a fresh hash for the row data
142
        $row_data{defaultvalue} = $data->{defaultvalue};
142
        $row_data{defaultvalue} = $data->{defaultvalue};
143
		$row_data{tab} = CGI::scrolling_list(-name=>'tab',
143
        $row_data{tab} = {
144
					-id=>"tab$i",
144
                    id      => "tab$i",
145
                                        -values =>
145
                    default => $data->{'tab'},
146
                                        [ '-1', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10' ],
146
                    };
147
                                        -labels => {
147
        $row_data{ohidden} = {
148
                                            '-1' => 'ignore',
148
                    id      => "ohidden$i",
149
                                            '0'  => '0',
149
                    default => $data->{'hidden'}
150
                                            '1'  => '1',
150
                    };
151
                                            '2'  => '2',
152
                                            '3'  => '3',
153
                                            '4'  => '4',
154
                                            '5'  => '5',
155
                                            '6'  => '6',
156
                                            '7'  => '7',
157
                                            '8'  => '8',
158
                                            '9'  => '9',
159
                                        },
160
					-default=>$data->{'tab'},
161
					-size=>1,
162
		 			-tabindex=>'',
163
					-multiple=>0,
164
					);
165
		$row_data{ohidden} = CGI::scrolling_list(-name=>'ohidden',
166
					-id=>"ohidden$i",
167
					#-values=>['0','1','2'],
168
					#-labels => {'0'=>'Show','1'=>'Show Collapsed',
169
					#				'2' =>'Hide',
170
					#				},
171
					-values=>['0','-5'],
172
					-labels => {'0'=>'Show All','-5'=>'Hide All',},
173
					-default=>$data->{'hidden'},
174
					#-default=>"-5",
175
					-size=>1,
176
					-multiple=>0,
177
					);
178
		#$row_data{ihidden} = CGI::scrolling_list(-name=>'ihidden',
151
		#$row_data{ihidden} = CGI::scrolling_list(-name=>'ihidden',
179
		#			-id=>"ihidden$i",
152
		#			-id=>"ihidden$i",
180
		#			-values=>['0','1','2'],
153
		#			-values=>['0','1','2'],
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_subfields_structure.tt (-3 / +31 lines)
Lines 88-99 function displayMoreConstraint(numlayer){ Link Here
88
                <li><label for="mandatory[% loo.row %]">Mandatory: </label>[% loo.mandatory %]&nbsp;</li>
88
                <li><label for="mandatory[% loo.row %]">Mandatory: </label>[% loo.mandatory %]&nbsp;</li>
89
                <li><label for="liblibrarian[% loo.row %]">Text for librarian: </label><input id="liblibrarian[% loo.row %]" type="text" name="liblibrarian" value="[% loo.liblibrarian %]" size="40" maxlength="80" /></li>
89
                <li><label for="liblibrarian[% loo.row %]">Text for librarian: </label><input id="liblibrarian[% loo.row %]" type="text" name="liblibrarian" value="[% loo.liblibrarian %]" size="40" maxlength="80" /></li>
90
                <li><label for="libopac[% loo.row %]">Text for OPAC: </label><input type="text" id="libopac[% loo.row %]" name="libopac" value="[% loo.libopac %]" size="40" maxlength="80" /></li>
90
                <li><label for="libopac[% loo.row %]">Text for OPAC: </label><input type="text" id="libopac[% loo.row %]" name="libopac" value="[% loo.libopac %]" size="40" maxlength="80" /></li>
91
                <li><label for="tab[% loo.row %]">Managed in tab: </label>[% loo.tab %] (ignore means that the subfield does not display in the record editor)</li>
91
                <li><label for="tab[% loo.row %]">Managed in tab: </label>
92
                    <select name="tab" tabindex="" size="1" id="[% loo.tab.id %]">
93
                        [%- IF ( loo.tab.default ==  -1 ) -%]
94
                        <option value="-1" selected="selected">ignore</option>
95
                        [%- ELSE -%]
96
                        <option value="-1">ignore</option>
97
                        [%- END -%]
98
                    [%- FOREACH t IN [ '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10'] -%]
99
                        [%- IF ( loo.tab.default ==  t ) -%]
100
                        <option value="[%- t -%]" selected="selected">[%- t -%]</option>
101
                        [%- ELSE -%]
102
                        <option value="[%- t -%]">[%- t -%]</option>
103
                        [%- END -%]
104
                    [%- END -%]
105
                    </select>
106
                    (ignore means that the subfield does not display in the record editor)
107
                </li>
92
                <li>
108
                <li>
93
                    <fieldset>
109
                    <fieldset>
94
                        <legend>Display</legend>
110
                        <legend>Display</legend>
95
                        <ol>
111
                        <ol>
96
                            <li><label for="ohidden[% loo.row %]">Select to display or not:</label>[% loo.ohidden %]  </li>
112
                            <li><label for="ohidden[% loo.row %]">Select to display or not:</label>
113
                                <select name="ohidden" size="1" id="[% loo.ohidden.id %]">
114
                                    [%- IF ( loo.ohidden.default ==  0 ) -%]
115
                                    <option value= "0" selected="selected">Show all</option>
116
                                    <option value="-5">Hide all</option>
117
                                    [%- ELSIF ( loo.ohidden.default == -5 ) -%]
118
                                    <option value= "0">Show all</option>
119
                                    <option value="-5" selected="selected">Hide all</option>
120
                                    [%- ELSE -%]
121
                                    <option value= "0">Show all</option>
122
                                    <option value="-5">Hide all</option>
123
                                    [%- END -%]
124
                                </select>
125
                            </li>
97
                            <!-- <li><label for="ihidden[% loo.row %]">Intranet:</label>[% loo.ihidden %] </li> -->
126
                            <!-- <li><label for="ihidden[% loo.row %]">Intranet:</label>[% loo.ihidden %] </li> -->
98
                            <!-- <li><label for="ehidden[% loo.row %]">Editor:</label>[% loo.ehidden %] (see online help)</li> -->
127
                            <!-- <li><label for="ehidden[% loo.row %]">Editor:</label>[% loo.ehidden %] (see online help)</li> -->
99
                        </ol>
128
                        </ol>
100
- 

Return to bug 11508