From df86ffc92842b6cffed462eb291cec99e2231c5d Mon Sep 17 00:00:00 2001 From: Owen Leonard <oleonard@myacpl.org> Date: Tue, 25 Oct 2022 19:13:06 +0000 Subject: [PATCH] Bug 31986: Add page-section to various administration pages This patch adds a page-section div to some administration pages in order to provide a consistent structure visual contrast. The following pages are modified: Additional fields Funds Authority types Authority types -> MARC tag structure Authority types -> MARC tag structure -> Subfields MARC bibliographic framework MARC bibliographic framework -> MARC tag structure MARC bibliographic framework -> MARC tag structure -> Subfields MARC Bibliographic framework test Classification configuration Currencies and exchange rates EDI accounts Library EANs Item search fields Koha to MARC mapping Record overlay rules Record matching rules OAI sets configuration SMTP servers Z39.50/SRU servers To test, view each page to confirm that the page-section div visibly delineates the main content area. Signed-off-by: David Nind <david@davidnind.com> --- .../en/modules/admin/additional-fields.tt | 43 ++--- .../prog/en/modules/admin/aqbudgets.tt | 3 +- .../modules/admin/auth_subfields_structure.tt | 2 + .../en/modules/admin/auth_tag_structure.tt | 4 +- .../prog/en/modules/admin/authtypes.tt | 167 +++++++++--------- .../prog/en/modules/admin/biblio_framework.tt | 4 +- .../prog/en/modules/admin/checkmarc.tt | 3 + .../prog/en/modules/admin/classsources.tt | 6 + .../prog/en/modules/admin/currency.tt | 65 +++---- .../prog/en/modules/admin/edi_accounts.tt | 3 +- .../prog/en/modules/admin/edi_ean_accounts.tt | 2 + .../en/modules/admin/items_search_fields.tt | 4 +- .../prog/en/modules/admin/koha2marclinks.tt | 3 +- .../en/modules/admin/marc-overlay-rules.tt | 2 + .../modules/admin/marc_subfields_structure.tt | 90 +++++----- .../prog/en/modules/admin/marctagstructure.tt | 2 + .../prog/en/modules/admin/matching-rules.tt | 36 ++-- .../prog/en/modules/admin/oai_sets.tt | 78 ++++---- .../prog/en/modules/admin/smtp_servers.tt | 28 +-- .../prog/en/modules/admin/z3950servers.tt | 3 + 20 files changed, 294 insertions(+), 254 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/additional-fields.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/additional-fields.tt index 858e5a7751..c76d77df6f 100755 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/additional-fields.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/additional-fields.tt @@ -109,28 +109,31 @@ [% IF op == 'list_tables' %] [% IF CAN_user_acquisitions_order_manage || CAN_user_serials_edit_subscription || CAN_user_updatecharges_remaining_permissions %] <h1>Additional fields</h1> - <p>Select a table:</p> - [% BLOCK table_option %] - <li><a href="?tablename=[% value | uri %]">[% content | $raw %] (<span class="ex">[% value | html %]</span>)</a></li> - [% END %] - <ul> - [% IF CAN_user_acquisition_order_manage %] - [% WRAPPER table_option value="aqbasket" %]<span>Order baskets</span>[% END %] - [% END %] - [% IF CAN_user_acquisition_edit_invoices %] - [% WRAPPER table_option value="aqinvoices" %]<span>Invoices</span>[% END %] - [% END %] - [% IF CAN_user_serials_edit_subscription %] - [% WRAPPER table_option value="subscription" %]<span>Subscriptions</span>[% END %] + + <div class="page-section"> + <p>Select a table:</p> + [% BLOCK table_option %] + <li><a href="?tablename=[% value | uri %]">[% content | $raw %] (<span class="ex">[% value | html %]</span>)</a></li> [% END %] - [% IF CAN_user_updatecharges_remaining_permissions %] - [% WRAPPER table_option value="accountlines:credit" %]Account lines (credit)[% END %] - [% WRAPPER table_option value="accountlines:debit" %]Account lines (debit)[% END %] + <ul> + [% IF CAN_user_acquisition_order_manage %] + [% WRAPPER table_option value="aqbasket" %]<span>Order baskets</span>[% END %] + [% END %] + [% IF CAN_user_acquisition_edit_invoices %] + [% WRAPPER table_option value="aqinvoices" %]<span>Invoices</span>[% END %] + [% END %] + [% IF CAN_user_serials_edit_subscription %] + [% WRAPPER table_option value="subscription" %]<span>Subscriptions</span>[% END %] + [% END %] + [% IF CAN_user_updatecharges_remaining_permissions %] + [% WRAPPER table_option value="accountlines:credit" %]Account lines (credit)[% END %] + [% WRAPPER table_option value="accountlines:debit" %]Account lines (debit)[% END %] + [% END %] + </ul> + [% ELSE %] + Additional permissions are required for editing additional fields [% END %] - </ul> - [% ELSE %] - Additional permissions are required for editing additional fields - [% END %] + </div><!-- /.page-section --> [% ELSIF op == 'list' %] <h1>Additional fields for '[% tablename | html %]'</h1> [% IF fields %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt index eb76f3702e..195c2a6564 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt @@ -116,7 +116,7 @@ </span> </div> [% END %] - +<div class="page-section"> <table id="budgeth" class="group"> <thead> <tr> @@ -234,6 +234,7 @@ [% END %] </tbody> </table> +</div> <!-- /.page-section --> [% ELSE %] <p>No fund found</p> diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_subfields_structure.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_subfields_structure.tt index 8078d6d99b..e2e0130dc9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_subfields_structure.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_subfields_structure.tt @@ -313,6 +313,7 @@ <p>This screen shows the subfields associated with the selected tag. You can edit subfields or add a new one by clicking on edit.</p> <p>The column 'Koha field' shows that the subfield is linked with a Koha field.</p> +<div class="page-section"> <table id="table_authsubfieldstructure"> <thead> <tr> @@ -364,6 +365,7 @@ [% END %] </tbody> </table> +</div> <!-- /.page-section --> <form action="[% script_name | html %]" method="get"> <fieldset class="action"><input type="hidden" name="op" value="add_form" /> diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_tag_structure.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_tag_structure.tt index efc0f2982b..1fe94868e5 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_tag_structure.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_tag_structure.tt @@ -298,6 +298,8 @@ Authority MARC framework › Administration › Koha </form><br /> <div id="pagertable_authtagstructure"> </div> + +<div class="page-section"> <table id="table_authtagstructure"> <thead> <tr> @@ -332,7 +334,7 @@ Authority MARC framework › Administration › Koha [% END %] </tbody> </table> - +</div> <!-- /.page-section --> [% END %] </main> diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authtypes.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authtypes.tt index 9d998bec63..b6c940a08d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authtypes.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authtypes.tt @@ -171,92 +171,95 @@ Authority types › Administration › Koha <h1>Authority types</h1> <p>Define authority types, then authority MARC structure in the same way you define itemtypes and bibliographic MARC tag structure. Authority values are managed through plugins</p> - <table id="authtypes"> - <thead> - <tr> - <th>Code</th> - <th>Description</th> - <th>Summary</th> - <th>Auth field copied</th> - <th> </th> - </tr> - </thead> - <tbody> - [% FOREACH authority_type IN authority_types %] + + <div class="page-section"> + <table id="authtypes"> + <thead> <tr> - <td>[% authority_type.authtypecode | html %]</td> - <td>[% authority_type.authtypetext | html %]</td> - <td>[% authority_type.summary | html %]</td> - <td>[% authority_type.auth_tag_to_report | html %]</td> - <td> - <div class="btn-group dropup"> - <a class="btn btn-default btn-xs dropdown-toggle" id="authtypeactions[% authority_type.authtypecode | html %]" role="button" data-toggle="dropdown" href="#"> - Actions <b class="caret"></b></a> - <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="authtypeactions[% authority_type.authtypecode | html %]"> - <li><a href="auth_tag_structure.pl?authtypecode=[% authority_type.authtypecode | uri %]" class="button parameters"><i class="fa fa-eye"></i> MARC structure</a></li> - <li><a href="/cgi-bin/koha/admin/authtypes.pl?op=add_form&authtypecode=[% authority_type.authtypecode | uri %]"><i class="fa fa-pencil"></i> Edit</a></li> - [% IF authority_type.authtypecode %]<li><a href="/cgi-bin/koha/admin/authtypes.pl?op=delete_confirm&authtypecode=[% authority_type.authtypecode | uri %]"><i class="fa fa-trash"></i> Delete</a></li>[% END %] - <!-- Button to trigger modal --> - <li><a href="#" data-toggle="modal" data-target="#exportModal_[% authority_type.authtypecode | html %][% loop.count | html %]" title="Export authority type (fields, subfields) to a spreadsheet file (.csv, .ods)"><i class="fa fa-upload"></i> Export</a></li> - <!-- Button to trigger modal --> - <li><a href="#" data-toggle="modal" data-target="#importModal_[% authority_type.authtypecode | html %][% loop.count | html %]" title="Import authority type (fields, subfields) from a spreadsheet file (.csv, .ods)"><i class="fa fa-download"></i> Import</a></li> - </ul> - </div> + <th>Code</th> + <th>Description</th> + <th>Summary</th> + <th>Auth field copied</th> + <th> </th> + </tr> + </thead> + <tbody> + [% FOREACH authority_type IN authority_types %] + <tr> + <td>[% authority_type.authtypecode | html %]</td> + <td>[% authority_type.authtypetext | html %]</td> + <td>[% authority_type.summary | html %]</td> + <td>[% authority_type.auth_tag_to_report | html %]</td> + <td> + <div class="btn-group dropup"> + <a class="btn btn-default btn-xs dropdown-toggle" id="authtypeactions[% authority_type.authtypecode | html %]" role="button" data-toggle="dropdown" href="#"> + Actions <b class="caret"></b></a> + <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="authtypeactions[% authority_type.authtypecode | html %]"> + <li><a href="auth_tag_structure.pl?authtypecode=[% authority_type.authtypecode | uri %]" class="button parameters"><i class="fa fa-eye"></i> MARC structure</a></li> + <li><a href="/cgi-bin/koha/admin/authtypes.pl?op=add_form&authtypecode=[% authority_type.authtypecode | uri %]"><i class="fa fa-pencil"></i> Edit</a></li> + [% IF authority_type.authtypecode %]<li><a href="/cgi-bin/koha/admin/authtypes.pl?op=delete_confirm&authtypecode=[% authority_type.authtypecode | uri %]"><i class="fa fa-trash"></i> Delete</a></li>[% END %] + <!-- Button to trigger modal --> + <li><a href="#" data-toggle="modal" data-target="#exportModal_[% authority_type.authtypecode | html %][% loop.count | html %]" title="Export authority type (fields, subfields) to a spreadsheet file (.csv, .ods)"><i class="fa fa-upload"></i> Export</a></li> + <!-- Button to trigger modal --> + <li><a href="#" data-toggle="modal" data-target="#importModal_[% authority_type.authtypecode | html %][% loop.count | html %]" title="Import authority type (fields, subfields) from a spreadsheet file (.csv, .ods)"><i class="fa fa-download"></i> Import</a></li> + </ul> + </div> - <!-- Modal for export --> - <div class="modal" id="exportModal_[% authority_type.authtypecode | html %][% loop.count | html %]" tabindex="-1" role="dialog" aria-labelledby="exportLabelexportModal_[% authority_type.authtypecode | html %][% loop.count | html %]" aria-hidden="true"> - <div class="modal-dialog"> - <div class="modal-content"> - <div class="modal-header"> - <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button> - <h3 id="exportLabelexportModal_[% authority_type.authtypecode | html %][% loop.count | html %]">Export [% authority_type.authtypetext | html %] authority type</h3> - </div> - <form action="/cgi-bin/koha/admin/import_export_authtype.pl" name="form_[% authority_type.authtypecode | html %]" method="get" target="_blank" class="form_export"> - <div class="modal-body"> - <fieldset> - <input type="hidden" name="authtypecode" value="[% authority_type.authtypecode | html %]" /> - <p><label for="csv_type_export_[% authority_type.authtypecode | html %][% loop.count | html %]"><input type="radio" name="type_export_[% authority_type.authtypecode | html %]" value="csv" id="csv_type_export_[% authority_type.authtypecode | html %][% loop.count | html %]" checked="checked" /> Export to CSV spreadsheet</label></p> - <p><label for="ods_type_export_[% authority_type.authtypecode | html %][% loop.count | html %]"><input type="radio" name="type_export_[% authority_type.authtypecode | html %]" value="ods" id="ods_type_export_[% authority_type.authtypecode | html %][% loop.count | html %]" /> Export to OpenDocument spreadsheet format</label></p> - </fieldset> - </div> - <div class="modal-footer"> - <button type="submit" class="btn btn-default">Export</button> - <button class="btn btn-link" data-dismiss="modal" aria-hidden="true">Cancel</button> - </div> - </form> - </div> - </div> - </div> + <!-- Modal for export --> + <div class="modal" id="exportModal_[% authority_type.authtypecode | html %][% loop.count | html %]" tabindex="-1" role="dialog" aria-labelledby="exportLabelexportModal_[% authority_type.authtypecode | html %][% loop.count | html %]" aria-hidden="true"> + <div class="modal-dialog"> + <div class="modal-content"> + <div class="modal-header"> + <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button> + <h3 id="exportLabelexportModal_[% authority_type.authtypecode | html %][% loop.count | html %]">Export [% authority_type.authtypetext | html %] authority type</h3> + </div> + <form action="/cgi-bin/koha/admin/import_export_authtype.pl" name="form_[% authority_type.authtypecode | html %]" method="get" target="_blank" class="form_export"> + <div class="modal-body"> + <fieldset> + <input type="hidden" name="authtypecode" value="[% authority_type.authtypecode | html %]" /> + <p><label for="csv_type_export_[% authority_type.authtypecode | html %][% loop.count | html %]"><input type="radio" name="type_export_[% authority_type.authtypecode | html %]" value="csv" id="csv_type_export_[% authority_type.authtypecode | html %][% loop.count | html %]" checked="checked" /> Export to CSV spreadsheet</label></p> + <p><label for="ods_type_export_[% authority_type.authtypecode | html %][% loop.count | html %]"><input type="radio" name="type_export_[% authority_type.authtypecode | html %]" value="ods" id="ods_type_export_[% authority_type.authtypecode | html %][% loop.count | html %]" /> Export to OpenDocument spreadsheet format</label></p> + </fieldset> + </div> + <div class="modal-footer"> + <button type="submit" class="btn btn-default">Export</button> + <button class="btn btn-link" data-dismiss="modal" aria-hidden="true">Cancel</button> + </div> + </form> + </div> + </div> + </div> - <!-- Modal for import --> - <div class="modal" id="importModal_[% authority_type.authtypecode | html %][% loop.count | html %]" tabindex="-1" role="dialog" aria-labelledby="importLabelexportModal_[% authority_type.authtypecode | html %][% loop.count | html %]" aria-hidden="true"> - <div class="modal-dialog"> - <div class="modal-content"> - <div class="modal-header"> - <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button> - <h3 id="importLabelexportModal_[% authority_type.authtypecode | html %][% loop.count | html %]">Import [% authority_type.authtypecode | html %] authority type (fields and subfields) from a spreadsheet file (.csv, .ods)</h3> - </div> - <form action="/cgi-bin/koha/admin/import_export_authtype.pl" name="form_i_[% authority_type.authtypecode | html %]" id="form_i_[% authority_type.authtypecode | html %]" method="post" enctype="multipart/form-data" class="form_import"> - <div class="modal-body"> - <input type="hidden" name="authtypecode" value="[% authority_type.authtypecode | html %]" /> - <input type="hidden" name="action" value="import" /> - <p><label for="file_import_[% authority_type.authtypecode | html %]">Upload file:</label> <input type="file" name="file_import_[% authority_type.authtypecode | html %]" id="file_import_[% authority_type.authtypecode | html %]" class="input_import" /></p> - <div id="importing_[% authority_type.authtypecode | html %]" style="display:none" class="importing"><img src="[% interface | html %]/[% theme | html %]/img/loading-small.gif" alt="" /><span class="importing_msg"></span></div> - </div> - <div class="modal-footer"> - <button type="submit" class="btn btn-default">Import</button> - <button class="btn btn-link" data-dismiss="modal" aria-hidden="true">Close</button> - </div> - </form> - </div> - </div> - </div> + <!-- Modal for import --> + <div class="modal" id="importModal_[% authority_type.authtypecode | html %][% loop.count | html %]" tabindex="-1" role="dialog" aria-labelledby="importLabelexportModal_[% authority_type.authtypecode | html %][% loop.count | html %]" aria-hidden="true"> + <div class="modal-dialog"> + <div class="modal-content"> + <div class="modal-header"> + <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button> + <h3 id="importLabelexportModal_[% authority_type.authtypecode | html %][% loop.count | html %]">Import [% authority_type.authtypecode | html %] authority type (fields and subfields) from a spreadsheet file (.csv, .ods)</h3> + </div> + <form action="/cgi-bin/koha/admin/import_export_authtype.pl" name="form_i_[% authority_type.authtypecode | html %]" id="form_i_[% authority_type.authtypecode | html %]" method="post" enctype="multipart/form-data" class="form_import"> + <div class="modal-body"> + <input type="hidden" name="authtypecode" value="[% authority_type.authtypecode | html %]" /> + <input type="hidden" name="action" value="import" /> + <p><label for="file_import_[% authority_type.authtypecode | html %]">Upload file:</label> <input type="file" name="file_import_[% authority_type.authtypecode | html %]" id="file_import_[% authority_type.authtypecode | html %]" class="input_import" /></p> + <div id="importing_[% authority_type.authtypecode | html %]" style="display:none" class="importing"><img src="[% interface | html %]/[% theme | html %]/img/loading-small.gif" alt="" /><span class="importing_msg"></span></div> + </div> + <div class="modal-footer"> + <button type="submit" class="btn btn-default">Import</button> + <button class="btn btn-link" data-dismiss="modal" aria-hidden="true">Close</button> + </div> + </form> + </div> + </div> + </div> - </td> - </tr> - [% END %] - <tbody> - </table> + </td> + </tr> + [% END %] + <tbody> + </table> + </div> <!-- /.page-section --> [% END %] </main> diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/biblio_framework.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/biblio_framework.tt index 701f35a191..570d36336f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/biblio_framework.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/biblio_framework.tt @@ -162,7 +162,7 @@ MARC frameworks › Administration › Koha [% IF op == 'list' %] <h1>MARC frameworks</h1> - +<div class="page-section"> <table id="table_biblio_frameworks"> <thead> <tr> @@ -311,7 +311,7 @@ MARC frameworks › Administration › Koha [% END %] </table> - +</div> <!-- /.page-section --> [% END %] </main> diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/checkmarc.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/checkmarc.tt index e165aaeb2f..2ca6c01004 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/checkmarc.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/checkmarc.tt @@ -40,6 +40,8 @@ <main> <h1>MARC bibliographic framework test</h1> + +<div class="page-section"> <table> <tr> <th>Test</th> @@ -289,6 +291,7 @@ [% ELSE %] </table> <p><strong>Configuration OK, you don't have errors in your MARC parameters table</strong></p> + </div> <!-- /.page-section --> [% END %] </main> diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/classsources.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/classsources.tt index 474db75bc8..c4d3381568 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/classsources.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/classsources.tt @@ -344,6 +344,7 @@ Classification sources › Administration › Koha <a class="btn btn-default" id="newrule" href="[% script_name | url %]?op=add_split_rule"><i class="fa fa-plus"></i> New splitting rule</a> </div> <h1>Classification configuration</h1> +<div class="page-section"> <h2>Classification sources</h2> <table> <tr> @@ -368,7 +369,9 @@ Classification sources › Administration › Koha </tr> [% END %] </table> +</div> <!-- /.page-section --> +<div class="page-section"> <h2>Classification filing rules</h2> <table> <tr> @@ -389,7 +392,9 @@ Classification sources › Administration › Koha </tr> [% END %] </table> +</div> <!-- /.page-section --> +<div class="page-section"> <h2>Classification splitting rules</h2> <table> <tr> @@ -410,6 +415,7 @@ Classification sources › Administration › Koha </tr> [% END %] </table> +</div> <!-- /.page-section --> [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt index ce5a9a04e2..27846b3ea0 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt @@ -213,39 +213,40 @@ You searched for [% searchfield | html %]</span> [% END %] - <table id='currencies-table'> - <thead> - <tr> - <th>Currency</th> - <th>Rate</th> - <th>Symbol</th> - <th>ISO code</th> - <th>Last updated</th> - <th>Active</th> - <th>Archived</th> - <th class="NoSort noExport">Actions</th> - </tr> - </thead> - <tbody> - [% FOREACH currency IN currencies %] - <tr> - <td>[% currency.currency | html %]</td> - <td>[% currency.rate | html %]</td> - <td>[% currency.symbol | html %]</td> - <td>[% currency.isocode | html %]</td> - <td data-order="[% currency.timestamp | html %]">[% currency.timestamp | $KohaDates %]</td> - <td style="color:green;">[% IF currency.active %]✓[% END %]</td> - <td>[% IF currency.archived %]Yes[% END %]</td> - <td class="actions"> - <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/currency.pl?op=add_form&currency_code=[% currency.currency | html %]"><i class="fa fa-pencil"></i> Edit</a> - <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/currency.pl?op=delete_confirm&currency_code=[% currency.currency | html %]"><i class="fa fa-trash"></i> Delete</a> - </td> - </tr> - [% END %] - </tbody> - </table> + <div class="page-section"> + <table id='currencies-table'> + <thead> + <tr> + <th>Currency</th> + <th>Rate</th> + <th>Symbol</th> + <th>ISO code</th> + <th>Last updated</th> + <th>Active</th> + <th>Archived</th> + <th class="NoSort noExport">Actions</th> + </tr> + </thead> + <tbody> + [% FOREACH currency IN currencies %] + <tr> + <td>[% currency.currency | html %]</td> + <td>[% currency.rate | html %]</td> + <td>[% currency.symbol | html %]</td> + <td>[% currency.isocode | html %]</td> + <td data-order="[% currency.timestamp | html %]">[% currency.timestamp | $KohaDates %]</td> + <td style="color:green;">[% IF currency.active %]✓[% END %]</td> + <td>[% IF currency.archived %]Yes[% END %]</td> + <td class="actions"> + <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/currency.pl?op=add_form&currency_code=[% currency.currency | html %]"><i class="fa fa-pencil"></i> Edit</a> + <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/currency.pl?op=delete_confirm&currency_code=[% currency.currency | html %]"><i class="fa fa-trash"></i> Delete</a> + </td> + </tr> + [% END %] + </tbody> + </table> + </div> - <br /> <div class="hint"> <p> When importing MARC files via the staging tools, the tool will attempt to find and use the price of the currently active currency. diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/edi_accounts.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/edi_accounts.tt index a3110e380a..abb4b2836d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/edi_accounts.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/edi_accounts.tt @@ -304,7 +304,7 @@ EDI accounts › Administration › Koha [% IF display %] [% IF ( ediaccounts ) %] <h1>Vendor EDI accounts</h1> - +<div class="page-section"> <table> <tr> <th>ID</th> @@ -378,6 +378,7 @@ EDI accounts › Administration › Koha </tr> [% END %] </table> +</div> <!-- /.page-section --> [% ELSE %] <div class="dialog message"> There are no EDI accounts. diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/edi_ean_accounts.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/edi_ean_accounts.tt index 0c11fab672..b585530da1 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/edi_ean_accounts.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/edi_ean_accounts.tt @@ -163,6 +163,7 @@ Library EANs › Administration › Koha [% IF display %] <h1>Library EANs</h1> [% IF ( eans ) %] + <div class="page-section"> <table> <tr> <th>Library</th> @@ -194,6 +195,7 @@ Library EANs › Administration › Koha </tr> [% END %] </table> + </div> <!-- /.page-section --> [% ELSE %] <div class="dialog message"> There are no library EANs. diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/items_search_fields.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/items_search_fields.tt index 4b4353a2ba..f40f7e9a05 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/items_search_fields.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/items_search_fields.tt @@ -70,7 +70,7 @@ [% IF fields.size %] <div id="search_fields_list"> <h1>Item search fields</h1> - + <div class="page-section"> <table id="search_fields_table"> <thead> <tr> @@ -98,7 +98,7 @@ [% END %] </tbody> </table> - </div> + </div> <!-- /.page-section --> [% ELSE %] <h1>Item search fields</h1> <div class="dialog message"> diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/koha2marclinks.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/koha2marclinks.tt index cd69335640..ca545be15a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/koha2marclinks.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/koha2marclinks.tt @@ -41,6 +41,7 @@ <div class="dialog alert">Failed to add mapping for [% error_info | html %]</div> [% END %] +<div class="page-section"> <table id="kohafields"> <thead><tr> <th>Koha field</th> @@ -67,7 +68,7 @@ [% END %] </tbody> </table> - +</div> <!-- /.page-section --> <input id="remove_field" name="remove_field" type="hidden" value=""/> <input id="add_field" name="add_field" type="hidden" value=""/> diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc-overlay-rules.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc-overlay-rules.tt index 49e9441c88..781457643f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc-overlay-rules.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc-overlay-rules.tt @@ -75,6 +75,7 @@ </div> [% END %] + <div class="page-section"> <form action="/cgi-bin/koha/admin/marc-overlay-rules.pl" method="POST" id="marc-overlay-rules-form"> <table id="marc-overlay-rules"> <thead><tr> @@ -254,6 +255,7 @@ </tbody> </table> </form> + </div> <!-- /.page-section --> <form action="/cgi-bin/koha/admin/marc-overlay-rules.pl" method="post"> <input type="hidden" name="op" value="redo-matching" /> diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt index 141233e1a2..781511efd7 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt @@ -383,52 +383,54 @@ <p>This screen shows the subfields associated with the selected tag. You can edit subfields or add a new one by clicking on edit.</p> <p>The column 'Koha field' shows that the subfield is linked with a Koha field.</p> - <table id="table_marcsubfieldstructure"> - <thead> - <tr> - <th>Subfield</th> - <th>Text</th> - <th>Constraints</th> - <th class="NoSort noExport">Actions</th> - </tr> - </thead> - <tbody> - [% FOREACH loo IN loop %] + <div class="page-section"> + <table id="table_marcsubfieldstructure"> + <thead> <tr> - <td><a href="/cgi-bin/koha/admin/marc_subfields_structure.pl?op=add_form&tagfield=[% loo.tagfield | uri %]&frameworkcode=[% frameworkcode | uri %]#sub[% loo.tagsubfield | uri %]field">[% loo.tagsubfield | html %]</a></td> - <td> - [% IF loo.tab == -1 %] - <em>[% loo.liblibrarian | html_entity %]</em> - [% ELSE %] - [% loo.liblibrarian | html_entity %] - [% END %] - </td> - <td> - [% IF loo.tab == -1 %] - <em>subfield ignored</em> - [% ELSE %] - <span>Tab:</span>[% loo.tab | html %], - [% IF ( loo.kohafield ) %] | <span>Koha field:</span> [% loo.kohafield | html %], [% END %] - [% IF ( loo.repeatable ) %]<span>Repeatable</span>, [% ELSE %]<span>Not repeatable</span>,[% END %] - [% IF ( loo.mandatory ) %]<span>Mandatory</span>, [% ELSE %]<span>Not mandatory</span>,[% END %] - [% IF ( loo.important ) %]<span>Important</span>, [% ELSE %]<span>Not important</span>,[% END %] - [% IF ( loo.seealso ) %] | <span>See also:</span> [% loo.seealso | html %],[% END %] - [% IF ( loo.hidden ) %]<span>hidden</span>,[% END %] - [% IF ( loo.isurl ) %]<span>is a URL</span>,[% END %] - [% IF ( loo.authorised_value ) %] | <span>Auth value:</span>[% loo.authorised_value | html %],[% END %] - [% IF ( loo.authtypecode ) %] | <span>Authority:</span>[% loo.authtypecode | html %],[% END %] - [% IF ( loo.value_builder ) %] | <span>Plugin:</span>[% loo.value_builder | html %],[% END %] - [% IF ( loo.link ) %] | <span>Link:</span>[% loo.link | html %],[% END %] - [% END %] - </td> - <td class="actions"> - <a href="/cgi-bin/koha/admin/marc_subfields_structure.pl?op=add_form&tagfield=[% loo.tagfield | uri %]&tagsubfield=[% loo.tagsubfield | uri %]&frameworkcode=[% frameworkcode | uri %]#sub[% loo.tagsubfield | uri %]field" class="btn btn-default btn-xs"><i class="fa fa-pencil"></i> Edit</a> - <a href="/cgi-bin/koha/admin/marc_subfields_structure.pl?op=delete_confirm&tagfield=[% loo.tagfield | uri %]&tagsubfield=[% loo.tagsubfield | uri %]&frameworkcode=[% frameworkcode | uri %]" class="btn btn-default btn-xs"><i class="fa fa-trash"></i> Delete</a> - </td> + <th>Subfield</th> + <th>Text</th> + <th>Constraints</th> + <th class="NoSort noExport">Actions</th> </tr> - [% END %] - </tbody> - </table> <!-- /#table_marcsubfieldstructure --> + </thead> + <tbody> + [% FOREACH loo IN loop %] + <tr> + <td><a href="/cgi-bin/koha/admin/marc_subfields_structure.pl?op=add_form&tagfield=[% loo.tagfield | uri %]&frameworkcode=[% frameworkcode | uri %]#sub[% loo.tagsubfield | uri %]field">[% loo.tagsubfield | html %]</a></td> + <td> + [% IF loo.tab == -1 %] + <em>[% loo.liblibrarian | html_entity %]</em> + [% ELSE %] + [% loo.liblibrarian | html_entity %] + [% END %] + </td> + <td> + [% IF loo.tab == -1 %] + <em>subfield ignored</em> + [% ELSE %] + <span>Tab:</span>[% loo.tab | html %], + [% IF ( loo.kohafield ) %] | <span>Koha field:</span> [% loo.kohafield | html %], [% END %] + [% IF ( loo.repeatable ) %]<span>Repeatable</span>, [% ELSE %]<span>Not repeatable</span>,[% END %] + [% IF ( loo.mandatory ) %]<span>Mandatory</span>, [% ELSE %]<span>Not mandatory</span>,[% END %] + [% IF ( loo.important ) %]<span>Important</span>, [% ELSE %]<span>Not important</span>,[% END %] + [% IF ( loo.seealso ) %] | <span>See also:</span> [% loo.seealso | html %],[% END %] + [% IF ( loo.hidden ) %]<span>hidden</span>,[% END %] + [% IF ( loo.isurl ) %]<span>is a URL</span>,[% END %] + [% IF ( loo.authorised_value ) %] | <span>Auth value:</span>[% loo.authorised_value | html %],[% END %] + [% IF ( loo.authtypecode ) %] | <span>Authority:</span>[% loo.authtypecode | html %],[% END %] + [% IF ( loo.value_builder ) %] | <span>Plugin:</span>[% loo.value_builder | html %],[% END %] + [% IF ( loo.link ) %] | <span>Link:</span>[% loo.link | html %],[% END %] + [% END %] + </td> + <td class="actions"> + <a href="/cgi-bin/koha/admin/marc_subfields_structure.pl?op=add_form&tagfield=[% loo.tagfield | uri %]&tagsubfield=[% loo.tagsubfield | uri %]&frameworkcode=[% frameworkcode | uri %]#sub[% loo.tagsubfield | uri %]field" class="btn btn-default btn-xs"><i class="fa fa-pencil"></i> Edit</a> + <a href="/cgi-bin/koha/admin/marc_subfields_structure.pl?op=delete_confirm&tagfield=[% loo.tagfield | uri %]&tagsubfield=[% loo.tagsubfield | uri %]&frameworkcode=[% frameworkcode | uri %]" class="btn btn-default btn-xs"><i class="fa fa-trash"></i> Delete</a> + </td> + </tr> + [% END %] + </tbody> + </table> <!-- /#table_marcsubfieldstructure --> + </div><!-- /.page-section --> <form action="[% script_name | html %]" method="get"> <fieldset class="action"><input type="hidden" name="op" value="add_form" /> diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tt index e282707b07..35fa9b0c94 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tt @@ -260,6 +260,7 @@ MARC frameworks › Administration › Koha </fieldset> </form> +<div class="page-section"> <table id="table_marctagstructure"> <thead> <tr> @@ -311,6 +312,7 @@ MARC frameworks › Administration › Koha [% END %] </tbody> </table> + </div> <!-- /.page-section --> [% END %] </main> diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/matching-rules.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/matching-rules.tt index 3e9d47d5bf..f1b89ae874 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/matching-rules.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/matching-rules.tt @@ -459,25 +459,27 @@ <div class="dialog message">Deleted record matching rule "[% deleted_matching_rule | html %]"</div> [% END %] [% IF ( available_matching_rules ) %] - <table> - <tr> - <th>#</th> - <th>Code</th> - <th>Description</th> - <th class="noExport">Actions</th> - </tr> - [% FOREACH available_matching_rule IN available_matching_rules %] + <div class="page-section"> + <table> <tr> - <td>[% available_matching_rule.matcher_id | html %]</td> - <td>[% available_matching_rule.code | html %]</td> - <td>[% available_matching_rule.description | html %]</td> - <td class="actions"> - <a class="btn btn-default btn-xs" href="[% available_matching_rule.script_name | url %]?op=edit_matching_rule&matcher_id=[% available_matching_rule.matcher_id | uri %]"><i class="fa fa-pencil"></i> Edit</a> - <a class="btn btn-default btn-xs" href="[% available_matching_rule.script_name | url %]?op=delete_matching_rule&matcher_id=[% available_matching_rule.matcher_id | uri %]"><i class="fa fa-trash"></i> Delete</a> - </td> + <th>#</th> + <th>Code</th> + <th>Description</th> + <th class="noExport">Actions</th> </tr> - [% END %] - </table> + [% FOREACH available_matching_rule IN available_matching_rules %] + <tr> + <td>[% available_matching_rule.matcher_id | html %]</td> + <td>[% available_matching_rule.code | html %]</td> + <td>[% available_matching_rule.description | html %]</td> + <td class="actions"> + <a class="btn btn-default btn-xs" href="[% available_matching_rule.script_name | url %]?op=edit_matching_rule&matcher_id=[% available_matching_rule.matcher_id | uri %]"><i class="fa fa-pencil"></i> Edit</a> + <a class="btn btn-default btn-xs" href="[% available_matching_rule.script_name | url %]?op=delete_matching_rule&matcher_id=[% available_matching_rule.matcher_id | uri %]"><i class="fa fa-trash"></i> Delete</a> + </td> + </tr> + [% END %] + </table> + </div> <!-- /.page-section --> [% ELSE %] <p>There are no saved matching rules.</p> [% END # /IF ( available_matching_rules ) %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/oai_sets.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/oai_sets.tt index 2503134e37..2a2d429813 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/oai_sets.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/oai_sets.tt @@ -106,46 +106,48 @@ <h1>OAI sets</h1> [% IF sets_loop %] - <table> - <thead> - <tr> - <th>setSpec</th> - <th>setName</th> - <th>setDescriptions</th> - <th> </th> - </tr> - </thead> - <tbody> - [% FOREACH set IN sets_loop %] + <div class="page-section"> + <table> + <thead> <tr> - <td>[% set.spec | html %]</td> - <td>[% set.name | html %]</td> - <td> - [% IF set.descriptions %] - <ul> - [% FOREACH desc IN set.descriptions %] - <li>[% desc.description | html %]</li> - [% END %] - </ul> - [% ELSE %] - <em>No descriptions</em> - [% END %] - </td> - <td> - <div class="btn-group dropup"> - <a class="btn btn-default btn-xs dropdown-toggle" id="oaisetsactions[% set.id | html %]" role="button" data-toggle="dropdown" href="#"> - Actions <b class="caret"></b></a> - <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="oaisetsactions[% set.id | html %]"> - <li><a href="/cgi-bin/koha/admin/oai_sets.pl?op=mod&id=[% set.id | uri %]"><i class="fa fa-fw fa-pencil"></i> Edit</a></li> - <li><a class="delete_oai_set" href="/cgi-bin/koha/admin/oai_sets.pl?op=del&id=[% set.id | html %]"><i class="fa fa-fw fa-trash"></i> Delete</a></li> - <li><a href="/cgi-bin/koha/admin/oai_set_mappings.pl?id=[% set.id | uri %]"><i class="fa fa-fw fa-info"></i> Define mappings</a></li> - </ul> - </div> - </td> + <th>setSpec</th> + <th>setName</th> + <th>setDescriptions</th> + <th> </th> </tr> - [% END %] - </tbody> - </table> + </thead> + <tbody> + [% FOREACH set IN sets_loop %] + <tr> + <td>[% set.spec | html %]</td> + <td>[% set.name | html %]</td> + <td> + [% IF set.descriptions %] + <ul> + [% FOREACH desc IN set.descriptions %] + <li>[% desc.description | html %]</li> + [% END %] + </ul> + [% ELSE %] + <em>No descriptions</em> + [% END %] + </td> + <td> + <div class="btn-group dropup"> + <a class="btn btn-default btn-xs dropdown-toggle" id="oaisetsactions[% set.id | html %]" role="button" data-toggle="dropdown" href="#"> + Actions <b class="caret"></b></a> + <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="oaisetsactions[% set.id | html %]"> + <li><a href="/cgi-bin/koha/admin/oai_sets.pl?op=mod&id=[% set.id | uri %]"><i class="fa fa-fw fa-pencil"></i> Edit</a></li> + <li><a class="delete_oai_set" href="/cgi-bin/koha/admin/oai_sets.pl?op=del&id=[% set.id | html %]"><i class="fa fa-fw fa-trash"></i> Delete</a></li> + <li><a href="/cgi-bin/koha/admin/oai_set_mappings.pl?id=[% set.id | uri %]"><i class="fa fa-fw fa-info"></i> Define mappings</a></li> + </ul> + </div> + </td> + </tr> + [% END %] + </tbody> + </table> + </div> <!-- /.page-section --> [% ELSE %] <div class="dialog message"><p>There are no sets defined.</p></div> [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smtp_servers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smtp_servers.tt index e9278f2014..b9d75e7815 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smtp_servers.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smtp_servers.tt @@ -246,19 +246,21 @@ </div> [% IF servers_count > 0 %] - <table id="smtp_servers"> - <thead> - <tr> - <th>Name</th> - <th>Host</th> - <th>Port</th> - <th>Timeout (secs)</th> - <th>SSL</th> - <th>Authenticated</th> - <th data-class-name="actions noExport">Actions</th> - </tr> - </thead> - </table> + <div class="page-section"> + <table id="smtp_servers"> + <thead> + <tr> + <th>Name</th> + <th>Host</th> + <th>Port</th> + <th>Timeout (secs)</th> + <th>SSL</th> + <th>Authenticated</th> + <th data-class-name="actions noExport">Actions</th> + </tr> + </thead> + </table> + </div> <!-- /.page-section --> [% END %] [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/z3950servers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/z3950servers.tt index 0a15e518b3..f7f8ad1d6f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/z3950servers.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/z3950servers.tt @@ -216,6 +216,8 @@ [% ELSIF searchfield %] You searched for [% searchfield | html %] [% END %] + + <div class="page-section"> <table id="serverst"> <thead><tr><th>Target</th><th>Hostname/Port</th><th>Database</th><th>Userid</th><th>Password</th><th>Preselected</th><th>Rank</th><th>Syntax</th><th>Encoding</th><th>Timeout</th><th>Record type</th><th>Attributes</th><th class="noExport">Actions</th> @@ -248,6 +250,7 @@ [% END %] </tbody> </table> + </div> <!-- /.page-section --> [% END %] </main> -- 2.30.2