Koha/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities-home.tt
Martin Renvoize 4ad4677c70
Bug 6419: Add StaffAuthoritiesHome block to additional contents
This patch adds a new `StaffAuthoritiesHome` block to the HTML
Customisations options. This allows for the addition of a block of
content in a page-section at the bottom of the authorities home
page.

Signed-off-by: Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-10-18 15:41:29 -03:00

49 lines
1.4 KiB
Text

[% USE raw %]
[% PROCESS 'i18n.inc' %]
[% USE Koha %]
[% USE AdditionalContents %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>[% FILTER collapse %]
[% t("Authorities") | html %] &rsaquo;
[% t("Koha") | html %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
</head>
<body id="auth_authorities_home" class="auth">
[% WRAPPER 'header.inc' %]
[% INCLUDE 'authorities-search.inc' %]
[% END %]
[% WRAPPER 'sub-header.inc' %]
[% WRAPPER breadcrumbs %]
[% WRAPPER breadcrumb_item bc_active= 1 %]
<span>Authorities</span>
[% END %]
[% END %]
[% END %]
<div class="main container-fluid">
<div class="row">
<div class="col-md-8 col-md-offset-2">
[% INCLUDE 'authorities-toolbar.inc' %]
<h1>Authorities</h1>
<div id="merge_in_progress" class="page-section bg-info" style="display:none;"></div>
[%- SET StaffAuthoritiesHome = AdditionalContents.get( location => "StaffAuthoritiesHome", lang => lang, library => logged_in_user.branchcode ) -%]
[%- FOREACH block IN StaffAuthoritiesHome.content -%]
<div class="page-section">
[%- block.content | $raw -%]
</div>
[%- END -%]
</div>
</div>
[% MACRO jsinclude BLOCK %]
[% INCLUDE 'authorities_js.inc' %]
[% END %]
[% INCLUDE 'intranet-bottom.inc' %]