<% yield %> <% form ||= current_fields_form options ||= {} options[:id] ||= form.field_id(method) options[:class] = "form-control single-daterange w-full border-gray-300 dark:bg-darkPrimary-800 dark:border-darkPrimary-900 #{options[:class]}".strip options[:value] = form.object.send(method)&.in_time_zone(current_team.time_zone)&.strftime(t('global.formats.date_and_time')) options = options.merge({ data: {'fields--date-target': 'field' }}) other_options ||= {} %> <%= render 'shared/fields/field', form: form, method: method, options: options, other_options: other_options do %> <% content_for :field do %>
"> <%= form.text_field method, options %> <% unless options[:disabled] %> <% end %> <% if current_user.time_zone != current_user.current_team.time_zone %>
<%= form.hidden_field "#{method}_time_zone".to_sym, value: current_user.current_team.time_zone, data: {'fields--date-target': 'timeZoneField'} %>
<%= link_to current_user.current_team.time_zone, '#', class: 'button-secondary p-0', data: {action: 'fields--date#showTimeZoneButtons'} %>
<% end %>
<% end %> <% end %>