Sha256: 195e67da6964a5c53a0c7376f865e841070ab337afc025b478358c1ec225daaf
Contents?: true
Size: 652 Bytes
Versions: 5
Compression:
Stored size: 652 Bytes
Contents
<%# # Money Form Partial This partial renders a masked input element. It keeps the (unmasked) value in sync with a sibling hidden field that gets submitted with the form. ## Local variables: - `f`: A Rails form generator, used to help create the appropriate input fields. - `field`: An instance of Administrate::Field::Money. %> <div class="field-unit__label"> <%= f.label field.attribute %> </div> <div class="field-unit__field"> <%= text_field_tag field.attribute, field.data, class: 'maskmoney', data: { prefix: field.symbol, thousands: field.delimiter, decimal: field.separator } %> <%= f.hidden_field field.attribute %> </div>
Version data entries
5 entries across 5 versions & 1 rubygems