Bug: 4124 - Submit button in csv-profile.tmpl floats to the right.
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / tools / csv-profiles.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" --><title>Koha &rsaquo; Tools &rsaquo; CSV export profiles</title><!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
2 <script type="text/javascript">
3 //<![CDATA[
4 function reloadPage(p) {
5         var id = p.value;
6         if (id != 0) { document.location = "/cgi-bin/koha/tools/csv-profiles.pl?id=" + id; }
7 }
8      $(document).ready(function() {
9         $('#csvexporttabs > ul').tabs();
10      });
11 //]]>
12 </script>
13 </head>
14
15 <body>
16         <!-- TMPL_INCLUDE NAME="header.inc" -->
17         <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
18
19         <div id="breadcrumbs">
20                 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
21                 &rsaquo; <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a>
22                 &rsaquo; CSV export profiles
23         </div>
24
25         <div id="doc3" class="yui-t2">
26                 <div id="bd">
27                         <div id="yui-main">
28                                 <div class="yui-b">
29                                     <!-- TMPL_IF EXPR="success || error" -->
30                                             <!-- TMPL_IF NAME="success" -->
31                 <!-- TMPL_IF EXPR="action eq 'create'" --><p>The new CSV profile "<!-- TMPL_VAR NAME="profile_name" -->" has been successfully created.</p><!-- /TMPL_IF -->
32                 <!-- TMPL_IF EXPR="action eq 'edit'"   --><p>The CSV profile has been successfully modified.</p><!-- /TMPL_IF -->
33                 <!-- TMPL_IF EXPR="action eq 'delete'" --><p>The CSV profile has been successfully deleted.</p><!-- /TMPL_IF -->
34                                             <!-- TMPL_ELSE -->
35                 <!-- TMPL_IF EXPR="action eq 'create'" --><p class="error">The new CSV profile "<!-- TMPL_VAR NAME="profile_name" -->" has not been created.</p><!-- /TMPL_IF -->
36                 <!-- TMPL_IF EXPR="action eq 'edit'"   --><p class="error">The CSV profile has not been modified.</p><!-- /TMPL_IF -->
37                 <!-- TMPL_IF EXPR="action eq 'delete'" --><p class="error">The CSV profile has not been deleted.</p><!-- /TMPL_IF -->
38                                             <!-- /TMPL_IF -->
39                                     <!-- /TMPL_IF -->
40 <div id="csvexporttabs" class="toptabs">
41 <ul>
42         <li><a href="csv-profiles.pl#csvnew">New profile</a></li>
43         <!-- TMPL_IF NAME="existing_profiles" -->
44         <!-- TMPL_IF NAME="selected_profile_id" -->
45         <li class="ui-tabs-selected">
46         <!-- TMPL_ELSE -->
47         <li>
48          <!-- /TMPL_IF -->
49         <a href="csv-profiles.pl#csvedit">Edit existing profile</a></li> <!-- /TMPL_IF -->
50 </ul>
51         <div id="csvnew">
52                                         <h3>New CSV export profile</h3>
53
54                                              <form action="/cgi-bin/koha/tools/csv-profiles.pl" method="post">
55                                                 <fieldset class="rows">
56                                                     <ol><li><label for="profile_name" class="required">Profile name: </label>
57                                                     <input type="text" id="profile_name" name="profile_name" /></li>
58
59                                                     <li><label for="profile_description">Profile description: </label>
60                                                     <textarea cols="50" rows="2" name="profile_description" id="profile_description"></textarea></li>
61
62                                                     <li><label for="new_csv_separator">CSV separator: </label>
63                                                     <select name="csv_separator" id="new_csv_separator">
64                                                         <option value=":">Colon (:)</option>
65                                                         <option value="," selected="selected">Comma (,)</option>
66                                                         <option value="|">Pipe (|)</option>
67                                                         <option value=";">Semi-colon (;)</option>
68                                                         <option value="#">Sharp (#)</option>
69                                                         <option value=" ">Space ( )</option>
70                                                         <option value="\t">Tabulation (\t)</option>
71                                                     </select></li>
72
73                                                     <li><label for="new_field_separator">Field separator: </label>
74                                                     <select name="field_separator" id="new_field_separator">
75                                                         <option value=":">Colon (:)</option>
76                                                         <option value=",">Comma (,)</option>
77                                                         <option value="|">Pipe (|)</option>
78                                                         <option value=";">Semi-colon (;)</option>
79                                                         <option value="#" selected="selected">Sharp (#)</option>
80                                                         <option value=" ">Space ( )</option>
81                                                         <option value="\t">Tabulation (\t)</option>
82                                                     </select></li>
83
84                                                     <li><label for="new_subfield_separator">Subfield separator: </label>
85                                                     <select name="subfield_separator" id="new_subfield_separator">
86                                                         <option value=":">Colon (:)</option>
87                                                         <option value=",">Comma (,)</option>
88                                                         <option value="|" selected="selected">Pipe (|)</option>
89                                                         <option value=";">Semi-colon (;)</option>
90                                                         <option value="#">Sharp (#)</option>
91                                                         <option value=" ">Space ( )</option>
92                                                         <option value="\t">Tabulation (\t)</option>
93                                                     </select></li>
94
95                                                     <li><label for="new_encoding">Encoding: </label>
96                                                     <select name="encoding" id="new_encoding">
97                                                         <!-- TMPL_LOOP NAME="encodings" -->
98                                                             <option<!-- TMPL_IF EXPR="encoding eq 'utf8'" --> selected="selected" <!-- /TMPL_IF -->><!-- TMPL_VAR NAME="encoding" --></option>
99                                                         <!-- /TMPL_LOOP -->
100                                                     </select></li>
101
102
103                                                     <li><label for="new_profile_content">Profile marcfields: </label>
104                                                     <textarea cols="50" rows="2" name="profile_content" id="new_profile_content"></textarea>
105                                                     <p>You have to define which fields or subfields you want to export, separated by pipes.</p>
106                                                     <p>You can also use your own headers (instead of the ones from koha) by prefixing the field number with an header, followed by the equal sign.</p>
107                                                     <p>Example: Personal name=200|Entry element=210$a|300|009</p>
108                                                     </li>
109                                                     </ol>
110                                                 </fieldset>
111                                                 <fieldset class="action"><input type="hidden" name="action" value="create" />
112                                                 <input type="submit" value="Submit" /></fieldset>
113                                             </form>
114                                             <br style="clear:both;" />
115 </div>
116                                         <!-- TMPL_IF NAME="existing_profiles" -->
117 <div id="csvedit">
118                                         <h3>Modify or delete a CSV export profile</h3>
119
120                                             <form action="/cgi-bin/koha/tools/csv-profiles.pl" method="post">
121                                                 <fieldset class="rows">
122                                                     <ol><li><label for="modify_profile_name">Profile name: </label>
123                                                     <select id="modify_profile_name" name="profile_name" onchange="javascript:reloadPage(this)">
124                                                         <option value="0">-- Choose One --</option>
125                                                         <!-- TMPL_LOOP NAME="existing_profiles" -->
126                                                         <!-- TMPL_IF EXPR="export_format_id eq selected_profile_id" -->
127                                                         <option value="<!-- TMPL_VAR NAME="export_format_id" -->" selected="selected"><!-- TMPL_VAR NAME="profile" --></option>
128                                                         <!--TMPL_ELSE -->
129                                                         <option value="<!-- TMPL_VAR NAME="export_format_id" -->"><!-- TMPL_VAR NAME="profile" --></option>
130                                                         <!-- /TMPL_IF-->
131                                                         <!-- /TMPL_LOOP -->
132                                                     </select></li>
133
134                                                     <li><label for="modify_profile_description">Profile description: </label>
135                                                     <textarea cols="50" rows="2" name="profile_description" id="modify_profile_description"><!-- TMPL_VAR NAME="selected_profile_description" --></textarea></li>
136
137                                                     <li><label for="csv_separator">CSV separator: </label>
138                                                     <select name="csv_separator" id="csv_separator">
139                                                                 <option value=":">Colon (:)</option>
140                                                                 <!-- TMPL_IF EXPR="selected_csv_separator eq ','" -->
141                                                                 <option value="," selected="selected">Comma (,)</option>
142                                                                 <!--TMPL_ELSE -->
143                                                                 <option value=",">Comma (,)</option>
144                                                                 <!-- /TMPL_IF -->
145                                                                 <!-- TMPL_IF EXPR="selected_csv_separator eq '|'" -->
146                                                                 <option value="|" selected="selected">Pipe (|)</option>
147                                                                 <!--TMPL_ELSE -->
148                                                                 <option value="|">Pipe (|)</option>
149                                                                 <!-- /TMPL_IF -->
150                                                                 <!-- TMPL_IF EXPR="selected_csv_separator eq ';'" -->
151                                                                 <option value=";" selected="selected">Semi-colon (;)</option>
152                                                                 <!--TMPL_ELSE -->
153                                                                 <option value=";">Semi-colon (;)</option>
154                                                                 <!-- /TMPL_IF -->
155                                                                 <!-- TMPL_IF EXPR="selected_csv_separator eq '#'" -->
156                                                                 <option value="#" selected="selected">Sharp (#)</option>
157                                                                 <!--TMPL_ELSE -->
158                                                                 <option value="#">Sharp (#)</option>
159                                                                 <!-- /TMPL_IF -->
160                                                                 <!-- TMPL_IF EXPR="selected_csv_separator eq ' '" -->
161                                                                 <option value=" " selected="selected">Space ( )</option>
162                                                                 <!--TMPL_ELSE -->
163                                                                 <option value=" ">Space ( )</option>
164                                                                 <!-- /TMPL_IF -->
165                                                                 <!-- TMPL_IF EXPR="selected_csv_separator eq '\t'" -->
166                                                                 <option value="\t" selected="selected">Tabulation (\t)</option>
167                                                                 <!--TMPL_ELSE -->
168                                                                 <option value="\t">Tabulation (\t)</option>
169                                                                 <!-- /TMPL_IF -->
170                                                     </select></li>
171
172                                                     <li><label for="field_separator">Field separator: </label>
173                                                     <select name="field_separator" id="field_separator">
174                                 <option value=":">Colon (:)</option>
175
176                                 <!-- TMPL_IF EXPR="selected_field_separator eq ','" -->
177                                 <option value="," selected="selected">Comma (,)</option>
178                                 <!--TMPL_ELSE -->
179                                 <option value=",">Comma (,)</option>
180                                                                 <!-- /TMPL_IF -->
181
182                                 <!-- TMPL_IF EXPR="selected_field_separator eq '|'" -->
183                                 <option value="|" selected="selected">Pipe (|)</option>
184                                 <!--TMPL_ELSE -->
185                                 <option value="|">Pipe (|)</option>
186                                 <!-- /TMPL_IF -->
187
188                                 <!-- TMPL_IF EXPR="selected_field_separator eq ';'" -->
189                                 <option value=";" selected="selected">Semi-colon (;)</option>
190                                 <!--TMPL_ELSE -->
191                                 <option value=";">Semi-colon (;)</option>
192                                 <!-- /TMPL_IF -->
193
194                                 <!-- TMPL_IF EXPR="selected_field_separator eq '#'" -->
195                                 <option value="#" selected="selected">Sharp (#)</option>
196                                 <!--TMPL_ELSE -->
197                                 <option value="#">Sharp (#)</option>
198                                 <!-- /TMPL_IF -->
199
200                                 <!-- TMPL_IF EXPR="selected_field_separator eq ' '" -->
201                                 <option value=" " selected="selected">Space ( )</option>
202                                 <!--TMPL_ELSE -->
203                                 <option value=" ">Space ( )</option>
204                                 <!-- /TMPL_IF -->
205
206                                 <!-- TMPL_IF EXPR="selected_field_separator eq '\t'" -->
207                                 <option value="\t" selected="selected">Tabulation (\t)</option>
208                                 <!--TMPL_ELSE -->
209                                 <option value="\t">Tabulation (\t)</option>
210                                 <!-- /TMPL_IF -->
211                                                     </select></li>
212
213
214                                                     <li><label for="subfield_separator">Subfield separator: </label>
215                                                     <select name="subfield_separator" id="subfield_separator">
216                                 <option value=":">Colon (:)</option>
217
218
219                                 <!-- TMPL_IF EXPR="selected_subfield_separator eq ','" -->
220                                 <option value="," selected="selected">Comma (,)</option>
221                                 <!--TMPL_ELSE -->
222                                 <option value=",">Comma (,)</option>
223                                 <!-- /TMPL_IF -->
224
225                                 <!-- TMPL_IF EXPR="selected_subfield_separator eq '|'" -->
226                                 <option value="|" selected="selected">Pipe (|)</option>
227                                 <!--TMPL_ELSE -->
228                                 <option value="|">Pipe (|)</option>
229                                 <!-- /TMPL_IF -->
230
231                                                                 <!-- TMPL_IF EXPR="selected_subfield_separator eq ';'" -->
232                                 <option value=";" selected="selected">Semi-colon (;)</option>
233                                 <!--TMPL_ELSE -->
234                                 <option value=";">Semi-colon (;)</option>
235                                 <!-- /TMPL_IF -->
236
237                                                                 <!-- TMPL_IF EXPR="selected_subfield_separator eq '#'" -->
238                                 <option value="#" selected="selected">Sharp (#)</option>
239                                 <!--TMPL_ELSE -->
240                                 <option value="#">Sharp (#)</option>
241                                 <!-- /TMPL_IF -->
242
243                                                                 <!-- TMPL_IF EXPR="selected_subfield_separator eq ' '" -->
244                                 <option value=" " selected="selected">Space ( )</option>
245                                 <!--TMPL_ELSE -->
246                                 <option value=" ">Space ( )</option>
247                                 <!-- /TMPL_IF -->
248
249                                                                 <!-- TMPL_IF EXPR="selected_subfield_separator eq '\t'" -->
250                                 <option value="\t" selected="selected">Tabulation (\t)</option>
251                                 <!--TMPL_ELSE -->
252                                 <option value="\t">Tabulation (\t)</option>
253                                 <!-- /TMPL_IF -->
254
255                                                     </select></li>
256
257                                                     <li><label for="encoding">Encoding: </label>
258                                                     <select name="encoding" id="encoding">
259                                                         <!-- TMPL_LOOP NAME="encodings" -->
260                                                             <!-- TMPL_IF EXPR="selected_encoding eq encoding" -->
261                                                             <option selected="selected"><!-- TMPL_VAR NAME="encoding" --></option>
262                                                             <!--TMPL_ELSE -->
263                                                             <option><!-- TMPL_VAR NAME="encoding" --></option>
264                                                             <!-- /TMPL_IF -->
265                                                         <!-- /TMPL_LOOP -->
266                                                     </select></li>
267
268                                                     <li><label for="modify_profile_content">Profile marcfields: </label>
269                                                     <textarea cols="50" rows="2" name="profile_content" id="modify_profile_content"><!-- TMPL_VAR NAME="selected_profile_marcfields" --></textarea></li>
270
271                                                    <li class="radio"> <label for="delete">Delete selected profile ?</label>
272                                                     <input type="checkbox" name="delete" id="delete" /></li>
273                                                     </ol>
274
275                                                 </fieldset>
276
277                                                 <fieldset class="action"><input type="hidden" name="modify_profile_id" value="<!-- TMPL_VAR NAME="selected_profile_id" -->" />
278                                                 <input type="hidden" name="action" value="edit" />
279                                                 <input type="submit" value="Submit" /> <a href="/cgi-bin/koha/tools/csv-profiles.pl" class="cancel">Cancel</a></fieldset>
280                                             </form>
281 </div>
282                                         <!-- /TMPL_IF -->
283
284                                 </div>
285                         </div>
286                         </div>
287                     <div class="yui-b noprint">
288         <!-- TMPL_INCLUDE NAME="tools-menu.inc" -->
289     </div>
290         </div>
291         <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->