<%= bootstrap_form_with model: model, local: true do |form| %> <%= field_set_tag content_tag(:span, t(".release_info.heading"), class: "h6 text-muted text-uppercase") do %>
<%= form.text_field :name, wrapper_class: "col-sm-6" %> <%= form.select :release_type, options_for_release_type_select(project, @release_type), { wrapper_class: "col-sm-6" }, data: { toggle: "collapse-select", target_show_values_mapping: { "#guardian_clause": %w(acquired_media appearance talent material misc medical), "#fee_field": %w(appearance talent location material acquired_media), "#exploitable_rights_fields": %w(appearance talent location material acquired_media misc), "#custom_fields": %w(medical misc appearance), "#amendment_clause": %w(appearance location), "#exhibit_fields": %w(appearance) } }, class: "form-control custom-select" %>
<%= form.radio_button :accessibility, :public_template, label: "Public", wrapper_class: "mr-3" %> <%= form.radio_button :accessibility, :private_template, label: "Private" %>
<%= form.text_field :fee, wrapper_class: "col-sm-6" %>
<% end %>
<%= field_set_tag content_tag(:span, t(".exploitable_rights.heading"), class: "h6 text-muted text-uppercase"), id: "exploitable_rights_fields" do %> <%= render "shared/exploitable_rights_fields", form: form %>
<% end %> <%= field_set_tag content_tag(:span, t(".legal.heading"), class: "h6 text-muted text-uppercase") do %> <%= form.form_group do %> <%= form.rich_text_area :body %> <% end %>
<%= form.form_group do %> <%= form.rich_text_area :guardian_clause %> <% end %>
<%= form.form_group do %> <%= form.rich_text_area :amendment_clause %> <% end %>
<%= form.form_group do %> <%= form.rich_text_area :exhibit_a_legal_text %> <%= t(".exhibits.help.option_field")%> <% end %> <%= form.form_group do %> <%= form.text_area :exhibit_a_question_text %> <%= t(".exhibits.help.option_field")%> <% end %> <%= form.form_group do %> <%= form.rich_text_area :exhibit_b_legal_text %> <%= t(".exhibits.help.option_field")%> <% end %> <%= form.form_group do %> <%= form.text_area :exhibit_b_question_text %> <%= t(".exhibits.help.option_field")%> <% end %>
<% end %> <%= field_set_tag content_tag(:span, t(".custom_fields.heading"), class: "h6 text-muted text-uppercase"), id: "custom_fields", style: "display: none;" do %>

<%= fa_icon("info-circle", text: t(".custom_fields.instructions")) %>

<%= render "shared/custom_fields", form: form %>
<% end %>
<%= link_to t("shared.cancel"), [project, :contract_templates], class: "col-3 text-reset" %>
<%= form.button "Preview", name: "commit", value: "preview", class: 'btn btn-info btn-block', formtarget: "_blank" %>
<%= form.submit class: "btn btn-success btn-block", data: { disable_with: false } %>
<% end %>