Skip to content

Commit

Permalink
feat(search): wrap component forms into section element #286 #292
Browse files Browse the repository at this point in the history
  • Loading branch information
plutonik-a committed Nov 24, 2017
1 parent 63040f6 commit 00fcd41
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 30 deletions.
28 changes: 15 additions & 13 deletions pages/search/_filter-administrations.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<form method="get" action="$app/search" class="filter-form main-form" id="administrationsFilter">
<fieldset class="filter-sidebar" data-template="search:load-administrations">
<legend class="sr-only">Select Administrations</legend>
<ul class="hsg-search-inputs-vertical">
<li data-template="templates:each" data-template-from="administrations" data-template-to="administration">
<input class="hsg-search-input" type="checkbox" name="administration" data-template="search:administration-input-attributes"/>
<label class="hsg-search-input-label" data-template="search:administration-label">
<span data-template="search:administration-label-string"/>
</label>
</li>
</ul>
</fieldset>
</form>
<section class="hsg-section">
<form method="get" action="$app/search" class="filter-form main-form" id="administrationsFilter">
<fieldset class="filter-sidebar" data-template="search:load-administrations">
<legend class="sr-only">Select Administrations</legend>
<ul class="hsg-search-inputs-vertical">
<li data-template="templates:each" data-template-from="administrations" data-template-to="administration">
<input class="hsg-search-input" type="checkbox" name="administration" data-template="search:administration-input-attributes"/>
<label class="hsg-search-input-label" data-template="search:administration-label">
<span data-template="search:administration-label-string"/>
</label>
</li>
</ul>
</fieldset>
</form>
</section>
36 changes: 19 additions & 17 deletions pages/search/_filter-sections.html
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<form method="get" action="$app/search" class="filter-form main-form" id="sectionFilter">
<fieldset data-template="search:load-sections">
<legend class="sr-only">Select sections</legend>
<ul class="hsg-search-inputs-vertical">
<li>
<input id="entire-site-input" class="hsg-search-input global" type="checkbox" name="within" value="entire_site" checked="checked"/>
<label id="entire-site-label" for="entire-site-input" class="hsg-search-input-label">Entire Office of The Historian Website</label>
</li>
<ul class="filter-subsections">
<li data-template="templates:each" data-template-from="sections" data-template-to="section">
<input class="hsg-search-input section" type="checkbox" name="within" data-template="search:section-input-attributes"/>
<label class="hsg-search-input-label" data-template="search:section-label">
<span data-template="search:section-label-string"/>
</label>
<section class="hsg-section">
<form method="get" action="$app/search" class="filter-form main-form" id="sectionFilter">
<fieldset data-template="search:load-sections">
<legend class="sr-only">Select sections</legend>
<ul class="hsg-search-inputs-vertical">
<li>
<input id="entire-site-input" class="hsg-search-input global" type="checkbox" name="within" value="entire_site" checked="checked"/>
<label id="entire-site-label" for="entire-site-input" class="hsg-search-input-label">Entire Office of The Historian Website</label>
</li>
<ul class="filter-subsections">
<li data-template="templates:each" data-template-from="sections" data-template-to="section">
<input class="hsg-search-input section" type="checkbox" name="within" data-template="search:section-input-attributes"/>
<label class="hsg-search-input-label" data-template="search:section-label">
<span data-template="search:section-label-string"/>
</label>
</li>
</ul>
</ul>
</ul>
</fieldset>
</form>
</fieldset>
</form>
</section>

0 comments on commit 00fcd41

Please sign in to comment.