Sha256: 0993505f9634a60e62849749ed53d9ce70d381ae7f3beee507933452a7f3a8ae

Contents?: true

Size: 1.44 KB

Versions: 9

Compression:

Stored size: 1.44 KB

Contents

<%= field_wrapper **field_wrapper_args 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,
      date_field_field_type_value: "date",
      date_field_picker_options_value: @field.picker_options,
  } do %>
    <%= @form.text_field @field.id,
      value: @field.edit_formatted_value,
      class: classes("w-full #{"hidden" unless params[:avo_show_hidden_inputs]}"),
      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)
    %>
    <%= 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)
    %>
  <% end %>
<% end %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
avo-2.21.1.pre.pr1476 app/components/avo/fields/date_field/edit_component.html.erb
avo-2.21.1.pre.issue1450 app/components/avo/fields/date_field/edit_component.html.erb
avo-2.21.1.pre.issue1444 app/components/avo/fields/date_field/edit_component.html.erb
avo-2.20.0 app/components/avo/fields/date_field/edit_component.html.erb
avo-2.19.0 app/components/avo/fields/date_field/edit_component.html.erb
avo-2.18.1 app/components/avo/fields/date_field/edit_component.html.erb
avo-2.18.1.pre.1.eagerloaddirs app/components/avo/fields/date_field/edit_component.html.erb
avo-2.18.0 app/components/avo/fields/date_field/edit_component.html.erb
avo-2.17.1.pre.5.stackedlayout app/components/avo/fields/date_field/edit_component.html.erb