<commit_before><% @display_menu = "dmp_templates" %>
<h1 class="row-fluid"><span class="icon new-template"></span>Create New DMP Template</h1>
<div class="dmptool-page row-fluid">
	<div class="span6">
		<h2>Copy an Existing DMP Template</h2>

		<p>Select an existing requirements template below and edit the template information and details.</p>

    <% if @requirements_templates.length > 0 %>
		
      <%= form_tag copy_existing_requirements_template_path, method: :get do %>
        <table class="table table-striped">
          <thead>
            <tr>
              <th class="span1"></th>
              <th>Name</th>
              <th>Status</th>
              </tr>
            </thead>
          <tbody>
          <% @requirements_templates.each do |requirements_template| %>
            <tr>
              <td class="span1"><%= radio_button_tag :requirements_template, requirements_template.id, checked: false %></td>
              <td><%= requirements_template.name %></td>
              <td><%= requirements_template.active ? "active" : "inactive" %></td>
            </tr>
          <% end %>
          </tbody>
        </table>
        <div class="buttons pagination">
          <%= paginate @requirements_templates %>
        </div>
        <%= submit_tag "Copy Template", :class => "btn" %>
      <% end %>
    <% else %>
      <p>There are no existing templates to edit.</p>
    <% end %>
	</div>

	<div class="span6" id = "create_new_template_test">
		<h2>Create New DMP Template</h2>
		<p>Input basic and optional information of the new requirements template and edit the template details.</p>
		<%= button_to "Edit New Template", new_requirements_template_path, :method => :get, :class => "btn", :id => "create_new_template" %><commit_msg>small wording change.<commit_after><% @display_menu = "dmp_templates" %>
<h1 class="row-fluid"><span class="icon new-template"></span>Create New DMP Template</h1>
<div class="dmptool-page row-fluid">
	<div class="span6">
		<h2>Copy an Existing DMP Template</h2>

		<p>Select an existing requirements template below and edit the template information and details.</p>

    <% if @requirements_templates.length > 0 %>
		
      <%= form_tag copy_existing_requirements_template_path, method: :get do %>
        <table class="table table-striped">
          <thead>
            <tr>
              <th class="span1"></th>
              <th>Name</th>
              <th>Status</th>
              </tr>
            </thead>
          <tbody>
          <% @requirements_templates.each do |requirements_template| %>
            <tr>
              <td class="span1"><%= radio_button_tag :requirements_template, requirements_template.id, checked: false %></td>
              <td><%= requirements_template.name %></td>
              <td><%= requirements_template.active ? "active" : "inactive" %></td>
            </tr>
          <% end %>
          </tbody>
        </table>
        <div class="buttons pagination">
          <%= paginate @requirements_templates %>
        </div>
        <%= submit_tag "Copy Template", :class => "btn" %>
      <% end %>
    <% else %>
      <p>There are no existing templates to edit.</p>
    <% end %>
	</div>

	<div class="span6" id = "create_new_template_test">
		<h2>Create New DMP Template</h2>
		<p>Input basic and optional information of the new requirements template and edit the template details.</p>
		<%= button_to "Create New Template", new_requirements_template_path, :method => :get, :class => "btn", :id => "create_new_template" %>
{'fraction_non_alphanumeric': 0.15002836074872378, 'fraction_numerical': 0.006239364719228588, 'mean_word_length': 2.584349593495935, 'pattern_counts': {'":': 0, '<': 115, '<?xml version=': 0, '>': 125, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '979993', 'n_tokens_mistral': 1109, 'n_tokens_neox': 1030, 'n_words': 268}