Sha256: f00169bdef830e2884384b06f47f24a7d871fdb863355ebc8da5157faff0bcc8

Contents?: true

Size: 1.53 KB

Versions: 183

Compression:

Stored size: 1.53 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: 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,
      date_field_relative_value: @field.relative,
      date_field_field_type_value: "dateTime",
      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: disabled?,
      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: disabled?,
      placeholder: @field.placeholder,
      style: @field.get_html(:style, view: view, element: :input)
    %>
  <% end %>
<% end %>

Version data entries

183 entries across 183 versions & 1 rubygems

Version Path
avo-2.33.0 app/components/avo/fields/date_time_field/edit_component.html.erb
avo-2.32.6 app/components/avo/fields/date_time_field/edit_component.html.erb
avo-2.32.5 app/components/avo/fields/date_time_field/edit_component.html.erb
avo-2.32.4 app/components/avo/fields/date_time_field/edit_component.html.erb
avo-2.32.3 app/components/avo/fields/date_time_field/edit_component.html.erb
avo-2.32.2 app/components/avo/fields/date_time_field/edit_component.html.erb
avo-2.32.1 app/components/avo/fields/date_time_field/edit_component.html.erb
avo-2.32.0 app/components/avo/fields/date_time_field/edit_component.html.erb
avo-2.31.0 app/components/avo/fields/date_time_field/edit_component.html.erb
avo-2.30.2 app/components/avo/fields/date_time_field/edit_component.html.erb
avo-2.30.1 app/components/avo/fields/date_time_field/edit_component.html.erb
avo-2.30.1.pre4.pr1683 app/components/avo/fields/date_time_field/edit_component.html.erb
avo-2.30.1.pre3.pr1683 app/components/avo/fields/date_time_field/edit_component.html.erb
avo-2.30.1.pre2.pr1683 app/components/avo/fields/date_time_field/edit_component.html.erb
avo-2.30.1.pre1.pr1683 app/components/avo/fields/date_time_field/edit_component.html.erb
avo-2.30.0 app/components/avo/fields/date_time_field/edit_component.html.erb
avo-2.29.1 app/components/avo/fields/date_time_field/edit_component.html.erb
avo-2.29.1.pre.pr1652 app/components/avo/fields/date_time_field/edit_component.html.erb
avo-2.29.0 app/components/avo/fields/date_time_field/edit_component.html.erb
avo-2.28.3.pre.pr1646 app/components/avo/fields/date_time_field/edit_component.html.erb