<%= print_flash_message %>

<%= I18n.t("admin.system.settings.options.new.title') %>

<%= chu_form_for(@option, url: url_for(controller: '/admin/system/settings/options', action: 'create')) do |f| %>
<%= f.label I18n.t("activerecord.attributes.system.settings.option.group_id'), class: "control-label span3" %>
<%= f.chosen_select :group_id, ::Admin::SystemHelper.get_settings_groups_for_select, 'data-placeholder' => I18n.t("admin.system.settings.options.labels.choose_group') %> <%= f.error_label :group_id %>
<%= f.label I18n.t("activerecord.attributes.system.settings.option.name'), class: "control-label span3" %>
<%= f.text_field :name %> <%= f.error_label :name %>
<%= f.label I18n.t("activerecord.attributes.system.settings.option.seo_tag'), class: "control-label span3" %>
<%= f.text_field :seo_tag %> <%= f.error_label :seo_tag %>
<%= f.label I18n.t("activerecord.attributes.system.settings.option.value_type_id'), class: "control-label span3" %>
<%= f.chosen_select :value_type_id, ::Admin::CommonHelper.get_data_types_for_select, 'data-placeholder' => I18n.t("admin.system.settings.options.labels.choose_data_type') %> <%= f.error_label :value_type_id %>
<%= f.label I18n.t("activerecord.attributes.system.settings.option.default_value'), class: "control-label span3" %>
<%= f.text_area :default_value %> <%= f.error_label :default_value %>
<%= f.label I18n.t("activerecord.attributes.system.settings.option.description'), class: "control-label span3" %>
<%= f.text_area :description %> <%= f.error_label :description %>
<% end %>
<%= link_to_paged t('admin.system.settings.options.buttons.to_list'), url_for(controller: '/admin/system/settings/options'), 'object-type' => ::System::Settings::Option %>