Sha256: 8500f0afdf3b873ceeff98597bc99df4223b2a407298edc88194635041a558a0
Contents?: true
Size: 917 Bytes
Versions: 2
Compression:
Stored size: 917 Bytes
Contents
<%# name: headmin/fields/currency accepts block: no parameters: form: Form object attribute: Name of the attribute of the form model label: (bool) Label will not be displayed if value is false %> <% label = local_assigns.has_key?(:label) ? label : true %> <% required = local_assigns.has_key?(:required) ? required : false %> <div class="<%= ('mb-3' if label) %>"> <%= render 'headmin/forms/fields/label', form: form, attribute: attribute, required: required if label %> <div class="input-group"> <span class="input-group-text">€</span> <%= form.text_field( attribute, class: "form-control #{form_field_validation_class(form, attribute)}", required: required, 'aria-describedby': form_field_validation_id(form, attribute)) %> <%= render 'headmin/forms/fields/validation', form: form, attribute: attribute %> </div> </div>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
headmin-0.1.2 | app/views/headmin/forms/fields/_currency.html.erb |
headmin-0.1.1 | app/views/headmin/forms/fields/_currency.html.erb |