Sha256: 98febad02647c889e5a1321f006b9593ec433fbe3f8381dacde3f40232b2dcdf
Contents?: true
Size: 1.44 KB
Versions: 28
Compression:
Stored size: 1.44 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: true, 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, date_field_time24_hr_value: @field.time_24hr, date_field_timezone_value: @field.timezone, } 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