Sha256: 4b8e27fcb86da487ed6afe97013438f3e25f8768ff1ff9732582698390d033f5
Contents?: true
Size: 722 Bytes
Versions: 1
Compression:
Stored size: 722 Bytes
Contents
.input class=@bem_classes = @form.label @fieldname, @label, class: 'input__label' - case @type - when :text = @form.text_field @fieldname, @options.merge(class: 'input__input') - when :date = @form.text_field @fieldname, @options.merge(class: 'input__input datepicker') - when :color = @form.color_field @fieldname, @options - when :select = @form.select @fieldname, @collection, @options, @options.merge(class: 'input__input') - when :file = @form.file_field @fieldname, @options.merge(class: 'input__input') - when :text_area = @form.text_area @fieldname, @options.merge(class: 'input__input') - if @error_message .input__errors = @error_message
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
alveole-0.0.1 | lib/alveole/components/input_component/input_component.html.slim |