Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds in radio_vertical that displays radio buttons in a vertical list…
… next to the label
- Loading branch information
1 parent
524bf09
commit 7eca7a7
Showing
4 changed files
with
93 additions
and
2 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
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,26 @@ | ||
<div class="form-group" | ||
{% if visibility %} {{ visibility|safe }} {% endif %} | ||
> | ||
<label class="control-label {% ifequal style "horizontal" %}col-sm-3{% endifequal %}">{{ label }}</label> | ||
<div class="{% ifequal style "horizontal" %}col-sm-8{% endifequal %}" | ||
ng-class="{'has-error': {{ formname }}.$submitted && {{ formname }}[{{ element_name }}].$error.required}" | ||
> | ||
<div ng-repeat="item in {{ lookuplist }}" class="row" > | ||
<div class="col-md-12"> | ||
<label class="radio-inline"> | ||
<input {% if required %}required {% endif %}{% if change %} ng-change="{{ change }}" {% endif %}class="" type="radio" name="[[ {{ element_name }} ]]" value="[[ item ]]" ng-model="{{ model }}"> | ||
[[ item ]] | ||
</label> | ||
</div> | ||
</div> | ||
{% if required %} | ||
<div class="row" ng-show="{{ formname }}.$submitted && {{ formname }}[{{ element_name }}].$error.required"> | ||
<div class="col-md-12"> | ||
<span class="help-block" > | ||
{{ label }} is required | ||
</span> | ||
</div> | ||
</div> | ||
{% endif %} | ||
</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