<commit_before><h1 class="row-fluid" id="jump"><span class="icon template-details"></span>DMP Template Details</h1>
<h2><%= @requirements_template.name %></h2>
<div class="row-fluid">
	<div class="details span4">
	  <div class="tree-view border-box" id="main_requirements_border">
      <div id="cover_dialog">
        <div>
          <%= image_tag("/assets/throbber.gif") %> Please wait a moment . . .
        </div>
      </div>
	  	<p><strong>Template Outline</strong></p>
	  	<div class="actions">
		    <%= link_to(content_tag(:span, '', :class => 'icon add-group') + 'Add Group', new_requirements_template_requirement_path(@requirements_template, node_type: 'group') + '#jump') %>
		    <%=  raw('&nbsp;') %>
		    <%= link_to(content_tag(:span, '', :class => 'icon add-requirement') + 'Add Requirement' + content_tag(:span, '', :title => 'Requirements are questions for the plan author that have a response. Use requirements to make sure the DMP has all the necessary information.', 'data-toggle' => "tooltip", :class => 'icon questionmark tip'), new_requirements_template_requirement_path(@requirements_template) + '#jump') %>
		  </div>
			<div id="drop_before_first">
	    	<hr/>
	    </div>
	    <div class="requirements-tree-view" id="main_requirements_tree">
	      <%= nested_requirements @requirements.arrange(order: :position) %>
	    </div>
	  </div>
	  <div class="template-status border-box">
	    <p><strong>DMP Template Status:</strong>
	     <span id="status_<%= @requirements_template.id %>">
	      <%= @requirements_template.active ? 'Active' : 'Inactive' %>
		    </span>
		  </p>
	  	<div>
		    <%= link_to activate_link_text(@requirements_template),
		      toggle_active_requirements_template_path(@requirements_template), remote: true, id: "activate_link_#{@requirements_template.id}", :class => 'btn' %>
	    </div>
	  </div>
	</div>
	<div class="tabbable span8">
		<ul class="nav nav-tabs">
      <% if params[:node_type] == 'group'%>
	  		<li class="active"><%= link_to 'Group', '#tab1', :data => {:toggle => 'tab'} %></li>
	  	<% else %>
	  		<li class="active"><%= link_to 'Requirements', '#tab1', :data => {:toggle => 'tab'} %></li>
	  	<% end %>
		</ul>
	 	<div class="tab-content">
	  	<div class="tab-pane active" id="tab1">
	  		<%= render 'form' %>
	  	</div>
		</div>
	</div>
</div>
<%= link_to '<< Template Overview', edit_requirements_template_path(@requirements_template), method: :get, :class => 'btn btn-green pull-left' %><commit_msg>DMP Template Details - replace Template Overview button with Back button , for consistency with other pages<commit_after><h1 class="row-fluid" id="jump"><span class="icon template-details"></span>DMP Template Details</h1>
<h2><%= @requirements_template.name %></h2>
<div class="row-fluid">
	<div class="details span4">
	  <div class="tree-view border-box" id="main_requirements_border">
      <div id="cover_dialog">
        <div>
          <%= image_tag("/assets/throbber.gif") %> Please wait a moment . . .
        </div>
      </div>
	  	<p><strong>Template Outline</strong></p>
	  	<div class="actions">
		    <%= link_to(content_tag(:span, '', :class => 'icon add-group') + 'Add Group', new_requirements_template_requirement_path(@requirements_template, node_type: 'group') + '#jump') %>
		    <%=  raw('&nbsp;') %>
		    <%= link_to(content_tag(:span, '', :class => 'icon add-requirement') + 'Add Requirement' + content_tag(:span, '', :title => 'Requirements are questions for the plan author that have a response. Use requirements to make sure the DMP has all the necessary information.', 'data-toggle' => "tooltip", :class => 'icon questionmark tip'), new_requirements_template_requirement_path(@requirements_template) + '#jump') %>
		  </div>
			<div id="drop_before_first">
	    	<hr/>
	    </div>
	    <div class="requirements-tree-view" id="main_requirements_tree">
	      <%= nested_requirements @requirements.arrange(order: :position) %>
	    </div>
	  </div>
	  <div class="template-status border-box">
	    <p><strong>DMP Template Status:</strong>
	     <span id="status_<%= @requirements_template.id %>">
	      <%= @requirements_template.active ? 'Active' : 'Inactive' %>
		    </span>
		  </p>
	  	<div>
		    <%= link_to activate_link_text(@requirements_template),
		      toggle_active_requirements_template_path(@requirements_template), remote: true, id: "activate_link_#{@requirements_template.id}", :class => 'btn' %>
	    </div>
	  </div>
	</div>
	<div class="tabbable span8">
		<ul class="nav nav-tabs">
      <% if params[:node_type] == 'group'%>
	  		<li class="active"><%= link_to 'Group', '#tab1', :data => {:toggle => 'tab'} %></li>
	  	<% else %>
	  		<li class="active"><%= link_to 'Requirements', '#tab1', :data => {:toggle => 'tab'} %></li>
	  	<% end %>
		</ul>
	 	<div class="tab-content">
	  	<div class="tab-pane active" id="tab1">
	  		<%= render 'form' %>
	  	</div>
		</div>
	</div>
</div>
<%= link_to '<< Back', :back, method: :get, :class => 'btn btn-green pull-left' %>
{'fraction_non_alphanumeric': 0.1937162297378427, 'fraction_numerical': 0.003602161296778067, 'mean_word_length': 3.993006993006993, 'pattern_counts': {'":': 0, '<': 137, '<?xml version=': 0, '>': 155, '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': '7541514', 'n_tokens_mistral': 1809, 'n_tokens_neox': 1647, 'n_words': 363}