Bug 9543: Separate MTT with commas
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / admin / items_search_fields.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2   <title>Koha &rsaquo; Administration &rsaquo; Item search fields</title>
3   [% INCLUDE 'doc-head-close.inc' %]
4   <script type="text/javascript">
5       var MSG_ITEM_SEARCH_DELETE_CONFIRM = _("Are you sure you want to delete this field?");
6   </script>
7   <script type="text/javascript" src="[% interface %]/[% theme %]/js/item_search_fields.js"></script>
8 </head>
9 <body id="admin_itemssearchfields" class="admin">
10   [% INCLUDE 'header.inc' %]
11   [% INCLUDE 'cat-search.inc' %]
12   <div id="breadcrumbs">
13     <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo;
14     <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> &rsaquo;
15     Item search fields
16   </div>
17
18   <div id="doc3" class="yui-t2">
19     <div id="bd">
20       <div id="yui-main">
21         <div class="yui-b">
22
23     <div id="toolbar" class="btn-toolbar">
24         <a class="btn btn-small" id="new_search_field" href="/cgi-bin/koha/admin/items_search_fields.pl"><i class="fa fa-plus"></i> New search field</a>
25     </div>
26
27           [% IF field_added %]
28             <div class="dialog message">
29               Field successfully added: [% field_added.label %]
30             </div>
31           [% ELSIF field_not_added %]
32             <div class="dialog alert">
33               <p>Failed to add field. Please make sure the field name doesn't already exist.</p>
34               <p>Check logs for more details.</p>
35             </div>
36           [% ELSIF field_deleted %]
37             <div class="dialog message">
38               Field successfully deleted.
39             </div>
40           [% ELSIF field_not_deleted %]
41             <div class="dialog alert">
42               <p>Failed to delete field.</p>
43               <p>Check logs for more details.</p>
44             </div>
45           [% ELSIF field_updated %]
46             <div class="dialog message">
47               Field successfully updated: [% field_updated.label %]
48             </div>
49           [% ELSIF field_not_updated %]
50             <div class="dialog alert">
51               <p>Failed to update field.</p>
52               <p>Check logs for more details.</p>
53             </div>
54           [% END %]
55           [% IF fields.size %]
56               <div id="search_fields_list">
57                   <h2>Item search fields</h2>
58
59                   <table id="search_fields_table">
60                     <thead>
61                       <tr>
62                         <th>Name</th>
63                         <th>Label</th>
64                         <th>MARC field</th>
65                         <th>MARC subfield</th>
66                         <th>Authorised values category</th>
67                         <th>Actions</th>
68                       </tr>
69                     </thead>
70                     <tbody>
71                       [% FOREACH field IN fields %]
72                         <tr>
73                           <td>[% field.name %]</td>
74                           <td>[% field.label %]</td>
75                           <td>[% field.tagfield %]</td>
76                           <td>[% field.tagsubfield %]</td>
77                           <td>[% field.authorised_values_category %]</td>
78                           <td>
79                             <a class="btn btn-mini" href="/cgi-bin/koha/admin/items_search_field.pl?name=[% field.name %]" title="Edit [% field.name %] field"><i class="fa fa-pencil"></i> Edit</a>
80                             <a class="field-delete btn btn-mini" href="/cgi-bin/koha/admin/items_search_fields.pl?op=del&name=[% field.name %]"><i class="fa fa-trash"></i> Delete</a>
81                           </td>
82                         </tr>
83                       [% END %]
84                     </tbody>
85                   </table>
86               </div>
87           [% ELSE %]
88               <div class="dialog message">
89                   There are no item search fields defined.
90               </div>
91           [% END %]
92
93           <form id="add_field_form" action="/cgi-bin/koha/admin/items_search_fields.pl" method="POST" class="validated">
94             <fieldset class="rows">
95               <legend>Add a new field</legend>
96               [% INCLUDE 'admin-items-search-field-form.inc' field=undef %]
97               <input type="hidden" name="op" value="add" />
98             </fieldset>
99             <fieldset class="action">
100               <input type="submit" value="Submit" />
101               <a href="#" class="cancel">Cancel</a>
102             </fieldset>
103           </form>
104
105         </div>
106       </div>
107       <div class="yui-b">
108         [% INCLUDE 'admin-menu.inc' %]
109       </div>
110     </div>
111
112     [% INCLUDE 'intranet-bottom.inc' %]