Sha256: 7d9bb8f3d400ba11a99b6fcd92016c3e360f0d108a465364adb07c03af5783be
Contents?: true
Size: 908 Bytes
Versions: 1
Compression:
Stored size: 908 Bytes
Contents
<:Body> <div class="{{ if errors }}has-error{{ elsif marked }}has-success{{ end }} has-feedback"> {{ if label }} <label class="control-label">{{ label }}</label> {{ end }} {{ options.each do |option| }} <div class="radio"> <label> {{ if selected?(option) }} <input type="radio" e-click="set(option)" name="{{ name }}" value="{{ option[:value] }}" checked/> {{ else }} <input type="radio" e-click="set(option)" name="{{ name }}" value="{{ option[:value] }}"/> {{ end }} {{ option[:label] }} </label> {{ if errors }} <span class="glyphicon glyphicon-remove"></span> <span class="control-label errors">{{ (errors || []).join(', ') }}</span> {{ elsif marked }} <span class="glyphicon glyphicon-ok"></span> {{ end }} </div> {{ end }} </div>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
volt-fields-0.2.0 | app/fields/views/radio/index.html |