9753d5370c049840b553f6f2ca2517588de2f323
[Evergreen.git] / Open-ILS / src / templates / staff / cat / volcopy / t_attr_edit.tt2
1 <div class="container-fluid">
2     <div class="row bg-info">
3         <div class="col-md-1">
4             <h5>[% l('Template') %]</h5>
5         </div>
6         <div class="col-md-2">
7             <eg-basic-combo-box list="template_name_list" selected="template_name"></eg-basic-combo-box>
8         </div>
9         <div class="col-md-1">
10             <button class="btn btn-default " ng-click="applyTemplate(template_name)" type="button">[% l('Apply') %]</button>
11         </div>
12         <div class="col-md-6">
13             <div class="row" ng-show="template_controls">
14                 <div class="col-md-4">
15                     <div class="btn-group">
16                         <label class="btn btn-default" ng-click="saveTemplate(template_name)">[% l('Save') %]</label>
17                         <label class="btn btn-default" ng-click="deleteTemplate(template_name)">[% l('Delete') %]</label>
18                     </div>
19                 </div>
20                 <div class="col-md-8">
21                     <div class="btn-group pull-right">
22                         <label class="btn btn-default" ng-click="importTemplates()">[% l('Import') %]</label>
23                         <label class="btn btn-default" ng-click="exportTemplates()">[% l('Export') %]</label>
24                     </div>
25                 </div>
26             </div>
27         </div>
28         <div class="col-md-2">
29             <button class="btn btn-default pull-right" ng-click="clearWorking()" type="button">Clear</button>
30         </div>
31     </div>
32
33     <div class="row pad-vert" ng-if="template_controls && defaults.show_vol_template_controls">
34         <div class="row">
35             <div class="col-xs-12">
36                 <h4 class="center-block">[% l('Volume Attributes') %]</h4>
37             </div>
38         </div>
39     </div>
40
41     <div class="row pad-vert" ng-if="template_controls && defaults.show_vol_template_controls">
42         <div class="col-md-1 bg-info">
43             <b>[% l('Classification') %]</b>
44         </div>
45         <div class="nullable col-md-2" ng-class="{'bg-success': working.callnumber.classification !== undefined}">
46             <select class="form-control" ng-model="working.callnumber.classification" ng-options="cl.id() as cl.name() for cl in classification_list">
47                 <option value="">[% l('<NONE>') %]</option>
48             </select>
49         </div>
50         <div class="col-md-1 bg-info">
51             <b>[% l('Prefix') %]</b>
52         </div>
53         <div class="nullable col-xs-2" ng-class="{'bg-success': working.callnumber.prefix !== undefined}">
54             <select class="form-control" ng-model="working.callnumber.prefix" ng-options="p.id() as p.label() for p in prefix_list">
55                 <option value="">[% l('<NONE>') %]</option>
56             </select>
57         </div>
58         <div class="col-md-1 bg-info">
59             <b>[% l('Suffix') %]</b>
60         </div>
61         <div class="nullable col-md-2" ng-class="{'bg-success': working.callnumber.suffix !== undefined}">
62             <select class="form-control" ng-model="working.callnumber.suffix" ng-options="s.id() as s.label() for s in suffix_list">
63                 <option value="">[% l('<NONE>') %]</option>
64             </select>
65         </div>
66     </div>
67
68     <div class="row pad-vert" ng-if="template_controls && defaults.show_vol_template_controls">
69         <div class="row">
70             <div class="col-xs-12">
71                 <h4 class="center-block">[% l('Copy Attributes') %]</h4>
72             </div>
73         </div>
74     </div>
75
76     <div class="row pad-vert"></div>
77
78     <div class="row bg-info">
79         <div class="col-md-4">
80             <b>[% l('Circulate?') %]</b>
81         </div>
82         <div class="col-md-4">
83             <b>[% l('Status') %]</b>
84         </div>
85         <div class="col-md-4">
86             <b>[% l('Statistical Categories') %]</b>
87         </div>
88     </div>
89
90     <div class="row">
91         <div class="col-md-8">
92             <div class="row">
93                 <div class="col-md-6" ng-class="{'bg-success': working.circulate !== undefined}">
94                     <div class="row">
95                         <div class="col-xs-3">
96                             <label>
97                                 <input type="radio" ng-disabled="!defaults.attributes.circulate" ng-model="working.circulate" value="t"/>
98                                 [% l('Yes') %]
99                             </label>
100                         </div>
101                         <div class="col-xs-3">
102                             <label>
103                                 <input type="radio" ng-disabled="!defaults.attributes.circulate" ng-model="working.circulate" value="f"/>
104                                 [% l('No') %]
105                             </label>
106                         </div>
107                     </div>
108                 </div>
109                 <div class="col-md-6" ng-class="{'bg-success': working.status !== undefined}">
110                     <select class="form-control"
111                         ng-disabled="!defaults.attributes.status" ng-model="working.status"
112                         ng-options="s.id() as s.name() for s in status_list">
113                     </select>
114                 </div>
115             </div>
116
117             <div class="row pad-vert"></div>
118
119             <div class="row bg-info">
120                 <div class="col-md-6">
121                     <b>[% l('Circulation Library') %]</b>
122                 </div>
123                 <div class="col-md-6">
124                     <b>[% l('Reference?') %]</b>
125                 </div>
126             </div>
127
128             <div class="row">
129                 <div class="col-md-6" ng-class="{'bg-success': working.circ_lib !== undefined}">
130                     <eg-org-selector
131                         alldisabled="{{!defaults.attributes.circ_lib}}"
132                         selected="working.circ_lib"
133                         noDefault
134                         label="[% l('(Unset)') %]"
135                         disable-test="cant_have_vols"
136                     ></eg-org-selector>
137                 </div>
138                 <div class="col-md-6" ng-class="{'bg-success': working.ref !== undefined}">
139                     <div class="row">
140                         <div class="col-xs-3">
141                             <label>
142                                 <input type="radio" ng-disabled="!defaults.attributes.ref" ng-model="working.ref" value="t"/>
143                                 [% l('Yes') %]
144                             </label>
145                         </div>
146                         <div class="col-xs-3">
147                             <label>
148                                 <input type="radio" ng-disabled="!defaults.attributes.ref" ng-model="working.ref" value="f"/>
149                                 [% l('No') %]
150                             </label>
151                         </div>
152                     </div>
153                 </div>
154             </div>
155
156             <div class="row pad-vert"></div>
157
158             <div class="row bg-info">
159                 <div class="col-md-6">
160                     <b>[% l('Shelving Location') %]</b>
161                 </div>
162                 <div class="col-md-6">
163                     <b>[% l('OPAC Visible?') %]</b>
164                 </div>
165             </div>
166
167             <div class="row">
168                 <div class="col-md-6" ng-class="{'bg-success': working.location !== undefined}">
169                     <select class="form-control"
170                         ng-disabled="!defaults.attributes.location" ng-model="working.location"
171                         ng-options="l.id() as l.name() for l in location_list"
172                     ></select>
173                 </div>
174                 <div class="col-md-6" ng-class="{'bg-success': working.opac_visible !== undefined}">
175                     <div class="row">
176                         <div class="col-xs-3">
177                             <label>
178                                 <input type="radio" ng-disabled="!defaults.attributes.opac_visible" ng-model="working.opac_visible" value="t"/>
179                                 [% l('Yes') %]
180                             </label>
181                         </div>
182                         <div class="col-xs-3">
183                             <label>
184                                 <input type="radio" ng-disabled="!defaults.attributes.opac_visible" ng-model="working.opac_visible" value="f"/>
185                                 [% l('No') %]
186                             </label>
187                         </div>
188                     </div>
189                 </div>
190             </div>
191
192             <div class="row pad-vert"></div>
193
194             <div class="row bg-info">
195                 <div class="col-md-6">
196                     <b>[% l('Circulation Modifer') %]</b>
197                 </div>
198                 <div class="col-md-6">
199                     <b>[% l('Price') %]</b>
200                 </div>
201             </div>
202
203             <div class="row">
204                 <div class="nullable col-md-6" ng-class="{'bg-success': working.circ_modifier !== undefined}">
205                     <select class="form-control"
206                         ng-disabled="!defaults.attributes.circ_modifier" ng-model="working.circ_modifier"
207                         ng-options="m.code() as m.name() for m in circ_modifier_list"
208                     >
209                         <option value="">[% l('<NONE>') %]</option>
210                     </select>
211                 </div>
212                 <div class="col-md-6" ng-class="{'bg-success': working.price !== undefined}">
213                     <input class="form-control" ng-disabled="!defaults.attributes.price" ng-model="working.price" type="text"/>
214                 </div>
215             </div>
216
217             <div class="row pad-vert"></div>
218
219             <div class="row bg-info">
220                 <div class="col-md-6">
221                     <b>[% l('Loan Duration') %]</b>
222                 </div>
223                 <div class="col-md-6">
224                     <b>[% l('Cost') %]</b>
225                 </div>
226             </div>
227
228             <div class="row">
229                 <div class="col-md-6" ng-class="{'bg-success': working.loan_duration !== undefined}">
230                     <select class="form-control" ng-disabled="!defaults.attributes.loan_duration" ng-model="working.loan_duration">
231                         <option value="1">[% l('Short') %]</option>
232                         <option value="2" selected>[% l('Normal') %]</option>
233                         <option value="3">[% l('Extended') %]</option>
234                     </select>
235                 </div>
236                 <div class="col-md-6" ng-class="{'bg-success': working.cost !== undefined}">
237                     <input class="form-control" ng-disabled="!defaults.attributes.cost" ng-model="working.cost" type="text"/>
238                 </div>
239             </div>
240
241             <div class="row pad-vert"></div>
242
243             <div class="row bg-info">
244                 <div class="col-md-6">
245                     <b>[% l('Circulate as Type') %]</b>
246                 </div>
247                 <div class="col-md-6">
248                     <b>[% l('Deposit?') %]</b>
249                 </div>
250             </div>
251
252             <div class="row">
253                 <div class="nullable col-md-6" ng-class="{'bg-success': working.circ_as_type !== undefined}">
254                     <select class="form-control"
255                         ng-disabled="!defaults.attributes.circ_as_type" ng-model="working.circ_as_type"
256                         ng-options="t.code() as t.value() for t in circ_type_list">
257                       <option value="">[% l('<NONE>') %]</option>
258                     </select>
259                 </div>
260                 <div class="col-md-6" ng-class="{'bg-success': working.deposit !== undefined}">
261                     <div class="row">
262                         <div class="col-xs-3">
263                             <label>
264                                 <input type="radio" ng-disabled="!defaults.attributes.deposit" ng-model="working.deposit" value="t"/>
265                                 [% l('Yes') %]
266                             </label>
267                         </div>
268                         <div class="col-xs-3">
269                             <label>
270                                 <input type="radio" ng-disabled="!defaults.attributes.deposit" ng-model="working.deposit" value="f"/>
271                                 [% l('No') %]
272                             </label>
273                         </div>
274                     </div>
275                 </div>
276             </div>
277
278             <div class="row pad-vert"></div>
279
280             <div class="row bg-info">
281                 <div class="col-md-6">
282                     <b>[% l('Holdable?') %]</b>
283                 </div>
284                 <div class="col-md-6">
285                     <b>[% l('Deposit Amount') %]</b>
286                 </div>
287             </div>
288
289             <div class="row">
290                 <div class="col-md-6" ng-class="{'bg-success': working.holdable !== undefined}">
291                     <div class="row">
292                         <div class="col-xs-3">
293                             <label>
294                                 <input type="radio" ng-disabled="!defaults.attributes.holdable" ng-model="working.holdable" value="t"/>
295                                 [% l('Yes') %]
296                             </label>
297                         </div>
298                         <div class="col-xs-3">
299                             <label>
300                                 <input type="radio" ng-disabled="!defaults.attributes.holdable" ng-model="working.holdable" value="f"/>
301                                 [% l('No') %]
302                             </label>
303                         </div>
304                     </div>
305                 </div>
306                 <div class="col-md-6" ng-class="{'bg-success': working.deposit_amount !== undefined}">
307                     <input class="form-control" ng-disabled="!defaults.attributes.deposit_amount" ng-model="working.deposit_amount" type="text"/>
308                 </div>
309             </div>
310
311             <div class="row pad-vert"></div>
312
313             <div class="row bg-info">
314                 <div class="col-md-6">
315                     <b>[% l('Age-based Hold Protection') %]</b>
316                 </div>
317                 <div class="col-md-6">
318                     <b>[% l('Quality') %]</b>
319                 </div>
320             </div>
321
322             <div class="row">
323                 <div class="col-md-6" ng-class="{'bg-success': working.age_protect !== undefined}">
324                     <select class="form-control"
325                         ng-disabled="!defaults.attributes.age_protect" ng-model="working.age_protect"
326                         ng-options="a.id() as a.name() for a in age_protect_list"
327                     ></select>
328                 </div>
329                 <div class="col-md-6" ng-class="{'bg-success': working.mint_condition !== undefined}">
330                     <div class="row">
331                         <div class="col-xs-3">
332                             <label>
333                                 <input type="radio" ng-disabled="!defaults.attributes.mint_condition" ng-model="working.mint_condition" value="t"/>
334                                 [% l('Good') %]
335                             </label>
336                         </div>
337                         <div class="col-xs-3">
338                             <label>
339                                 <input type="radio" ng-disabled="!defaults.attributes.mint_condition" ng-model="working.mint_condition" value="f"/>
340                                 [% l('Damaged') %]
341                             </label>
342                         </div>
343                     </div>
344                 </div>
345             </div>
346
347             <div class="row pad-vert"></div>
348
349             <div class="row bg-info">
350                 <div class="col-md-6">
351                     <b>[% l('Fine Level') %]</b>
352                 </div>
353             </div>
354
355             <div class="row">
356                 <div class="col-md-6" ng-class="{'bg-success': working.fine_level !== undefined}">
357                     <select class="form-control" ng-disabled="!defaults.attributes.fine_level" ng-model="working.fine_level">
358                         <option value="1">[% l('Low') %]</option>
359                         <option value="2" selected>[% l('Normal') %]</option>
360                         <option value="3">[% l('High') %]</option>
361                     </select>
362                 </div>
363                 <div class="col-md-6">
364                     <button
365                       class="btn btn-default"
366                       ng-disabled="!defaults.copy_notes"
367                       ng-click="copy_notes_dialog(workingGridControls.selectedItems())"
368                       type="button">
369                         [% l('Copy Notes') %]
370                     </button>
371                 </div>
372             </div>
373
374             <div class="row pad-vert"></div>
375
376             <div class="row bg-info">
377                 <div class="col-md-6">
378                     <b>[% l('Floating') %]</b>
379                 </div>
380             </div>
381
382             <div class="row">
383                 <div class="col-md-6" ng-class="{'bg-success': working.floating !== undefined}">
384                     <select class="form-control"
385                         ng-disabled="!defaults.attributes.floating" ng-model="working.floating"
386                         ng-options="a.id() as a.name() for a in floating_list"
387                     ></select>
388                 </div>
389             </div>
390         </div>
391
392         <div class="col-md-4">
393             <div class="row">
394                 <div class="col-xs-12">
395                     <select class="form-control" ng-disabled="!defaults.statcats"
396                         ng-model="working.statcat_filter"
397                         ng-options="o.id() as o.shortname() for o in statcat_filter_list">
398                       <option value="">[% l('Filter by Library') %]</option>
399                     </select>
400                 </div>
401             </div>
402
403             <div class="row pad-vert"></div>
404
405             <div class="row" ng-repeat="sc in statcats" ng-show="statcat_visible(sc.owner().id())">
406                 <div class="col-xs-12">
407                     <div class="row bg-info">
408                         <div class="col-xs-12">
409                             <span>{{ sc.owner().name() }} : {{ sc.name() }}</span>
410                         </div>
411                     </div>
412                     <div class="row">
413                         <div class="nullable col-xs-12" ng-class="{'bg-success': working.statcats[sc.id()] !== undefined}">
414                             <select class="form-control" ng-disabled="!defaults.statcats"
415                                 ng-change="statcatUpdate(sc.id())"
416                                 ng-model="working.statcats[sc.id()]"
417                                 ng-options="e.id() as e.value() for e in sc.entries()">
418                                 <option value="">[% l('<NONE>') %]</option>
419                             </select>
420                         </div>
421                     </div>
422                 </div>
423             </div>
424         </div>
425
426     </div>
427 </div>
428 </div>