<commit_before><h1 class="row-fluid"><span class="icon template-details"></span>DMP Details</h1>
<hr/>
<h4><%= @requirements_template.name %></h4>
<div class="row-fluid">
  <div class="details span4">
    <p> Click on a section below to edit it at any time. </p>
    <p>
      <%= image_tag("checked.png", :alt => 'check box') %> = complete
    </p>
    <div class="tree-view border-box">
      <h5>Template Outline</h5>
      <hr/>
      <div>
        <%= render partial: 'shared/requirements_tree', locals: { requirements: @requirements } %>
      </div>
    </div>
    <%= button_to '<< Plan Overview', edit_plan_path(@plan),  method: 'get', :class => 'btn btn-green pull-right'  %>
  </div>
  <div class="tabbable span8">
    <ul class="nav nav-tabs">
      <li class="active"><a href="#tab1" data-toggle="tab">Instruction</a></li>
      <li><a href="#tab2" data-toggle="tab">Actionable Links</a></li>
      <li><a href="#tab3" data-toggle="tab">Suggested Response</a></li>
      <li><a href="#tab4" data-toggle="tab">Example Response</a></li>
    </ul>
    <div class="tab-content">

      <div class="tab-pane active" id="tab1">
        <%= render partial: 'guidance', locals: { requirement_id: params[:requirement_id] } %>
      </div>

      <div class="tab-pane" id="tab2">
        <%= render partial: 'actionable_url', locals: { requirement_id: params[:requirement_id] } %>
      </div>

      <div class="tab-pane " id="tab3">
        <%= render partial: 'suggested_response', locals: { requirement_id: params[:requirement_id] } %>
      </div>

      <div class="tab-pane" id="tab4">
        <%= render partial: 'example_response', locals: { requirement_id: params[:requirement_id] } %>
      </div>
      <hr style="height:1px; border:none; background-color:#000;"/>
      <fieldset>
        <strong> Your Response </strong>
        <% if @requirement.obligation == :mandatory %>
          <strong>(Mandatory)</strong>
        <% end %>
        <%= render partial: 'responses/form', locals: { requirement_id: params[:requirement_id], plan_id: @plan.id } %>
      </fieldset>
    </div>
  </div>
</div>

<script type="text/javascript">
  tab_jump();
  add_tab_to_pagination();
</script>
<script type="text/javascript">
  function fixed_size(id, pixels){
    document.getElementById(id).style.height = pixels + 'px';
    //$j('#'+id).css('height', pixels + 'px');
  }

  function full_size(id){
    document.getElementById(id).style.height = 'auto';
    //$j('#'+id).css('height', 'auto');
  }
</script><commit_msg>Added Plan Overview and Plan Preview butoon on details page<commit_after><h1 class="row-fluid"><span class="icon template-details"></span>DMP Details</h1>
<hr/>
<h4><%= @requirements_template.name %></h4>
<div class="row-fluid">
  <div class="details span4">
    <p> Click on a section below to edit it at any time. </p>
    <p>
      <%= image_tag("checked.png", :alt => 'check box') %> = complete
    </p>
    <div class="tree-view border-box">
      <h5>Template Outline</h5>
      <hr/>
      <div>
        <%= render partial: 'shared/requirements_tree', locals: { requirements: @requirements } %>
      </div>
    </div>
  </div>
  <div class="tabbable span8">
    <ul class="nav nav-tabs">
      <li class="active"><a href="#tab1" data-toggle="tab">Instruction</a></li>
      <li><a href="#tab2" data-toggle="tab">Actionable Links</a></li>
      <li><a href="#tab3" data-toggle="tab">Suggested Response</a></li>
      <li><a href="#tab4" data-toggle="tab">Example Response</a></li>
    </ul>
    <div class="tab-content">

      <div class="tab-pane active" id="tab1">
        <%= render partial: 'guidance', locals: { requirement_id: params[:requirement_id] } %>
      </div>

      <div class="tab-pane" id="tab2">
        <%= render partial: 'actionable_url', locals: { requirement_id: params[:requirement_id] } %>
      </div>

      <div class="tab-pane " id="tab3">
        <%= render partial: 'suggested_response', locals: { requirement_id: params[:requirement_id] } %>
      </div>

      <div class="tab-pane" id="tab4">
        <%= render partial: 'example_response', locals: { requirement_id: params[:requirement_id] } %>
      </div>
      <hr style="height:1px; border:none; background-color:#000;"/>
      <fieldset>
        <strong> Your Response </strong>
        <% if @requirement.obligation == :mandatory %>
          <strong>(Mandatory)</strong>
        <% end %>
        <%= render partial: 'responses/form', locals: { requirement_id: params[:requirement_id], plan_id: @plan.id } %>
      </fieldset>
    </div>
  </div>
  <hr/>
  <div>
    <%= button_to '<< Plan Overview', edit_plan_path(@plan),  method: 'get', :class => 'btn btn-green pull-left'  %>
    <%= button_to 'Plan Preview >>', preview_path(@plan),  method: 'get', :class => 'btn btn-green pull-right'  %>
  </div>
</div>
<script type="text/javascript">
  tab_jump();
  add_tab_to_pagination();
</script>
<script type="text/javascript">
  function fixed_size(id, pixels){
    document.getElementById(id).style.height = pixels + 'px';
    //$j('#'+id).css('height', pixels + 'px');
  }

  function full_size(id){
    document.getElementById(id).style.height = 'auto';
    //$j('#'+id).css('height', 'auto');
  }
</script>
{'fraction_non_alphanumeric': 0.20148968678380444, 'fraction_numerical': 0.007639419404125287, 'mean_word_length': 3.386097152428811, 'pattern_counts': {'":': 0, '<': 159, '<?xml version=': 0, '>': 162, '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': '4100336', 'n_tokens_mistral': 1821, 'n_tokens_neox': 1750, 'n_words': 371}