-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(search): Create "sort-by" template #290
* refactor former template _filter-querystring.html together with new include _sort-by-button.html into a wrapping template _filter-row.html, because both includes needed to be placed into the same row * rename inludes in calling page templates
- Loading branch information
1 parent
3000ad7
commit 3a946b7
Showing
5 changed files
with
51 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,19 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<div class="row"> | ||
<div class="hsg-width-one-whole"> | ||
<div class="hsg-search-inputs-horizontal"> | ||
<form class="filter-form" id="queryFilters" action="?"> | ||
<div class="hsg-search-input"> | ||
<input id="exactPhrase" type="checkbox" name="match" value="exact_phrase" /> | ||
<label for="exactPhrase" class="c-indicator">Exact Phrase</label> | ||
</div> | ||
<div class="hsg-search-input"> | ||
<input id="caseSensitive" type="checkbox" name="match" value="case_sensitive" /> | ||
<label for="caseSensitive" class="c-indicator">Case Sensitive</label> | ||
</div> | ||
<div class="hsg-search-input"> | ||
<input id="punctuationSensitive" type="checkbox" name="match" value="punctuation_sensitive" /> | ||
<label for="punctuationSensitive" class="c-indicator">Punctuation Sensitive</label> | ||
</div> | ||
</form> | ||
</div> | ||
<div class="hsg-width-two-thirds"> | ||
<div class="hsg-search-inputs-horizontal"> | ||
<form class="filter-form" id="queryFilters" action="?"> | ||
<div class="hsg-search-input"> | ||
<input id="exactPhrase" type="checkbox" name="match" value="exact_phrase" /> | ||
<label for="exactPhrase" class="c-indicator">Exact Phrase</label> | ||
</div> | ||
<div class="hsg-search-input"> | ||
<input id="caseSensitive" type="checkbox" name="match" value="case_sensitive" /> | ||
<label for="caseSensitive" class="c-indicator">Case Sensitive</label> | ||
</div> | ||
<div class="hsg-search-input"> | ||
<input id="punctuationSensitive" type="checkbox" name="match" value="punctuation_sensitive" /> | ||
<label for="punctuationSensitive" class="c-indicator">Punctuation Sensitive</label> | ||
</div> | ||
</form> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<div class="row"> | ||
<div data-template="templates:include" data-template-path="pages/search/_filter-querystring.html"/> | ||
<div data-template="templates:include" data-template-path="pages/search/_sort-by-button.html"/> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<div class="hsg-width-one-third"> | ||
<div class="pull-right"> | ||
<form class="sorting"> | ||
<div class="form-group"> | ||
<p class="form-control-static">Sort by:</p> | ||
</div> | ||
<div class="btn-group"> | ||
<button type="button" class="hsg-sort-button dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded=""> | ||
<span data-template="search:sort-by-value"/> | ||
<i class="glyphicon glyphicon-chevron-down"/> | ||
</button> | ||
<ul class="dropdown-menu dropdown-menu-right"> | ||
<li> | ||
<a href="#" name="sort-by" id="relevance" data-template="search:sort-by">Relevance</a> | ||
</li> | ||
<li> | ||
<a href="#" name="sort-by" id="date_asc" data-template="search:sort-by">Dates (oldest first)</a> | ||
</li> | ||
<li> | ||
<a href="#" name="sort-by" id="date_desc" data-template="search:sort-by">Dates (most recent first)</a> | ||
</li> | ||
</ul> | ||
</div> | ||
<input type="hidden" name="sorting" value="date_desc"/> | ||
</form> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters