Sha256: 1dad75a204b7e6a9afa709661f2b70a09258babdaa41b742fe9d41f7ddc70610

Contents?: true

Size: 1.5 KB

Versions: 183

Compression:

Stored size: 1.5 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_disable_mobile_value: @field.disable_mobile,
      date_field_time24_hr_value: @field.time_24hr,
      date_field_no_calendar_value: true,
      date_field_timezone_value: @field.timezone,
      date_field_relative_value: @field.relative,
      date_field_field_type_value: "time",
      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-3.0.0.pre19 app/components/avo/fields/time_field/edit_component.html.erb
avo-3.0.1.beta8 app/components/avo/fields/time_field/edit_component.html.erb
avo-3.0.1.beta9 app/components/avo/fields/time_field/edit_component.html.erb
avo-3.0.1.beta6 app/components/avo/fields/time_field/edit_component.html.erb
avo-3.0.1.beta7 app/components/avo/fields/time_field/edit_component.html.erb
avo-3.0.1.beta5 app/components/avo/fields/time_field/edit_component.html.erb
avo-3.0.1.beta2 app/components/avo/fields/time_field/edit_component.html.erb
avo-3.0.1.beta4 app/components/avo/fields/time_field/edit_component.html.erb
avo-3.0.1.beta3 app/components/avo/fields/time_field/edit_component.html.erb
avo-3.0.0.beta1 app/components/avo/fields/time_field/edit_component.html.erb
avo-3.0.1.beta1 app/components/avo/fields/time_field/edit_component.html.erb
avo-3.0.0.pre17 app/components/avo/fields/time_field/edit_component.html.erb
avo-3.0.0.pre18 app/components/avo/fields/time_field/edit_component.html.erb
avo-3.0.0.pre14 app/components/avo/fields/time_field/edit_component.html.erb
avo-3.0.0.pre16 app/components/avo/fields/time_field/edit_component.html.erb
avo-3.0.0.pre15 app/components/avo/fields/time_field/edit_component.html.erb
avo-3.0.0.pre13 app/components/avo/fields/time_field/edit_component.html.erb
avo-3.0.0.pre12 app/components/avo/fields/time_field/edit_component.html.erb
avo-3.0.0.pre10 app/components/avo/fields/time_field/edit_component.html.erb
avo-3.0.0.pre11 app/components/avo/fields/time_field/edit_component.html.erb