|
Lines 2-14
Link Here
|
| 2 |
<title>Koha › Administration › EDI accounts |
2 |
<title>Koha › Administration › EDI accounts |
| 3 |
[% IF acct_form %] |
3 |
[% IF acct_form %] |
| 4 |
[% IF account %] |
4 |
[% IF account %] |
| 5 |
’ Modify account |
5 |
› Modify account |
| 6 |
[% ELSE %] |
6 |
[% ELSE %] |
| 7 |
’ Add new account |
7 |
› Add new account |
| 8 |
[% END %] |
8 |
[% END %] |
| 9 |
[% END %] |
9 |
[% END %] |
| 10 |
[% IF delete_confirm %] |
10 |
[% IF delete_confirm %] |
| 11 |
’ Confirm deletion of account |
11 |
› Confirm deletion of account |
| 12 |
[% END %] |
12 |
[% END %] |
| 13 |
</title> |
13 |
</title> |
| 14 |
[% INCLUDE 'doc-head-close.inc' %] |
14 |
[% INCLUDE 'doc-head-close.inc' %] |
|
Lines 19-36
Link Here
|
| 19 |
|
19 |
|
| 20 |
<div id="breadcrumbs"> |
20 |
<div id="breadcrumbs"> |
| 21 |
<a href="/cgi-bin/koha/mainpage.pl">Home</a> |
21 |
<a href="/cgi-bin/koha/mainpage.pl">Home</a> |
| 22 |
› <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> |
22 |
› <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> |
| 23 |
› <a href="/cgi-bin/koha/admin/edi_accounts.pl">EDI accounts</a> |
23 |
[% IF acct_form %] |
| 24 |
[% IF acct_form %] |
|
|
| 25 |
[% IF account %] |
24 |
[% IF account %] |
| 26 |
› Modify account |
25 |
<a href="/cgi-bin/koha/admin/edi_accounts.pl">EDI accounts</a> › Modify account |
| 27 |
[% ELSE %] |
26 |
[% ELSE %] |
| 28 |
› Add new account |
27 |
<a href="/cgi-bin/koha/admin/edi_accounts.pl">EDI accounts</a> › Add new account |
| 29 |
[% END %] |
28 |
[% END %] |
| 30 |
[% ELSIF delete_confirm %] |
29 |
[% ELSIF delete_confirm %] |
| 31 |
› Confirm deletion of account |
30 |
<a href="/cgi-bin/koha/admin/edi_accounts.pl">EDI accounts</a> › Confirm deletion of account |
| 32 |
[% ELSE %] |
31 |
[% ELSE %] |
| 33 |
› Accounts |
32 |
› EDI accounts |
| 34 |
[% END %] |
33 |
[% END %] |
| 35 |
</div> |
34 |
</div> |
| 36 |
|
35 |
|
|
Lines 42-48
Link Here
|
| 42 |
[% IF display %] |
41 |
[% IF display %] |
| 43 |
<div id="toolbar" class="btn-toolbar"> |
42 |
<div id="toolbar" class="btn-toolbar"> |
| 44 |
<a class="btn btn-small" id="newediacct" href="/cgi-bin/koha/admin/edi_accounts.pl?op=acct_form"> |
43 |
<a class="btn btn-small" id="newediacct" href="/cgi-bin/koha/admin/edi_accounts.pl?op=acct_form"> |
| 45 |
<i class="icon-plus"></i> |
44 |
<i class="fa fa-plus"></i> |
| 46 |
New account |
45 |
New account |
| 47 |
</a> |
46 |
</a> |
| 48 |
</div> |
47 |
</div> |
|
Lines 91-97
Link Here
|
| 91 |
</li> |
90 |
</li> |
| 92 |
<li> |
91 |
<li> |
| 93 |
<label for="description">Description: </label> |
92 |
<label for="description">Description: </label> |
| 94 |
<input type="text" name="description" id="description" size="20" maxlength="90" value="[% account.description %]" /> |
93 |
<input type="text" name="description" id="description" size="20" value="[% account.description %]" /> |
| 95 |
</li> |
94 |
</li> |
| 96 |
<li> |
95 |
<li> |
| 97 |
[% transport_types = [ |
96 |
[% transport_types = [ |
|
Lines 112-138
Link Here
|
| 112 |
</li> |
111 |
</li> |
| 113 |
<li> |
112 |
<li> |
| 114 |
<label for="host">Remote host: </label> |
113 |
<label for="host">Remote host: </label> |
| 115 |
<input type="text" name="host" id="host" size="20" maxlength="90" value="[% account.host %]" /> |
114 |
<input type="text" name="host" id="host" size="20" maxlength="40" value="[% account.host %]" /> |
| 116 |
</li> |
115 |
</li> |
| 117 |
<li> |
116 |
<li> |
| 118 |
<label for="username">Username: </label> |
117 |
<label for="username">Username: </label> |
| 119 |
<input type="text" name="username" id="username" size="20" maxlength="90" value="[% account.username %]" /> |
118 |
<input type="text" name="username" id="username" size="20" maxlength="40" value="[% account.username %]" /> |
| 120 |
</li> |
119 |
</li> |
| 121 |
<li> |
120 |
<li> |
| 122 |
<label for="password">Password: </label> |
121 |
<label for="password">Password: </label> |
| 123 |
<input type="text" name="password" id="password" size="20" maxlength="90" value="[% account.password %]" /> |
122 |
<input type="text" name="password" id="password" size="20" maxlength="40" value="[% account.password %]" /> |
| 124 |
</li> |
123 |
</li> |
| 125 |
<li> |
124 |
<li> |
| 126 |
<label for="download_directory">Download directory: </label> |
125 |
<label for="download_directory">Download directory: </label> |
| 127 |
<input type="text" name="download_directory" id="download_directory" size="20" maxlength="90" |
126 |
<input type="text" name="download_directory" id="download_directory" size="20" value="[% account.download_directory %]" /> |
| 128 |
title="The download directory specifies the directory on the ftpsite from which we download quotes and invoices" |
127 |
<div class="hint">The download directory specifies the directory on the ftp site from which quotes and invoices are downloaded.</div> |
| 129 |
value="[% account.download_directory %]" /> |
|
|
| 130 |
</li> |
128 |
</li> |
| 131 |
<li> |
129 |
<li> |
| 132 |
<label for="upload_directory">Upload directory: </label> |
130 |
<label for="upload_directory">Upload directory: </label> |
| 133 |
<input type="text" name="upload_directory" id="upload_directory" size="20" maxlength="90" |
131 |
<input type="text" name="upload_directory" id="upload_directory" size="20" value="[% account.upload_directory %]" /> |
| 134 |
title="The upload directory specifies the directory on the ftp site to which we upload orders" |
132 |
<div class="hint">The upload directory specifies the directory on the ftp site to which orders are uploaded.</div> |
| 135 |
value="[% account.upload_directory %]" /> |
|
|
| 136 |
</li> |
133 |
</li> |
| 137 |
<li> |
134 |
<li> |
| 138 |
<label for="id_code_qualifier">Qualifier:</label> |
135 |
<label for="id_code_qualifier">Qualifier:</label> |
|
Lines 152-163
Link Here
|
| 152 |
</li> |
149 |
</li> |
| 153 |
<li> |
150 |
<li> |
| 154 |
<label for="san">SAN: </label> |
151 |
<label for="san">SAN: </label> |
| 155 |
<input type="text" name="san" id="san" size="20" maxlength="90" value="[% account.san %]" /> |
152 |
<input type="text" name="san" id="san" size="20" maxlength="20" value="[% account.san %]" /> |
| 156 |
</li> |
153 |
</li> |
| 157 |
<li> |
154 |
<li> |
| 158 |
<label for="quotes_enabled">Quotes enabled: </label> |
155 |
<label for="quotes_enabled">Quotes enabled: </label> |
| 159 |
[% IF account.quotes_enabled %] |
156 |
[% IF account.quotes_enabled %] |
| 160 |
<input type="checkbox" name="quotes_enabled" id="quotes_enabled" value="[% account.quotes_enabled %]" checked /> |
157 |
<input type="checkbox" name="quotes_enabled" id="quotes_enabled" value="[% account.quotes_enabled %]" checked="checked" /> |
| 161 |
[% ELSE %] |
158 |
[% ELSE %] |
| 162 |
<input type="checkbox" name="quotes_enabled" id="quotes_enabled" value="[% account.quotes_enabled %]" /> |
159 |
<input type="checkbox" name="quotes_enabled" id="quotes_enabled" value="[% account.quotes_enabled %]" /> |
| 163 |
[% END %] |
160 |
[% END %] |
|
Lines 165-171
Link Here
|
| 165 |
<li> |
162 |
<li> |
| 166 |
<label for="orders_enabled">Orders enabled: </label> |
163 |
<label for="orders_enabled">Orders enabled: </label> |
| 167 |
[% IF account.orders_enabled %] |
164 |
[% IF account.orders_enabled %] |
| 168 |
<input type="checkbox" name="orders_enabled" id="orders_enabled" value="[% account.orders_enabled %]" checked /> |
165 |
<input type="checkbox" name="orders_enabled" id="orders_enabled" value="[% account.orders_enabled %]" checked="checked" /> |
| 169 |
[% ELSE %] |
166 |
[% ELSE %] |
| 170 |
<input type="checkbox" name="orders_enabled" id="orders_enabled" value="[% account.orders_enabled %]" /> |
167 |
<input type="checkbox" name="orders_enabled" id="orders_enabled" value="[% account.orders_enabled %]" /> |
| 171 |
[% END %] |
168 |
[% END %] |
|
Lines 173-179
Link Here
|
| 173 |
<li> |
170 |
<li> |
| 174 |
<label for="invoices_enabled">Invoices enabled: </label> |
171 |
<label for="invoices_enabled">Invoices enabled: </label> |
| 175 |
[% IF account.invoices_enabled %] |
172 |
[% IF account.invoices_enabled %] |
| 176 |
<input type="checkbox" name="invoices_enabled" id="invoices_enabled" value="[% account.invoices_enabled %]" checked /> |
173 |
<input type="checkbox" name="invoices_enabled" id="invoices_enabled" value="[% account.invoices_enabled %]" checked="checked" /> |
| 177 |
[% ELSE %] |
174 |
[% ELSE %] |
| 178 |
<input type="checkbox" name="invoices_enabled" id="invoices_enabled" value="[% account.invoices_enabled %]" /> |
175 |
<input type="checkbox" name="invoices_enabled" id="invoices_enabled" value="[% account.invoices_enabled %]" /> |
| 179 |
[% END %] |
176 |
[% END %] |
|
Lines 181-198
Link Here
|
| 181 |
<li> |
178 |
<li> |
| 182 |
<label for="responses_enabled">Responses enabled: </label> |
179 |
<label for="responses_enabled">Responses enabled: </label> |
| 183 |
[% IF account.responses_enabled %] |
180 |
[% IF account.responses_enabled %] |
| 184 |
<input type="checkbox" name="responses_enabled" id="responses_enabled" value="[% account.responses_enabled %]" checked /> |
181 |
<input type="checkbox" name="responses_enabled" id="responses_enabled" value="[% account.responses_enabled %]" checked="checked" /> |
| 185 |
[% ELSE %] |
182 |
[% ELSE %] |
| 186 |
<input type="checkbox" name="responses_enabled" id="responses_enabled" value="[% account.responses_enabled %]" /> |
183 |
<input type="checkbox" name="responses_enabled" id="responses_enabled" value="[% account.responses_enabled %]" /> |
| 187 |
[% END %] |
184 |
[% END %] |
| 188 |
</li> |
185 |
</li> |
| 189 |
<li> |
186 |
<li> |
| 190 |
<label for="auto_orders">Automatic ordering (Quotes generate orders without staff intervention): </label> |
187 |
<label for="auto_orders">Automatic ordering: </label> |
| 191 |
[% IF account.auto_orders %] |
188 |
[% IF account.auto_orders %] |
| 192 |
<input type="checkbox" name="auto_orders" id="auto_orders" value="[% account.auto_orders %]" checked /> |
189 |
<input type="checkbox" name="auto_orders" id="auto_orders" value="[% account.auto_orders %]" checked="checked" /> |
| 193 |
[% ELSE %] |
190 |
[% ELSE %] |
| 194 |
<input type="checkbox" name="auto_orders" id="auto_orders" value="[% account.auto_orders %]" /> |
191 |
<input type="checkbox" name="auto_orders" id="auto_orders" value="[% account.auto_orders %]" /> |
| 195 |
[% END %] |
192 |
[% END %] |
|
|
193 |
<div class="hint"> |
| 194 |
With automatic ordering quotes generate orders without staff intervention. |
| 195 |
</div> |
| 196 |
</li> |
196 |
</li> |
| 197 |
</ol> |
197 |
</ol> |
| 198 |
</fieldset> |
198 |
</fieldset> |
|
Lines 210-216
Link Here
|
| 210 |
<table> |
210 |
<table> |
| 211 |
<tr> |
211 |
<tr> |
| 212 |
<th>Vendor</th> |
212 |
<th>Vendor</th> |
| 213 |
<td>[% account.vendor %]</td> |
213 |
<td>[% account.vendor.name %]</td> |
| 214 |
</tr> |
214 |
</tr> |
| 215 |
<tr> |
215 |
<tr> |
| 216 |
<th>Description</th> |
216 |
<th>Description</th> |
|
Lines 226-238
Link Here
|
| 226 |
</table> |
226 |
</table> |
| 227 |
<input type="hidden" name="op" value="delete_confirmed" /> |
227 |
<input type="hidden" name="op" value="delete_confirmed" /> |
| 228 |
<input type="hidden" name="id" value="[% account.id %]" /> |
228 |
<input type="hidden" name="id" value="[% account.id %]" /> |
| 229 |
<input type="submit" class="approve" value="Yes, Delete" /> |
229 |
<button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete</button> |
| 230 |
</form> |
230 |
</form> |
| 231 |
<form action="/cgi-bin/koha/admin/edi_accounts.pl" method="get"> |
231 |
<form action="/cgi-bin/koha/admin/edi_accounts.pl" method="get"> |
| 232 |
<input type="submit" class="deny" value="No, do not Delete" /> |
232 |
<button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button> |
| 233 |
</form> |
233 |
</form> |
|
|
234 |
</div> |
| 234 |
[% END %] |
235 |
[% END %] |
| 235 |
[% IF display %] |
236 |
[% IF display %] |
|
|
237 |
[% IF ( ediaccounts ) %] |
| 236 |
<h2>Vendor EDI accounts</h2> |
238 |
<h2>Vendor EDI accounts</h2> |
| 237 |
|
239 |
|
| 238 |
<table> |
240 |
<table> |
|
Lines 244-251
Link Here
|
| 244 |
<th>Remote host</th> |
246 |
<th>Remote host</th> |
| 245 |
<th>Username</th> |
247 |
<th>Username</th> |
| 246 |
<th>Password</th> |
248 |
<th>Password</th> |
| 247 |
<th>Download Directory</th> |
249 |
<th>Download directory</th> |
| 248 |
<th>Upload Directory</th> |
250 |
<th>Upload directory</th> |
| 249 |
<th>Qualifier</th> |
251 |
<th>Qualifier</th> |
| 250 |
<th>SAN</th> |
252 |
<th>SAN</th> |
| 251 |
<th>Quotes</th> |
253 |
<th>Quotes</th> |
|
Lines 256-266
Link Here
|
| 256 |
<th>Actions</th> |
258 |
<th>Actions</th> |
| 257 |
</tr> |
259 |
</tr> |
| 258 |
[% FOREACH account IN ediaccounts %] |
260 |
[% FOREACH account IN ediaccounts %] |
| 259 |
[% IF loop.even %]<tr> |
261 |
<tr> |
| 260 |
[% ELSE %]<tr class="highlight"> |
|
|
| 261 |
[% END %] |
| 262 |
<td>[% account.id %]</td> |
262 |
<td>[% account.id %]</td> |
| 263 |
<td><a href="/cgi-bin/koha/acqui/supplier.pl?supplierid=[% account.vendor_id %]">[% account.vendor.name %]</a></td> |
263 |
<td><a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% account.vendor_id %]">[% account.vendor.name %]</a></td> |
| 264 |
<td>[% account.description %]</td> |
264 |
<td>[% account.description %]</td> |
| 265 |
<td>[% account.transport %]</td> |
265 |
<td>[% account.transport %]</td> |
| 266 |
<td>[% account.host %]</td> |
266 |
<td>[% account.host %]</td> |
|
Lines 302-313
Link Here
|
| 302 |
[% ELSE %] |
302 |
[% ELSE %] |
| 303 |
<td>N</td> |
303 |
<td>N</td> |
| 304 |
[% END %] |
304 |
[% END %] |
| 305 |
<td align="center"> |
305 |
<td class="actions"> |
| 306 |
<a href="/cgi-bin/koha/admin/edi_accounts.pl?op=acct_form&id=[% account.id %]">Edit</a> | <a href="/cgi-bin/koha/admin/edi_accounts.pl?op=delete_confirm&id=[% account.id %]">Delete</a> |
306 |
<a class="btn btn-mini" href="/cgi-bin/koha/admin/edi_accounts.pl?op=acct_form&id=[% account.id %]"><i class="fa fa-pencil"></i> Edit</a> <a class="btn btn-mini" href="/cgi-bin/koha/admin/edi_accounts.pl?op=delete_confirm&id=[% account.id %]"><i class="fa fa-trash"></i> Delete</a> |
| 307 |
</td> |
307 |
</td> |
| 308 |
</tr> |
308 |
</tr> |
| 309 |
[% END %] |
309 |
[% END %] |
| 310 |
</table> |
310 |
</table> |
|
|
311 |
[% ELSE %] |
| 312 |
<div class="dialog message"> |
| 313 |
There are no EDI accounts. |
| 314 |
</div> |
| 315 |
[% END %] |
| 311 |
[% END %] |
316 |
[% END %] |
| 312 |
|
317 |
|
| 313 |
</div> |
318 |
</div> |