Bug 5917 : Swapping templates over
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / admin / stopwords.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; System Administration &rsaquo; Stop words
3 [% IF ( add_form ) %]&rsaquo; [% IF ( searchfield ) %]Modify[% ELSE %]New[% END %] stop word
4 [% ELSIF ( add_validate ) %]&rsaquo; Data recorded
5 [% ELSIF ( delete_confirm ) %]&rsaquo; Delete stop word '[% searchfield %]' ?
6 [% ELSIF ( delete_confirmed ) %]&rsaquo; Data deleted
7 [% END %]
8 </title>
9 [% INCLUDE 'doc-head-close.inc' %]
10 <script language="javascript" type="text/javascript">
11 //<![CDATA[
12     $(document).ready(function() {
13         new YAHOO.widget.Button("newstopword");
14     });
15     function toUC(f) {
16         var x=f.value.toUpperCase();
17         f.value=x;
18         return true;
19     }
20     function Check(f) {
21         if (f.word.value.length==0) {
22             alert(_("Form not submitted: word missing"));
23         } else {
24             document.Aform.submit();
25         }
26     }
27 //]]>
28 </script>
29 </head>
30 <body>
31 [% INCLUDE 'header.inc' %]
32 [% INCLUDE 'stopwords-admin-search.inc' %]
33
34 <div id="breadcrumbs">
35 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
36 &rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
37 &rsaquo; <a href="/cgi-bin/koha/admin/stopwords.pl">Stop Words</a>
38 [% IF ( add_form ) %]
39     &rsaquo; [% IF ( searchfield ) %]Modify[% ELSE %]New[% END %] Stop Word
40 [% ELSIF ( add_validate ) %]
41     &rsaquo; Data recorded
42 [% ELSIF ( delete_confirm ) %]
43     &rsaquo; Delete Stop Word '[% searchfield %]' ?
44 [% ELSIF ( delete_confirmed ) %]
45     &rsaquo; Data deleted
46 [% END %]
47 </div>
48
49 <div id="doc3" class="yui-t2">
50    
51    <div id="bd">
52         <div id="yui-main">
53         <div class="yui-b">
54
55 [% IF ( add_form ) %]
56         [% IF ( searchfield ) %]
57             <h1>Modify word</h1>
58         [% ELSE %]
59             <h1>New word</h1>
60         [% END %]
61         <form action="[% script_name %]" name="Aform" method="post">
62             <input type="hidden" name="op" value="add_validate" />
63             <fieldset class="rows">
64             <ol><li>
65             [% IF ( searchfield ) %]
66                 <span class="label">Word</span>
67                     <input type="hidden" name="word" value="[% searchfield %]" />[% searchfield %]
68             [% ELSE %]
69                 <label for="word">Word</label>
70                 <input type="text" name="word" id="word" size="50" maxlength="250" onblur="toUC(this)" />
71             [% END %]
72                 </li>
73             </ol>
74             </fieldset>
75             <fieldset class="action">
76                 <input type="button" value="Save" onclick="Check(this.form)" />
77                 <a class="cancel" href="/cgi-bin/koha/admin/stopwords.pl">Cancel</a>
78             </fieldset>
79         </form>
80 [% END %]
81
82 [% IF ( add_validate ) %]
83    <div class="dialog message"> <h3>Data recorded</h3>
84     <form action="[% script_name %]" method="post">
85         <input type="submit" value="OK" class="approve" />
86     </form></div>
87 [% END %]
88
89 [% IF ( delete_confirm ) %]
90     <div class="dialog alert">
91         <h3>Delete Stop Word <span class="ex">'[% searchfield %]'</span></h3>
92         <form action="[% script_name %]" method="post">
93         <input type="hidden" name="op" value="delete_confirmed" />
94         <input type="hidden" name="searchfield" value="[% searchfield %]" />
95         <input type="submit" value="Yes, Delete" class="approve" />
96     </form>
97     <form action="[% script_name %]" method="get">
98         <input type="submit" class="deny" value="No, Do Not Delete" />
99     </form></div>
100 [% END %]
101
102 [% IF ( delete_confirmed ) %]
103    <div class="dialog message"> <h3>Data deleted</h3>
104     <form action="[% script_name %]" method="post">
105         <input type="submit" value="OK" class="approve" />
106     </form></div>
107 [% END %]
108
109 [% IF ( else ) %]
110
111 <div id="toolbar">
112         <ul class="toolbar">
113         <li><a id="newstopword" href="/cgi-bin/koha/admin/stopwords.pl?op=add_form">New Stop Word</a></li>
114 </ul></div>
115
116     <h1>Stop Words</h1>
117     <p class="message">NOTE : if you change something in this table, ask your administrator to run misc/batchRebuildBiblioTables.pl script.</p>
118
119     [% IF ( searchfield ) %]
120         <p>You searched for <b>[% searchfield %]</b></p>
121     [% END %]
122
123     <table>
124         <tr><th>Word</th>
125             <th></th>
126         </tr>
127         [% FOREACH loo IN loop %]
128            [% IF ( loop.odd ) %]<tr>
129            [% ELSE %]<tr class="highlight">
130            [% END %]
131             <td>[% loo.word %]</td>
132             <td><a href="[% loo.script_name %]?op=delete_confirm&amp;searchfield=[% loo.word %]">Delete</a></td>
133         </tr>
134         [% END %]
135     </table>
136
137     <div class="pages">
138         [% IF ( offsetgtzero ) %]
139             <a href="[% script_name %]?offset=[% prevpage %]">&lt;&lt; Previous</a>
140         [% END %]
141         [% IF ( ltcount ) %]
142             <a href="[% script_name %]?offset=[% nextpage %]">Next &gt;&gt;</a>
143         [% END %]
144     </div>
145 [% END %]
146
147 </div>
148 </div>
149 <div class="yui-b">
150 [% INCLUDE 'admin-menu.inc' %]
151 </div>
152 </div>
153 [% INCLUDE 'intranet-bottom.inc' %]