Simple filters with radio buttons added

pull/6984/head
Inga Mai 6 years ago
parent 950b8d6636
commit 5d7b5969ec
  1. 57
      app/assets/stylesheets/content/_simple_filters.lsg

@ -4,6 +4,7 @@ Simple filters are forms that serve the purpose of limiting the number of entrie
By default, simple filters can have multiple fields per row (as many as the given space allows).
## Simple filters: Standard style
```
@full-width
@ -45,3 +46,59 @@ By default, simple filters can have multiple fields per row (as many as the give
</ul>
</fieldset>
```
## Simple filters: With radio buttons
```
@full-width
<fieldset class="simple-filters--container">
<a title="Close filter" class="simple-filters--close icon-context icon-close"></a>
<legend>Simple Filters</legend>
<ul class="simple-filters--filters">
<li class="simple-filters--filter -with-radio-buttons">
<span class="form--radio-button-container">
<input type="radio" name="period_type" class="form--radio-button">
</span>
<label class="simple-filters--filter-name form--label" title="From" for="from">
This is a simple filter with radio button and label
</label>
</li>
<li class="simple-filters--filter -with-radio-buttons">
<span class="form--radio-button-container">
<input type="radio" name="period_type" class="form--radio-button">
</span>
<label class="simple-filters--filter-name form--label" title="From" for="from">From</label>
<div class="simple-filters--filter-value">
<span class="form--text-field-container">
<input type="text" name="from" id="from" class="-augmented-datepicker form--text-field">
</span>
</div>
<label class="simple-filters--filter-name form--label" title="To" for="to">To</label>
<div class="simple-filters--filter-value">
<span class="form--text-field-container">
<input type="text" name="to" class="-augmented-datepicker form--text-field">
</span>
</div>
</li>
<li class="simple-filters--filter -with-radio-buttons">
<span class="form--radio-button-container">
<input type="radio" name="period_type" id="period_type_list" value="1" class="form--radio-button" checked="checked">
</span>
<div class="simple-filters--filter-value">
<span class="form--select-container">
<select name="period" id="period" class="-narrow form--select">
<option value="all">all time</option>
<option value="today">today</option>
<option value="yesterday">yesterday</option>
</select>
</span>
</div>
</li>
<li class="simple-filters--controls">
<a class="button -highlight -small" href="#">Apply</a>
<a class="button -small -with-icon icon-undo" href="#">Clear</a>
</li>
</ul>
</fieldset>
```

Loading…
Cancel
Save