-include-time-value="true"
data-<%= stimulus_controller %>-date-format-value="<%= I18n.t('date.formats.date_controller') %>"
data-<%= stimulus_controller %>-time-format-value="<%= I18n.t('time.formats.date_controller') %>"
data-<%= stimulus_controller %>-is-am-pm-value="<%= am_pm? %>"
data-<%= stimulus_controller %>-picker-locale-value="<%= I18n.t("daterangepicker").deep_transform_keys { |k| k.to_s.camelize(:lower) }.to_json %>"
data-<%= stimulus_controller %>-default-time-zones-value="<%= "[\"#{current_user.time_zone}\",\"#{current_user.current_team.time_zone}\"]" %>"
data-<%= stimulus_controller %>-current-time-zone-value="<%= current_time_zone %>"
>
<%= form.text_field method, options %>
<%= form.text_field method, data_options %>
<% unless options[:disabled] %>
<% end %>
<% if current_user.time_zone != current_user.current_team.time_zone %>
-target="timeZoneField" value="<%= current_time_zone %>">
-target="currentTimeZoneWrapper">
<%= link_to (current_user.time_zone || current_user.current_team.time_zone || "UTC"), '#', class: 'button-secondary p-0', data: {action: "#{stimulus_controller}#showTimeZoneButtons"} %>
-target="timeZoneButtons">
<%= link_to '', '#', hidden: true, class: 'time-zone-button button-alternative button-smaller selected-option-time-zone-button hidden', data: {action: "#{stimulus_controller}#setTimeZone", value: ''} %>
<%= link_to current_user.current_team.time_zone, '#', class: 'time-zone-button button-alternative button-smaller', data: {action: "#{stimulus_controller}#setTimeZone", value: team_tz, label: current_user.current_team.time_zone } %>
<%= link_to current_user.time_zone, '#', class: 'time-zone-button button button-smaller', data: {action: "#{stimulus_controller}#setTimeZone", value: user_tz, label: current_user.time_zone } %>
<%= link_to t('global.buttons.other'), '#', class: 'button-alternative button-smaller', data: {action: "#{stimulus_controller}#showTimeZoneSelectWrapper"} %>
<%= link_to t('global.buttons.cancel'), '#', class: 'button-secondary button-smaller', data: {action: "#{stimulus_controller}#resetTimeZoneUI"} %>
-target="timeZoneSelectWrapper">
<%= select_tag :time_zone,
options_for_select(ActiveSupport::TimeZone.all.map{|tz| [tz.name.to_s, tz.tzinfo.name.to_s]}, [ user_tz || team_tz ]),
class: 'form-control select2',
data: { "#{stimulus_controller}-target": "timeZoneSelect", action: "#{stimulus_controller}#selectTimeZoneChange"}
%>
<%= link_to t('global.buttons.cancel'), '#', class: 'button-secondary ml-1.5', data: {action: "#{stimulus_controller}#cancelSelect"} %>