Koha/koha-tmpl/intranet-tmpl/prog/en/modules/admin/desks.tt
Owen Leonard 9bd21c7a38
Bug 33909: Improve translation of title tags: Administration
This patch updates administration templates so that title tags can be
more easily translated.

To test, apply the patch and confirm that the following
Administration pages have the correct title tags:

 - Libraries
 - Library groups
 - Item types
 - Authorized values
 - Patron categories
 - Circulation and fines rules
 - Patron attribute types
 - Library transfer limits
 - Library transfer limits advanced editor
 - Transport cost matrix
 - Item circulation alerts
 - Cities and towns
 - Curbside pickup
 - Patron restriction types
 - Debit types
 - Credit types
 - Cash registers
 - Manage plugins
 - Manage jobs
 - MARC bibliographic framework
 - Koha to MARC mapping
 - MARC Bibliographic framework test
 - Authority types
 - Classification configuration
 - Record matching rules
 - Record overlay rules
 - OAI sets configuration
 - Item search fields
 - Search engine configuration
 - Currencies and exchange rates
 - Budgets
 - Funds
 - EDI accounts
 - Library EANs
 - Network Printers
 - Identity providers
 - Z39.50/SRU servers
 - SMTP servers
 - Did you mean?
 - Table settings
 - Audio alerts
 - Share your usage statistics
 - Share content with Mana KB
 - Additional fields
 - Keyboard shortcuts

Signed-off-by: Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-08-15 11:25:51 +03:00

233 lines
8.5 KiB
Text

[% USE raw %]
[% USE Branches %]
[% USE Asset %]
[% PROCESS 'i18n.inc' %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>[% FILTER collapse %]
[% IF op =='add_form' %]
[% IF desk.desk_id %]
[% t("Modify desk") | html %]
[% ELSE %]
[% t("New desk") | html %]
[% END %] &rsaquo;
[% ELSE %]
[% IF op == 'delete_confirm' %]
[% t("Confirm deletion of desk") | html %] &rsaquo;
[% END %]
[% END %]
[% t("Desks") | html %] &rsaquo;
[% t("Administration") | html %] &rsaquo;
[% t("Koha") | html %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
</head>
<body id="admin_desks" class="admin">
[% WRAPPER 'header.inc' %]
[% INCLUDE 'desks-admin-search.inc' %]
[% END %]
[% WRAPPER 'sub-header.inc' %]
[% WRAPPER breadcrumbs %]
[% WRAPPER breadcrumb_item %]
<a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
[% END %]
[% IF op == 'add_form' || op == 'delete_confirm' %]
[% WRAPPER breadcrumb_item %]
<a href="/cgi-bin/koha/admin/desks.pl">Desks</a>
[% END %]
[% ELSE %]
[% WRAPPER breadcrumb_item bc_active = 1 %]
<span>Desks</span>
[% END %]
[% END %]
[% IF op == 'add_form' %]
[% WRAPPER breadcrumb_item bc_active = 1 %]
[% IF desk.desk_id %]
<span>Modify desk</span>
[% ELSE %]
<span>New desk</span>
[% END %]
[% END %]
[% ELSIF op == 'delete_confirm' %]
[% WRAPPER breadcrumb_item bc_active = 1 %]
<span>Confirm deletion of desk</span>
[% END %]
[% END %]
[% END #/ WRAPPER breadcrumbs %]
[% END #/ WRAPPER sub-header.inc %]
<div class="main container-fluid">
<div class="row">
<div class="col-sm-10 col-sm-push-2">
<main>
[% FOR m IN messages %]
<div class="dialog [% m.type | html %]">
[% SWITCH m.code %]
[% CASE 'error_on_update' %]
<span>An error occurred when updating this desk. Perhaps it already exists</span>
[% CASE 'error_on_insert' %]
<span>An error occurred when adding this desk. The desk ID might already exist</span>
[% CASE 'error_on_delete' %]
<span>An error occurred when deleting this desk. Check the logs</span>
[% CASE 'success_on_update' %]
<span>Desk updated successfully</span>
[% CASE 'success_on_insert' %]
<span>Desk added successfully</span>
[% CASE 'success_on_delete' %]
<span>Desk deleted successfully</span>
[% CASE 'already_exists' %]
<span>This desk already exists</span>
[% CASE %]
<span>[% m.code | html %]</span>
[% END %]
</div>
[% END %]
[% IF op == 'add_form' %]
[% IF desk %]
<h1>Modify a desk</h1>
[% ELSE %]
<h1>New desk</h1>
[% END %]
<form action="/cgi-bin/koha/admin/desks.pl" name="Aform" method="post" class="validated">
<input type="hidden" name="op" value="add_validate" />
<input type="hidden" name="desk_id" value="[% desk.desk_id | html %]" />
<fieldset class="rows">
<ol>
[% IF desk %]
<li><span class="label">Desk ID: </span>[% desk.desk_id | html %]</li>
[% END %]
<li>
<label for="desk_name" class="required">Desk: </label>
<input type="text" name="desk_name" id="desk_name" size="80" maxlength="100" value="[% desk.desk_name | html %]" required="required" class="required" /> <span class="required">Required</span>
</li>
<li>
<label for="branchcode" class="required">Library: </label>
<select id="branchcode" name="branchcode" required="required">
<option value=""></option>
[% FOREACH branch IN branches %]
[% IF desk %]
[% IF (desk.branchcode == branch.branchcode) %]
<option value="[% branch.branchcode|html %]" selected="selected">[% branch.branchname|html %]</option>
[% END%]
[% ELSE %]
[% IF (Branches.GetLoggedInBranchcode == branch.branchcode) %]
<option value="[% branch.branchcode|html %]" selected="selected">[% branch.branchname|html %]</option>
[% END%]
<option value="[% branch.branchcode|html %]">[% branch.branchname|html %]</option>
[% END %]
[% END %]
</select>
</li>
</ol>
</fieldset>
<fieldset class="action">
<input type="submit" class="btn btn-primary" value="Submit" />
<a class="cancel" href="/cgi-bin/koha/admin/desks.pl">Cancel</a>
</fieldset>
</form>
[% END %]
[% IF op == 'delete_confirm' %]
<div class="dialog alert">
<h1>Delete desk "[% desk.desk_name | html %]"?</h1>
<table>
<tr><th>Desk ID</th>
<td>[% desk.desk_id | html %]</td>
</tr>
<tr><th>Desk</th>
<td>[% desk.desk_name | html %]</td>
</tr>
<tr><th>Library</th>
<td>[% Branches.GetName( desk.branchcode ) | html %]</td>
</tr>
</table>
<form action="/cgi-bin/koha/admin/desks.pl" method="post">
<input type="hidden" name="op" value="delete_confirmed" />
<input type="hidden" name="desk_id" value="[% desk.desk_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/desks.pl" method="get">
<button type="submit" class="deny"><i class="fa fa-fw fa-times"></i> No, do not delete</button>
</form>
</div>
[% END %]
[% IF op == 'list' %]
<div id="toolbar" class="btn-toolbar">
<a class="btn btn-default" id="newdesk" href="/cgi-bin/koha/admin/desks.pl?op=add_form"><i class="fa fa-plus"></i> New desk</a>
</div>
<h1>Desks</h1>
[% IF searchfield %]
<span>Searching: [% searchfield | html %]</span>
[% END %]
[% IF desks.count %]
<div class="page-section">
<table id="table_desks">
<thead>
<tr>
<th>Desk ID</th>
<th>Desk</th>
<th>Library</th>
<th class="NoSort noExport">Action</th>
</tr>
</thead>
<tbody>
[% FOREACH desk IN desks %]
<tr>
<td>[% desk.desk_id | html %]</td>
<td>[% desk.desk_name | html %]</td>
<td>[% Branches.GetName( desk.branchcode ) | html %]</td>
<td class="actions">
<a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/desks.pl?op=add_form&amp;desk_id=[% desk.desk_id | html %]"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a>
<a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/desks.pl?op=delete_confirm&amp;desk_id=[% desk.desk_id | html %]"><i class="fa fa-trash-can"></i> Delete</a>
</td>
</tr>
[% END %]
</tbody>
</table>
</div> <!-- /.page-section -->
[% ELSE %]
<div class="dialog message">
There are no desks defined. <a href="/cgi-bin/koha/admin/desks.pl?op=add_form">Create a new desk</a>.
</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 %]
[% INCLUDE 'datatables.inc' %]
[% INCLUDE 'columns_settings.inc' %]
<script>
$(document).ready(function() {
KohaTable("table_desks", {
"order": [[ 1, "asc" ]]
});
});
</script>
[% END %]
[% INCLUDE 'intranet-bottom.inc' %]