Bugzilla – Attachment 155202 Details for
Bug 34707
Abstract intranet-tmpl/includes/*-search.inc
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 34707: New common/header-search-tabs.inc
Bug-34707-New-commonheader-search-tabsinc.patch (text/plain), 2.94 KB, created by
Pedro Amorim
on 2023-09-04 16:04:27 UTC
(
hide
)
Description:
Bug 34707: New common/header-search-tabs.inc
Filename:
MIME Type:
Creator:
Pedro Amorim
Created:
2023-09-04 16:04:27 UTC
Size:
2.94 KB
patch
obsolete
>From 58656ca6fd133bffd116d03399f1eeed7946cea4 Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@ptfs-europe.com> >Date: Mon, 4 Sep 2023 16:02:42 +0000 >Subject: [PATCH] Bug 34707: New common/header-search-tabs.inc > >Proof of concept of new abstract header-search-tabs.inc to be called everywhere its needed >--- > .../en/includes/common/header-search-tabs.inc | 31 +++++++++++++++++++ > 1 file changed, 31 insertions(+) > create mode 100644 koha-tmpl/intranet-tmpl/prog/en/includes/common/header-search-tabs.inc > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/common/header-search-tabs.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/common/header-search-tabs.inc >new file mode 100644 >index 0000000000..ae67c321e1 >--- /dev/null >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/common/header-search-tabs.inc >@@ -0,0 +1,31 @@ >+[% USE Koha %] >+<!-- header-search-tabs.inc --> >+<div id="header_search" role="tablist"> >+ <div class="tab-content"> >+ [% FOREACH header_search_tab IN header_search_tabs %] >+ [% IF ( header_search_tab.is_allowed ) %] >+ <div id="[% header_search_tab.id | html %]" role="tabpanel" class="tab-pane [% IF header_search_tab.is_active %]active[% END %]"> >+ <form id="[% header_search_tab.form_id | html %]" action="[% header_search_tab.form_action | html %]" method="[% header_search_tab.form_method | html %]"> >+ <div class="form-title"> >+ <label class="control-label"><span class="control-text">[% header_search_tab.label | html %]</span> <i class="fa fa-fw [% header_search_tab.icon | html %]" aria-hidden="true"></i></label> >+ </div> >+ <div class="form-content"> >+ [% FOREACH input IN header_search_tab.inputs %] >+ <input class="[% input.class | html %]" type="[% input.type | html %]" name="[% input.name | html %]" id="[% input.id | html %]" value="[% input.value | html %]" placeholder="[% input.placeholder | html %]" /> >+ [% END %] >+ </div> >+ <button type="submit"><i class="fa fa-arrow-right"></i></button> >+ </form> >+ </div> >+ [% END %] >+ [% END %] >+ </div> >+ <ul class="nav nav-tabs" role="tablist"> >+ [% FOREACH header_search_tab IN header_search_tabs %] >+ <li role="presentation" class="[% IF header_search_tab.is_active %]active[% END %]"> >+ <a title="[% header_search_tab.label | html %]" href="#[% header_search_tab.id | html %]" aria-controls="[% header_search_tab.id | html %]" role="tab" aria-expanded="true" data-toggle="tab" class="keep_text"><i class="fa fa-fw [% header_search_tab.icon | html %]" aria-hidden="true"></i> <span class="tab-title">[% header_search_tab.label | html %]</span></a> >+ </li> >+ [% END %] >+ </ul> >+</div> >+<!-- header-search-tabs.inc --> >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 34707
: 155202 |
155203