<% project_setting = UxToolkitProjectSetting.find_or_initialize_by(project: @project) %>

<%= form_tag project_ux_toolkit_project_settings_path(@project), method: :put do %>
  <div class="box tabular">
    <p>
      <strong><%= l(:label_ux_toolkit_project_new_issue_notice) %></strong>
    </p>

    <p>
      <%= label_tag 'ux_toolkit_project_setting_new_issue_notice_text',
                    l(:label_ux_toolkit_project_new_issue_notice_text) %>
      <%= text_area_tag 'ux_toolkit_project_setting[new_issue_notice_text]',
                        project_setting.new_issue_notice_text,
                        id: 'ux_toolkit_project_setting_new_issue_notice_text',
                        rows: 8,
                        cols: 80 %>
      <em class="info"><%= l(:text_ux_toolkit_project_new_issue_notice_help) %></em>
      <em class="info"><%= l(:text_ux_toolkit_notice_security_hint) %></em>
    </p>
  </div>

  <p>
    <%= submit_tag l(:button_save) %>
  </p>
<% end %>
