Sha256: c0b7e15d2e66054be248a44e82b8d23208832ca7559933adda835d571ae2c8bf
Contents?: true
Size: 1.3 KB
Versions: 3
Compression:
Stored size: 1.3 KB
Contents
<:Body> <div e-="log_result" class="form-group {{ if errors }}has-error{{ elsif marked }}has-success{{ end }} has-feedback"> {{ if label }} <label class="control-label">{{ label }}</label> {{ end }} <select multiple="{{ attrs.multiple }}" value="{{ attrs.value }}" e-change="blur" class="chosen-select {{ unique_klass }} form-control"> {{ if attrs.value.nil? }} <option value="" selected> </option> {{ end }} {{ options.each do |option| }} {{ if selected(option[:value]) }} <option value="{{ option[:value] }}" selected> {{ option[:label] }} <!-- This is an ugly hack to get chosen to update with the selection --> {{ update_chosen }} </option> {{ else }} <option value="{{ option[:value] }}"> {{ option[:label] }} </option> {{ end }} {{ end }} </select> {{ if attrs.help_text }} <span class="help-block">{{ raw(attrs.help_text) }}</span> {{ end }} {{ if errors }} <span class="glyphicon glyphicon-remove form-control-feedback"></span> <span class="control-label errors">{{ (errors || []).join(', ') }}</span> {{ elsif marked }} <span class="glyphicon glyphicon-ok form-control-feedback"></span> {{ end }} </div>
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
volt-chosen-0.1.2 | app/chosen/views/main/index.html |
volt-chosen-0.1.1 | app/chosen/views/main/index.html |
volt-chosen-0.1.0 | app/chosen/views/main/index.html |