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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt (-83 / +88 lines)
Lines 1-7 Link Here
1
[% INCLUDE 'doc-head-open.inc' %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; Administration &rsaquo; Authorized values [% IF ( add_form ) %] &rsaquo; [% IF ( action_modify ) %]Modify authorized value[% END %]
2
<title>Koha &rsaquo; Administration &rsaquo; Authorized values [% IF ( add_form ) %] &rsaquo; [% IF ( action_modify ) %]Modify authorized value[% END %]
3
	   [% IF ( action_add_value ) %] &rsaquo;  New authorized value[% END %]
3
[% IF ( action_add_value ) %] &rsaquo;  New authorized value[% END %]
4
	   [% IF ( action_add_category ) %] &rsaquo; New category[% END %][% END %]
4
[% IF ( action_add_category ) %] &rsaquo; New category[% END %][% END %]
5
[% IF ( delete_confirm ) %] &rsaquo; Confirm deletion[% END %]
5
[% IF ( delete_confirm ) %] &rsaquo; Confirm deletion[% END %]
6
[% IF ( else ) %]Authorized values[% END %]</title>
6
[% IF ( else ) %]Authorized values[% END %]</title>
7
[% INCLUDE 'doc-head-close.inc' %]
7
[% INCLUDE 'doc-head-close.inc' %]
Lines 43-51 $(document).ready(function() { Link Here
43
[% END %]
43
[% END %]
44
44
45
<style type="text/css">
45
<style type="text/css">
46
	fieldset.rows div.toptabs li { clear:none;margin-right:.5em;padding-bottom:0;width:auto; }
46
    fieldset.rows div.toptabs li { clear:none;margin-right:.5em;padding-bottom:0;width:auto; }
47
    fieldset.rows div.toptabs .ui-tabs-nav li.ui-tabs-selected {background-color : #F4F8F9; }
47
    fieldset.rows div.toptabs .ui-tabs-nav li.ui-tabs-selected {background-color : #F4F8F9; }
48
	fieldset.rows .ui-tabs-panel { margin-right : 10px; margin-left : 10px;margin-bottom:10px;}
48
    fieldset.rows .ui-tabs-panel { margin-right : 10px; margin-left : 10px;margin-bottom:10px;}
49
    fieldset.rows .ui-tabs-nav { margin-left : 10px; }
49
    fieldset.rows .ui-tabs-nav { margin-left : 10px; }
50
</style>
50
</style>
51
</head>
51
</head>
Lines 53-103 $(document).ready(function() { Link Here
53
[% INCLUDE 'header.inc' %]
53
[% INCLUDE 'header.inc' %]
54
[% INCLUDE 'cat-search.inc' %]
54
[% INCLUDE 'cat-search.inc' %]
55
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> &rsaquo; [% IF ( add_form ) %] <a href="/cgi-bin/koha/admin/authorised_values.pl">Authorized values</a> &rsaquo; [% IF ( action_modify ) %]Modify authorized value[% END %]
55
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> &rsaquo; [% IF ( add_form ) %] <a href="/cgi-bin/koha/admin/authorised_values.pl">Authorized values</a> &rsaquo; [% IF ( action_modify ) %]Modify authorized value[% END %]
56
	   [% IF ( action_add_value ) %]New authorized value[% END %]
56
[% IF ( action_add_value ) %]New authorized value[% END %]
57
	   [% IF ( action_add_category ) %]New category[% END %][% END %]
57
[% IF ( action_add_category ) %]New category[% END %][% END %]
58
[% IF ( delete_confirm ) %] <a href="/cgi-bin/koha/admin/authorised_values.pl">Authorized values</a> &rsaquo; Confirm deletion[% END %]
58
[% IF ( delete_confirm ) %] <a href="/cgi-bin/koha/admin/authorised_values.pl">Authorized values</a> &rsaquo; Confirm deletion[% END %]
59
[% IF ( else ) %]Authorized values[% END %]</div>
59
[% IF ( else ) %]Authorized values[% END %]</div>
60
60
61
<div id="doc3" class="yui-t2">
61
<div id="doc3" class="yui-t2">
62
   
62
   
63
   <div id="bd">
63
   <div id="bd">
64
	<div id="yui-main">
64
    <div id="yui-main">
65
	<div class="yui-b">
65
    <div class="yui-b">
66
66
67
[% IF ( add_form ) %]
67
[% IF ( add_form ) %]
68
	<h1>
68
    <h1>
69
	   [% IF ( action_modify ) %]Modify authorized value[% END %]
69
       [% IF ( action_modify ) %]Modify authorized value[% END %]
70
	   [% IF ( action_add_value ) %]New authorized value[% END %]
70
       [% IF ( action_add_value ) %]New authorized value[% END %]
71
	   [% IF ( action_add_category ) %]New category[% END %]
71
       [% IF ( action_add_category ) %]New category[% END %]
72
	</h1>
72
    </h1>
73
73
74
    [% IF ( action_modify ) %]<div class="note"><strong>NOTE:</strong> If you change an authorized value, existing records using it won't be updated.</div>[% END %]
74
    [% IF ( action_modify ) %]<div class="note"><strong>NOTE:</strong> If you change an authorized value, existing records using it won't be updated.</div>[% END %]
75
75
76
	<form action="[% script_name %]" name="Aform" class="validated" method="post">
76
    <form action="[% script_name %]" name="Aform" class="validated" method="post">
77
	<input type="hidden" name="op" value="add_validate" />
77
    <input type="hidden" name="op" value="add_validate" />
78
    <input type="hidden" name="offset" value="[% offset %]" />
78
    <input type="hidden" name="offset" value="[% offset %]" />
79
        <fieldset class="rows"><ol>
79
        <fieldset class="rows">
80
        <ol>
80
        <li>
81
        <li>
81
        [% IF ( action_add_category ) %]<label for="category">Category: </label>
82
            [% IF ( action_add_category ) %]<label for="category">Category: </label>
82
            <input type="text" name="category"  id="category" size="16" maxlength="16" class="focus,required" required="required" />
83
                <input type="text" name="category"  id="category" size="16" maxlength="16" class="focus,required" required="required" />
83
			 [% ELSE %]<span class="label">Category</span>
84
            [% ELSE %]<span class="label">Category</span>
84
		<input type="hidden" name="category" value="[% category %]" />	 [% category %]
85
                <input type="hidden" name="category" value="[% category %]" />	 [% category %]
85
			 [% END %]
86
            [% END %]
86
        </li>
87
        </li>
87
        <li>
88
        <li>
88
            <label for="authorised_value">Authorized value: </label>
89
            <label for="authorised_value">Authorized value: </label>
89
     [% IF ( action_modify ) %]<input type="hidden" id="id" name="id" value="[% id %]" />[% END %]
90
            [% IF ( action_modify ) %]<input type="hidden" id="id" name="id" value="[% id %]" />[% END %]
90
            [% IF ( action_add_category ) %]
91
            [% IF ( action_add_category ) %]
91
            <input type="text" id="authorised_value" name="authorised_value" value="[% authorised_value %]" maxlength="80" />
92
                <input type="text" id="authorised_value" name="authorised_value" value="[% authorised_value %]" maxlength="80" />
92
            [% ELSE %]
93
            [% ELSE %]
93
            <input type="text" id="authorised_value" name="authorised_value" value="[% authorised_value %]" maxlength="80" class="focus" />
94
                <input type="text" id="authorised_value" name="authorised_value" value="[% authorised_value %]" maxlength="80" class="focus" />
94
            [% END %]
95
            [% END %]
95
        </li>
96
        </li>
96
        <li>
97
        <li>
97
            <label for="lib">Description: </label>
98
            <label for="lib">Description: </label>
98
            <input type="text" name="lib" id="lib" value="[% lib %]" maxlength="200" />
99
            <input type="text" name="lib" id="lib" value="[% lib %]" maxlength="200" />
99
        </li>
100
        </li>
100
	<li>
101
        <li>
101
            <label for="lib_opac">Description (OPAC): </label>
102
            <label for="lib_opac">Description (OPAC): </label>
102
            <input type="text" name="lib_opac" id="lib_opac" value="[% lib_opac %]" maxlength="200" />
103
            <input type="text" name="lib_opac" id="lib_opac" value="[% lib_opac %]" maxlength="200" />
103
        </li>
104
        </li>
Lines 116-152 $(document).ready(function() { Link Here
116
            </span>
117
            </span>
117
        </li>
118
        </li>
118
119
119
		</ol>
120
        </ol>
120
        <div id="icons" class="toptabs" style="clear:both">
121
        <div id="icons" class="toptabs" style="clear:both">
121
        <h5 style="margin-left:10px;">Choose an icon:</h5>
122
        <h5 style="margin-left:10px;">Choose an icon:</h5>
122
			<ul>
123
        <ul>
123
                  <li><a href="#none">None</a></li>
124
            <li><a href="#none">None</a></li>
124
				  [% FOREACH imageset IN imagesets %]
125
            [% FOREACH imageset IN imagesets %]
125
                        [% IF ( imageset.imagesetactive ) %]<li class="ui-tabs-selected">[% ELSE %]<li>[% END %]<a href="#[% imageset.imagesetname %]">[% imageset.imagesetname %]</a></li>
126
                [% IF ( imageset.imagesetactive ) %]<li class="ui-tabs-selected">[% ELSE %]<li>[% END %]<a href="#[% imageset.imagesetname %]">[% imageset.imagesetname %]</a></li>
126
				  [% END %]
127
            [% END %]
127
			</ul>
128
        </ul>
128
  <div id="none"><ul>
129
  <div id="none"><ul>
129
  <li><label for="noimage">No image: </label><input type="radio" name="imageurl" id="noimage" value="removeImage" /></li>
130
  <li><label for="noimage">No image: </label><input type="radio" name="imageurl" id="noimage" value="removeImage" /></li>
130
  </ul>
131
  </ul>
131
  <br class="clear" /></div>
132
  <br class="clear" /></div>
132
  [% FOREACH imageset IN imagesets %]
133
  [% FOREACH imageset IN imagesets %]
133
  <div id="[% imageset.imagesetname %]"><ul>
134
  <div id="[% imageset.imagesetname %]">
135
  <ul>
134
  [% FOREACH image IN imageset.images %]
136
  [% FOREACH image IN imageset.images %]
135
			<li style="float: none; display: inline-block; clear : none; width: auto;">
137
        <li style="float: none; display: inline-block; clear : none; width: auto;">
136
            <label> [% IF ( image.StaffImageUrl ) %]
138
            <label>
137
              <img src="[% image.StaffImageUrl %]" alt="[% image.StaffImageUrl %]" title="[% image.StaffImageUrl %]" />
139
                [% IF ( image.StaffImageUrl ) %]
138
        [% ELSE %]
140
                    <img src="[% image.StaffImageUrl %]" alt="[% image.StaffImageUrl %]" title="[% image.StaffImageUrl %]" />
139
        [% END %]
141
                [% ELSE %]
140
    [% IF ( image.checked ) %]
142
                [% END %]
141
              <input type="radio" name="imageurl" value="[% image.KohaImage %]" checked="checked" />
143
                [% IF ( image.checked ) %]
142
    [% ELSE %]
144
                      <input type="radio" name="imageurl" value="[% image.KohaImage %]" checked="checked" />
143
              [% IF ( image.KohaImage ) %] <!-- to delete the radio button if there is no image after -->
145
                [% ELSE %]
144
              <input type="radio" name="imageurl" value="[% image.KohaImage %]" />
146
                      [% IF ( image.KohaImage ) %] <!-- to delete the radio button if there is no image after -->
145
              [% END %]
147
                          <input type="radio" name="imageurl" value="[% image.KohaImage %]" />
146
    [% END %]
148
                      [% END %]
149
                [% END %]
147
            </label>
150
            </label>
148
			</li>
151
        </li>
149
  [% END %]</ul>
152
  [% END %]
153
  </ul>
150
  <br class="clear" />
154
  <br class="clear" />
151
  </div>
155
  </div>
152
  [% END %]
156
  [% END %]
Lines 159-185 $(document).ready(function() { Link Here
159
163
160
164
161
[% IF ( delete_confirm ) %]
165
[% IF ( delete_confirm ) %]
162
	<div class="dialog alert">
166
<div class="dialog alert">
163
<h3>Confirm deletion</h3>
167
    <h3>Confirm deletion</h3>
164
<table>
168
    <table>
165
	<tr>
169
        <tr>
166
		<th>Category</th>
170
            <th>Category</th>
167
		<th>Value</th>
171
            <th>Value</th>
168
		<th>Description</th>
172
            <th>Description</th>
169
		<th>Description (OPAC)</th>
173
            <th>Description (OPAC)</th>
170
	</tr>
174
        </tr>
171
	<tr>
175
        <tr>
172
	    <td>[% searchfield %]</td>
176
            <td>[% searchfield %]</td>
173
	    <td>[% Tvalue %]</td>
177
            <td>[% Tvalue %]</td>
174
	    <td>[% Tlib %]</td>
178
            <td>[% Tlib %]</td>
175
	    <td>[% Tlib_opac %]</td>
179
            <td>[% Tlib_opac %]</td>
176
	</tr>
180
        </tr>
177
	</table>
181
    </table>
178
	<form action="[% script_name %]" method="post">
182
    <form action="[% script_name %]" method="post">
179
		<input type="hidden" name="op" value="delete_confirmed" />
183
        <input type="hidden" name="op" value="delete_confirmed" />
180
		<input type="hidden" name="id" value="[% id %]" />
184
        <input type="hidden" name="id" value="[% id %]" />
181
        <input type="hidden" name="searchfield" value="[% searchfield %]" /><fieldset class="action"><input type="submit" value="Yes, delete" class="approve" /></form>
185
        <input type="hidden" name="searchfield" value="[% searchfield %]" /><fieldset class="action"><input type="submit" value="Yes, delete" class="approve" /></form>
182
<form action="[% script_name %]" method="get"><input type="hidden" name="searchfield" value="[% searchfield %]" /><input type="submit" value="No, do not delete" class="deny" /></form>
186
        <form action="[% script_name %]" method="get"><input type="hidden" name="searchfield" value="[% searchfield %]" /><input type="submit" value="No, do not delete" class="deny" />
187
    </form>
183
</div>
188
</div>
184
[% END %]
189
[% END %]
185
190
Lines 241-254 $(document).ready(function() { Link Here
241
246
242
[% IF ( loop ) %]<table id="table_authorized_values" class="tablesorter">
247
[% IF ( loop ) %]<table id="table_authorized_values" class="tablesorter">
243
<thead><tr>
248
<thead><tr>
244
	<th>Authorized value</th>
249
    <th>Authorized value</th>
245
	<th>Description</th>
250
    <th>Description</th>
246
	<th>Description (OPAC)</th>
251
    <th>Description (OPAC)</th>
247
	<th>Icon</th>
252
    <th>Icon</th>
248
    <th>Branches limitations</th>
253
    <th>Branches limitations</th>
249
	<th>Edit</th>
254
    <th>Edit</th>
250
	<th>Delete</th>
255
    <th>Delete</th>
251
	</tr>
256
    </tr>
252
</thead><tbody>
257
</thead><tbody>
253
[% FOREACH loo IN loop %]
258
[% FOREACH loo IN loop %]
254
[% UNLESS ( loop.odd ) %]
259
[% UNLESS ( loop.odd ) %]
Lines 256-265 $(document).ready(function() { Link Here
256
[% ELSE %]
261
[% ELSE %]
257
<tr>
262
<tr>
258
[% END %]
263
[% END %]
259
	<td>[% loo.authorised_value %]</td>
264
    <td>[% loo.authorised_value %]</td>
260
	<td>[% loo.lib %]</td>
265
    <td>[% loo.lib %]</td>
261
	<td>[% loo.lib_opac %]</td>
266
    <td>[% loo.lib_opac %]</td>
262
	<td>[% IF ( loo.imageurl ) %]<img src="[% loo.imageurl %]" alt=""/>[% ELSE %]&nbsp;[% END %]</td>
267
    <td>[% IF ( loo.imageurl ) %]<img src="[% loo.imageurl %]" alt=""/>[% ELSE %]&nbsp;[% END %]</td>
263
    <td>
268
    <td>
264
        [% IF loo.branches.size > 0 %]
269
        [% IF loo.branches.size > 0 %]
265
            [% branches_str = "" %]
270
            [% branches_str = "" %]
Lines 276-283 $(document).ready(function() { Link Here
276
            No limitation
281
            No limitation
277
        [% END %]
282
        [% END %]
278
    </td>
283
    </td>
279
	<td><a href="[% loo.edit %]">Edit</a></td>
284
    <td><a href="[% loo.edit %]">Edit</a></td>
280
	<td><a href="[% loo.delete %]">Delete</a></td>
285
    <td><a href="[% loo.delete %]">Delete</a></td>
281
</tr>
286
</tr>
282
[% END %]
287
[% END %]
283
</tbody></table>[% ELSE %]
288
</tbody></table>[% ELSE %]
Lines 286-293 $(document).ready(function() { Link Here
286
291
287
[% IF ( isprevpage ) %]
292
[% IF ( isprevpage ) %]
288
<form class="inline" action="[% script_name %]" method="post">
293
<form class="inline" action="[% script_name %]" method="post">
289
<input type="hidden" name="offset" value="[% prevpage %]" /><input type="hidden" name="searchfield" value="[% searchfield %]" />
294
    <input type="hidden" name="offset" value="[% prevpage %]" /><input type="hidden" name="searchfield" value="[% searchfield %]" />
290
	<input type="submit" value="&lt;&lt; Previous" /></form>
295
    <input type="submit" value="&lt;&lt; Previous" />
296
</form>
291
[% END %] 
297
[% END %] 
292
298
293
[% END %]
299
[% END %]
294
- 

Return to bug 11019