Wainui Witika-Park
9174029a8e
Changed each of the pages in the admin folder to have one <h1> tag showing that describes the page, rather than the <h1> describing the logo. The hierarchy of heading tags may be broken in many pages, but this will be dealt with in an additional bug. To test: 1) Go to the Staff Client 2) Apply patch 3) Go to each of the pages in the admin folder and check that they have an obvious and descriptive heading 4) Ensure that the heading in the page is <h1> Sponsored-by: Catalyst IT Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
398 lines
13 KiB
Text
398 lines
13 KiB
Text
[% USE raw %]
|
|
[% USE Koha %]
|
|
[% USE Asset %]
|
|
[% SET footerjs = 1 %]
|
|
[% INCLUDE 'doc-head-open.inc' %]
|
|
<title>
|
|
[% IF acct_form %]
|
|
[% IF account %]
|
|
Modify account
|
|
[% ELSE %]
|
|
Add new account
|
|
[% END %] › [% END %]
|
|
[% IF delete_confirm %]
|
|
Confirm deletion of account › [% END %]
|
|
EDI accounts › Administration › Koha
|
|
</title>
|
|
[% INCLUDE 'doc-head-close.inc' %]
|
|
</head>
|
|
<body id="admin_edi_acct" class="admin">
|
|
[% INCLUDE 'header.inc' %]
|
|
[% INCLUDE 'prefs-admin-search.inc' %]
|
|
|
|
<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
|
|
<ol>
|
|
<li>
|
|
<a href="/cgi-bin/koha/mainpage.pl">Home</a>
|
|
</li>
|
|
<li>
|
|
<a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
|
|
</li>
|
|
|
|
[% IF acct_form %]
|
|
<li>
|
|
<a href="/cgi-bin/koha/admin/edi_accounts.pl">EDI accounts</a>
|
|
</li>
|
|
[% IF account %]
|
|
<li>
|
|
<a href="#" aria-current="page">
|
|
Modify account
|
|
</a>
|
|
</li>
|
|
[% ELSE %]
|
|
<li>
|
|
<a href="#" aria-current="page">
|
|
Add new account
|
|
</a>
|
|
</li>
|
|
[% END %]
|
|
|
|
[% ELSIF delete_confirm %]
|
|
<li>
|
|
<a href="/cgi-bin/koha/admin/edi_accounts.pl">EDI accounts</a>
|
|
</li>
|
|
<li>
|
|
<a href="#" aria-current="page">
|
|
Confirm deletion of account
|
|
</a>
|
|
</li>
|
|
|
|
[% ELSE %]
|
|
<li>
|
|
<a href="#" aria-current="page">
|
|
EDI accounts
|
|
</a>
|
|
</li>
|
|
[% END %]
|
|
</ol>
|
|
</nav>
|
|
|
|
<div class="main container-fluid">
|
|
<div class="row">
|
|
<div class="col-sm-10 col-sm-push-2">
|
|
<main>
|
|
|
|
|
|
[% UNLESS Koha.Preference('EDIFACT') %]
|
|
<div class="dialog message">
|
|
EDIFACT is currently disabled
|
|
</div>
|
|
[% END %]
|
|
|
|
[% IF display %]
|
|
<div id="toolbar" class="btn-toolbar">
|
|
<a class="btn btn-default" id="newediacct" href="/cgi-bin/koha/admin/edi_accounts.pl?op=acct_form">
|
|
<i class="fa fa-plus"></i>
|
|
New account
|
|
</a>
|
|
</div>
|
|
[% END %]
|
|
|
|
[% IF acct_form %]
|
|
<form action="/cgi-bin/koha/admin/edi_accounts.pl" name="Actform" method="post">
|
|
<input type="hidden" name="op" value="save" />
|
|
[% IF account %]
|
|
<input type="hidden" name="id" value="[% account.id | html %]" />
|
|
[% END %]
|
|
<fieldset class="rows">
|
|
<legend>
|
|
<h1>
|
|
[% IF account %]
|
|
Modify account
|
|
[% ELSE %]
|
|
New account
|
|
[% END %]
|
|
</h1>
|
|
</legend>
|
|
|
|
<ol>
|
|
<li>
|
|
<label for="vendor_id">Vendor: </label>
|
|
<select name="vendor_id" id="vendor_id">
|
|
[% FOREACH vendor IN vendors %]
|
|
[% IF account.vendor_id == vendor.id %]
|
|
<option value="[% vendor.id | html %]" selected="selected">[% vendor.name | html %]</option>
|
|
[% ELSE %]
|
|
<option value="[% vendor.id | html %]">[% vendor.name | html %]</option>
|
|
[% END %]
|
|
[% END %]
|
|
</select>
|
|
</li>
|
|
[% IF plugins %]
|
|
<li>
|
|
<label for="plugin">Plugin: </label>
|
|
<select name="plugin" id="plugin">
|
|
<option value="">Do not use plugin</option>
|
|
[% FOREACH plugin IN plugins %]
|
|
[% IF account.plugin == plugin.class %]
|
|
<option value="[% plugin.class | html %]" selected="selected">[% plugin.metadata.name | html %]</option>
|
|
[% ELSE %]
|
|
<option value="[% plugin.class | html %]">[% plugin.metadata.name | html %]</option>
|
|
[% END %]
|
|
[% END %]
|
|
</select>
|
|
</li>
|
|
[% ELSE %]
|
|
<input type="hidden" name="plugin" value="" />
|
|
[% END %]
|
|
<li>
|
|
<label for="description">Description: </label>
|
|
<input type="text" name="description" id="description" size="20" value="[% account.description | html %]" />
|
|
</li>
|
|
<li>
|
|
[% transport_types = [ 'FTP', 'SFTP', 'FILE' ] %]
|
|
<label for="transport">Transport: </label>
|
|
<select name="transport" title="valid types of transport are FTP and SFTP"
|
|
id="transport">
|
|
[% FOREACH transport_type IN transport_types %]
|
|
[% IF transport_type == account.transport %]
|
|
<option value="[% transport_type | html %]" selected="selected">[% transport_type | html %]</option>
|
|
[% ELSE %]
|
|
<option value="[% transport_type | html %]">[% transport_type | html %]</option>
|
|
[% END %]
|
|
[% END %]
|
|
</select>
|
|
</li>
|
|
<li>
|
|
<label for="host">Remote host: </label>
|
|
<input type="text" name="host" id="host" size="20" maxlength="40" value="[% account.host | html %]" />
|
|
</li>
|
|
<li>
|
|
<label for="username">Username: </label>
|
|
<input type="text" name="username" id="username" size="20" maxlength="40" value="[% account.username | html %]" />
|
|
</li>
|
|
<li>
|
|
<label for="password">Password: </label>
|
|
<input type="text" name="password" id="password" size="20" maxlength="40" value="[% account.password | html %]" />
|
|
</li>
|
|
<li>
|
|
<label for="download_directory">Download directory: </label>
|
|
<input type="text" name="download_directory" id="download_directory" size="20" value="[% account.download_directory | html %]" />
|
|
<div class="hint">The download directory specifies the directory on the ftp site from which quotes and invoices are downloaded.</div>
|
|
</li>
|
|
<li>
|
|
<label for="upload_directory">Upload directory: </label>
|
|
<input type="text" name="upload_directory" id="upload_directory" size="20" value="[% account.upload_directory | html %]" />
|
|
<div class="hint">The upload directory specifies the directory on the ftp site to which orders are uploaded.</div>
|
|
</li>
|
|
<li>
|
|
<label for="id_code_qualifier">Qualifier:</label>
|
|
<select name="id_code_qualifier" id="id_code_qualifier">
|
|
[% FOREACH qualifier IN code_qualifiers %]
|
|
[% IF qualifier.code == account.id_code_qualifier %]
|
|
<option value="[% qualifier.code | html %]" selected="selected">
|
|
[% qualifier.description | html %] ([% qualifier.code | html %])
|
|
</option>
|
|
[% ELSE %]
|
|
<option value="[% qualifier.code | html %]">
|
|
[% qualifier.description | html %] ([% qualifier.code | html %])
|
|
</option>
|
|
[% END %]
|
|
[% END %]
|
|
</select>
|
|
</li>
|
|
<li>
|
|
<label for="san">SAN: </label>
|
|
<input type="text" name="san" id="san" size="20" maxlength="20" value="[% account.san | html %]" />
|
|
</li>
|
|
<li>
|
|
<label for="standard">Standard:</label>
|
|
<select name="standard" id="standard">
|
|
[% FOREACH standard IN standards %]
|
|
[% IF standard == 'BIC' %]
|
|
[% SET description = 'BiC' %]
|
|
[% ELSE %]
|
|
[% SET description = 'EDItEUR' %]
|
|
[% END %]
|
|
[% IF standard == account.standard %]
|
|
<option value="[% standard | html %]" selected="selected">
|
|
[% description | html %]
|
|
</option>
|
|
[% ELSE %]
|
|
<option value="[% standard | html %]">
|
|
[% description | html %]
|
|
</option>
|
|
[% END %]
|
|
[% END %]
|
|
</select>
|
|
</li>
|
|
<li>
|
|
<label for="quotes_enabled">Quotes enabled: </label>
|
|
[% IF account.quotes_enabled %]
|
|
<input type="checkbox" name="quotes_enabled" id="quotes_enabled" value="1" checked="checked" />
|
|
[% ELSE %]
|
|
<input type="checkbox" name="quotes_enabled" id="quotes_enabled" value="1" />
|
|
[% END %]
|
|
</li>
|
|
<li>
|
|
<label for="orders_enabled">Orders enabled: </label>
|
|
[% IF account.orders_enabled %]
|
|
<input type="checkbox" name="orders_enabled" id="orders_enabled" value="1" checked="checked" />
|
|
[% ELSE %]
|
|
<input type="checkbox" name="orders_enabled" id="orders_enabled" value="1" />
|
|
[% END %]
|
|
</li>
|
|
<li>
|
|
<label for="invoices_enabled">Invoices enabled: </label>
|
|
[% IF account.invoices_enabled %]
|
|
<input type="checkbox" name="invoices_enabled" id="invoices_enabled" value="1" checked="checked" />
|
|
[% ELSE %]
|
|
<input type="checkbox" name="invoices_enabled" id="invoices_enabled" value="1" />
|
|
[% END %]
|
|
</li>
|
|
<li>
|
|
<label for="responses_enabled">Responses enabled: </label>
|
|
[% IF account.responses_enabled %]
|
|
<input type="checkbox" name="responses_enabled" id="responses_enabled" value="1" checked="checked" />
|
|
[% ELSE %]
|
|
<input type="checkbox" name="responses_enabled" id="responses_enabled" value="1" />
|
|
[% END %]
|
|
</li>
|
|
<li>
|
|
<label for="auto_orders">Automatic ordering: </label>
|
|
[% IF account.auto_orders %]
|
|
<input type="checkbox" name="auto_orders" id="auto_orders" value="1" checked="checked" />
|
|
[% ELSE %]
|
|
<input type="checkbox" name="auto_orders" id="auto_orders" value="1" />
|
|
[% END %]
|
|
<div class="hint">
|
|
With automatic ordering quotes generate orders without staff intervention.
|
|
</div>
|
|
</li>
|
|
</ol>
|
|
</fieldset>
|
|
|
|
<fieldset class="action">
|
|
<input type="submit" value="Submit" />
|
|
<a href="/cgi-bin/koha/admin/edi_accounts.pl" class="cancel">Cancel</a>
|
|
</fieldset>
|
|
</form>
|
|
|
|
[% END %]
|
|
[% IF delete_confirm %]
|
|
<div class="dialog alert">
|
|
<h1>Delete this account?</h1>
|
|
<table>
|
|
<tr>
|
|
<th>Vendor</th>
|
|
<td>[% account.vendor.name | html %]</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Description</th>
|
|
<td>[% account.description | html %]</td>
|
|
</tr>
|
|
<tr>
|
|
<th>SAN</th>
|
|
<td>[% account.san | html %]</td>
|
|
</tr>
|
|
</table>
|
|
<form action="/cgi-bin/koha/admin/edi_accounts.pl" method="post">
|
|
<table>
|
|
</table>
|
|
<input type="hidden" name="op" value="delete_confirmed" />
|
|
<input type="hidden" name="id" value="[% account.id | html %]" />
|
|
<button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete</button>
|
|
</form>
|
|
<form action="/cgi-bin/koha/admin/edi_accounts.pl" method="get">
|
|
<button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button>
|
|
</form>
|
|
</div>
|
|
[% END %]
|
|
[% IF display %]
|
|
[% IF ( ediaccounts ) %]
|
|
<h1>Vendor EDI accounts</h1>
|
|
|
|
<table>
|
|
<tr>
|
|
<th>ID</th>
|
|
<th>Vendor</th>
|
|
<th>Description</th>
|
|
<th>Transport</th>
|
|
<th>Remote host</th>
|
|
<th>Username</th>
|
|
<th>Password</th>
|
|
<th>Download directory</th>
|
|
<th>Upload directory</th>
|
|
<th>Qualifier</th>
|
|
<th>SAN</th>
|
|
<th>Standard</th>
|
|
<th>Quotes</th>
|
|
<th>Orders</th>
|
|
<th>Invoices</th>
|
|
<th>Responses</th>
|
|
<th>Auto ordering</th>
|
|
<th class="noExport">Actions</th>
|
|
</tr>
|
|
[% FOREACH account IN ediaccounts %]
|
|
<tr>
|
|
<td>[% account.id | html %]</td>
|
|
<td><a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% account.vendor_id | uri %]">[% account.vendor.name | html %]</a></td>
|
|
<td>[% account.description | html %]</td>
|
|
<td>[% account.transport | html %]</td>
|
|
<td>[% account.host | html %]</td>
|
|
<td>[% account.username | html %]</td>
|
|
<td>[% IF account.password %]*****[% END %]</td>
|
|
<td>[% account.download_directory | html %]</td>
|
|
<td>[% account.upload_directory | html %]</td>
|
|
<td>
|
|
[% FOREACH qualifier IN code_qualifiers %]
|
|
[% IF qualifier.code == account.id_code_qualifier %]
|
|
[% qualifier.description | html %]
|
|
[% END %]
|
|
[% END %]
|
|
([% account.id_code_qualifier | html %])
|
|
</td>
|
|
<td>[% account.san | html %]</td>
|
|
<td>[% IF account.standard == 'BIC' %]BiC[% ELSE %]EDItEUR[% END %]</td>
|
|
[% IF account.quotes_enabled %]
|
|
<td>Yes</td>
|
|
[% ELSE %]
|
|
<td>No</td>
|
|
[% END %]
|
|
[% IF account.orders_enabled %]
|
|
<td>Yes</td>
|
|
[% ELSE %]
|
|
<td>No</td>
|
|
[% END %]
|
|
[% IF account.invoices_enabled %]
|
|
<td>Yes</td>
|
|
[% ELSE %]
|
|
<td>No</td>
|
|
[% END %]
|
|
[% IF account.responses_enabled %]
|
|
<td>Yes</td>
|
|
[% ELSE %]
|
|
<td>No</td>
|
|
[% END %]
|
|
[% IF account.auto_orders %]
|
|
<td>Yes</td>
|
|
[% ELSE %]
|
|
<td>No</td>
|
|
[% END %]
|
|
<td class="actions">
|
|
<a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/edi_accounts.pl?op=acct_form&id=[% account.id | html %]"><i class="fa fa-pencil"></i> Edit</a> <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/edi_accounts.pl?op=delete_confirm&id=[% account.id | html %]"><i class="fa fa-trash"></i> Delete</a>
|
|
</td>
|
|
</tr>
|
|
[% END %]
|
|
</table>
|
|
[% ELSE %]
|
|
<div class="dialog message">
|
|
There are no EDI accounts.
|
|
</div>
|
|
[% END %]
|
|
[% END %]
|
|
|
|
</main>
|
|
</div> <!-- /.col-sm-10.col-sm-push-2 -->
|
|
|
|
<div class="col-sm-2 col-sm-pull-10">
|
|
<aside>
|
|
[% INCLUDE 'admin-menu.inc' %]
|
|
</aside>
|
|
</div> <!-- /.col-sm-2.col-sm-pull-10 -->
|
|
</div> <!-- /.row -->
|
|
|
|
[% MACRO jsinclude BLOCK %]
|
|
[% Asset.js("js/admin-menu.js") | $raw %]
|
|
[% END %]
|
|
[% INCLUDE 'intranet-bottom.inc' %]
|