Sha256: 9e49d01ac2186395dba8917cb2db5c1025912679afe1b1b7ec222d7d03fe2d75
Contents?: true
Size: 1.38 KB
Versions: 28
Compression:
Stored size: 1.38 KB
Contents
<%= edit_field_wrapper field: @field, index: @index, form: @form, resource: @resource, displayed_in_modal: @displayed_in_modal do %> <%= content_tag :div, data: { controller: "date-field", date_field_view_value: @view, date_field_enable_time_value: false, date_field_format_value: @field.format, date_field_picker_format_value: @field.picker_format, date_field_first_day_of_week_value: @field.first_day_of_week, date_field_disable_mobile_value: @field.disable_mobile, } do %> <%= datetime_field "fake_#{@field.id}", "fake", value: @field.edit_formatted_value, class: classes("w-full"), data: { 'date-field-target': 'fakeInput', placeholder: @field.placeholder, **@field.get_html(:data, view: view, element: :input) }, disabled: @field.is_readonly?, placeholder: @field.placeholder, style: @field.get_html(:style, view: view, element: :input) %> <%= @form.text_field @field.id, value: @field.edit_formatted_value, class: classes("w-full hidden"), data: { 'date-field-target': 'input', placeholder: @field.placeholder, **@field.get_html(:data, view: view, element: :input) }, disabled: @field.is_readonly?, placeholder: @field.placeholder, style: @field.get_html(:style, view: view, element: :input) %> <% end %> <% end %>
Version data entries
28 entries across 28 versions & 1 rubygems