<%= bootstrap_form_with model: project, local: true do |form| %>
  <%= form.text_field :name %>
  <%= form.select :predefined_client_name, options_for_select(options_for_predefined_client_name_select, selected_project_client_value(project)), {}, data: { toggle: "collapse-select", target_show_values_mapping: { "#other_client": [:other] }  }, class: "form-control custom-select" %>
  <div id="other_client" style="<%='display: none' if selected_project_client_value(project) != 'other'%>">
    <%= form.text_field :client_name, placeholder: true %>
    <%= form.form_group do %>
      <%= form.label t(".features_settings.label") %>
      <%= form.fields_for :features_settings do |settings_f| %>
        <% available_release_types.each do |feature_name| %>
          <%= settings_f.check_box feature_name, label: t(".features_settings.#{feature_name}"), checked: project.settings(:features).send(feature_name) %> 
        <% end %>
      <% end %>
    <% end %>
  </div>
  <%= form.text_area :description, placeholder: true, rows: 3 %>
  <div class="pt-3">
    <%= form.submit class: class_string("btn btn-block", ["btn-success", "btn-primary"] => project.new_record?), data: { disable_with: t("shared.disable_with") } %>
  </div>
<% end %>
