Sha256: feab6f5879611ab8f1ad5ac8fecde50ce0d329a324544b7973aa1bc2d448bd04
Contents?: true
Size: 1.27 KB
Versions: 4
Compression:
Stored size: 1.27 KB
Contents
<% # headmin/forms/date_range # # ==== Required parameters # * +form+ - Form object # * +start_attribute+ - Name of the start date attribute of the form model # * +end_attribute+ - Name of the end date attribute of the form model # # ==== Optional parameters # * +end_label+ - Label for the end attribute # * +start_label+ - Label for the start attribute # # ==== Extra parameters # Listed in 'headmin/forms/date' # Listed in 'headmin/forms/base' # # ==== Examples # Basic version # <%= render 'headmin/forms/date_range', form: form, start_attribute: :start_date, end_attribute: :end_date %#> # # With custom labels # <%= render 'headmin/forms/date_range', form: form, start_attribute: :start_date_2, start_label: :start_date, end_attribute: :end_date_2, end_label: :end_date %#> start_date_options = local_assigns.merge( attribute: local_assigns[:start_attribute], label: local_assigns[:start_label] ) end_date_options = local_assigns.merge( attribute: local_assigns[:end_attribute], label: local_assigns[:end_label] ) %> <div class="row"> <div class="col"> <%= render 'headmin/forms/date', start_date_options %> </div> <div class="col"> <%= render 'headmin/forms/date', end_date_options %> </div> </div>
Version data entries
4 entries across 4 versions & 1 rubygems