Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
WCMS
uw_wcms_gesso
Commits
8b8a824c
Commit
8b8a824c
authored
Sep 09, 2021
by
Eric Bremner
Committed by
Kevin Paxman
Oct 07, 2021
Browse files
ISTWCMS-5032: adding pattern-lab specific code for catalog search
parent
5efea35a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
source/_patterns/04-components/catalog-search/catalog-search.twig
...patterns/04-components/catalog-search/catalog-search.twig
+18
-1
No files found.
source/_patterns/04-components/catalog-search/catalog-search.twig
View file @
8b8a824c
<div
class=
"uw-catalog-search"
>
{{
catalog_search
}}
{%
if
pattern_lab
%}
<div
class=
"uw-catalog-search"
>
<form
class=
"catalog-search-all-form"
data-drupal-selector=
"catalog-search-all-form"
action=
"/catalogs"
method=
"post"
id=
"catalog-search-all-form"
accept-charset=
"UTF-8"
data-drupal-form-fields=
"edit-search-input,edit-submit"
>
<div
class=
"js-form-item form-item js-form-type-textfield form-type-textfield js-form-item-search-input form-item-search-input form-no-label"
>
<input
data-drupal-selector=
"edit-search-input"
type=
"text"
id=
"edit-search-input"
name=
"search_input"
value=
""
size=
"60"
maxlength=
"128"
placeholder=
"Search within all catalogs"
class=
"form-text required"
required=
"required"
aria-required=
"true"
>
</div>
<div
class=
"catalog-search-submit-wrapper"
>
<input
class=
"catalog-search-submit button js-form-submit form-submit"
data-drupal-selector=
"edit-submit"
type=
"submit"
id=
"edit-submit"
name=
"op"
value=
""
>
</div>
<input
autocomplete=
"off"
data-drupal-selector=
"form-sxccibplaegc-73-lec694bsvanum6b-j-wflacshoi"
type=
"hidden"
name=
"form_build_id"
value=
"form-sxCCiBplaegC_73_LEC694bSvAnuM6B-j-wFlACShOI"
>
<input
data-drupal-selector=
"edit-catalog-search-all-form-form-token"
type=
"hidden"
name=
"form_token"
value=
"ZwUmrQqVQLNwYel4ZKfXoIqHlDdO3R2L2wIyZNBPVPM"
>
<input
data-drupal-selector=
"edit-catalog-search-all-form"
type=
"hidden"
name=
"form_id"
value=
"catalog_search_all_form"
>
</form>
</div>
{%
else
%}
{{
catalog_search
}}
{%
endif
%}
</div>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment