<commit_before>{{!
    Copyright (C) 2013 Google Inc., authors, and contributors <see AUTHORS file>
    Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
    Created By: <EMAIL>
    Maintained By: <EMAIL>
}}

{{!div class="modal-body"}}
<div class="hideable-holder"> 
{{#instance}}
<form action="javascript://">
  {{> /static/mustache/base_objects/form_restore.mustache}}

  <div class="row-fluid">
    <div class="span6">
      <label>
        Title
        <span class="required">*</span>
        <i class="grcicon-help-black" rel="tooltip" title="Enter Title"></i>
      </label>
      <input tabindex="1" id="section-title" class="input-block-level" placeholder="Enter Title" name="title" type="text" value="{{title}}" autofocus>
    </div>
    <div class="span6">
      {{#if_helpers '\
        ^if' instance.id '\
        and ^if' object_params.directive}}
        {{#using directive=instance.directive}}
        <label>
          Policy / Regulation / Standard
          <span class="required">*</span>
          <i class="grcicon-help-black" rel="tooltip" title="Policy / Regulation / Standard containing this Section"></i>
        </label>
        <input tabindex="2" class="input-block-level" name="directive.title" data-lookup="Policy,Regulation,Standard" data-template="/directives/autocomplete_result.mustache" placeholder="Choose Policy / Regulation / Standard" type="text" value="{{firstexist directive.title ''}}" />
        {{/using}}
      {{else}}
        &nbsp;
        <input id="directive.id" name="directive" type="hidden" model="Directive" value="{{instance.directive.id}}">
      {{/if_helpers}}
    </div>
  </div>

  <div class="row-fluid">
    <div class="span6 hidable">
      <label>
        Text of Section
        <i class="grcicon-help-black" rel="tooltip" title="Enter text of section"></i>
        <a href="javascript://" class="field-hide" tabindex="-1">hide</a>
      </label>
      <div class="wysiwyg-area">
        <textarea tabindex="3" id="section-description" class="span12 double wysihtml5" name="description" placeholder="Enter text of section">{{{description}}}</textarea>
      </div>
    </div>

    <div class="span6 hide-wrap hidable">      
      <div class="row-fluid inner-hide">
        <div class="span12 hidable">
          {{#using owner=instance.owners.0 model_singular=model.model_singular}}
          <label>
            Owner
            <i class="grcicon-help-black" rel="tooltip" title="This is the person in charge of this {{model_singular}}."></i>
            <a href="javascript://" class="field-hide" tabindex="-1">hide</a>
          </label>
          <input tabindex="4" class="input-block-level" name="owners.0.email" data-lookup="Person" data-params="Person:is_enabled=1" data-list="true" placeholder="Enter email address" type="text" value="{{firstexist owner.email ''}}" />
          {{/using}}
        </div>
      </div>
      <div class="row-fluid inner-hide">
        <div class="span12 hidable">
          {{#using contact=instance.contact}}
          <label>
            Contact
            <i class="grcicon-help-black" rel="tooltip" title="Point of contact for this object"></i>
            <a href="javascript://" class="field-hide" tabindex="-1">hide</a>
          </label>
          <input tabindex="5" class="input-block-level" name="contact.email" data-lookup="Person" data-params="Person:is_enabled=1" placeholder="Enter email address" type="text" value="{{firstexist contact.email ''}}" />
          {{/using}}
        </div>
      </div>
    </div>
  </div>
  
  <div class="row-fluid">
    <div class="span6 hidable">
      <label>
        Notes
        <i class="grcicon-help-black" rel="tooltip" title="Append simple text or html notes here."></i>
        <a href="javascript://" class="field-hide" tabindex="-1">hide</a>
      </label>
      <div class="wysiwyg-area">
        <textarea tabindex="6" id="notes" class="span12 double wysihtml5" name="notes" placeholder="Enter Notes">{{{notes}}}</textarea>
      </div>
    </div>
    <div class="span6 hidable">
      <label>
        Reference URL
        <i class="grcicon-help-black" rel="tooltip" title="Web links to other references."></i>
        <a href="javascript://" class="field-hide" tabindex="-1">hide</a>
      </label>
      <input tabindex="7" id="reference_url" class="input-block-level" placeholder="https://www.example.com/" name="reference_url" type="text" value="{{reference_url}}">
    </div>
  </div>

  
  <div>
    <div class="row-fluid">
      <div class="span6 hidable">
        <label>
          Code
          <i class="grcicon-help-black" rel="tooltip" title="The gGRC application will automatically provide codes for new objects. If you would like to override this feature you may manually enter a code of your choosing. You should have a specific reason for doing this."></i>
          <a href="javascript://" class="field-hide" tabindex="-1">hide</a>
        </label>
        <input tabindex="8" id="section-code" class="input-block-level" name="slug" placeholder="SECTION-XXX" type="text" value="{{slug}}">
      </div>
    </div>
  </div>
</form>
{{/instance}}
</div>
{{!/div}}<commit_msg>Add Section URL field to Section modal. Fix CORE-813.<commit_after>{{!
    Copyright (C) 2013 Google Inc., authors, and contributors <see AUTHORS file>
    Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
    Created By: <EMAIL>
    Maintained By: <EMAIL>
}}

{{!div class="modal-body"}}
<div class="hideable-holder"> 
{{#instance}}
<form action="javascript://">
  {{> /static/mustache/base_objects/form_restore.mustache}}

  <div class="row-fluid">
    <div class="span6">
      <label>
        Title
        <span class="required">*</span>
        <i class="grcicon-help-black" rel="tooltip" title="Enter Title"></i>
      </label>
      <input tabindex="1" id="section-title" class="input-block-level" placeholder="Enter Title" name="title" type="text" value="{{title}}" autofocus>
    </div>
    <div class="span6">
      {{#if_helpers '\
        ^if' instance.id '\
        and ^if' object_params.directive}}
        {{#using directive=instance.directive}}
        <label>
          Policy / Regulation / Standard
          <span class="required">*</span>
          <i class="grcicon-help-black" rel="tooltip" title="Policy / Regulation / Standard containing this Section"></i>
        </label>
        <input tabindex="2" class="input-block-level" name="directive.title" data-lookup="Policy,Regulation,Standard" data-template="/directives/autocomplete_result.mustache" placeholder="Choose Policy / Regulation / Standard" type="text" value="{{firstexist directive.title ''}}" />
        {{/using}}
      {{else}}
        &nbsp;
        <input id="directive.id" name="directive" type="hidden" model="Directive" value="{{instance.directive.id}}">
      {{/if_helpers}}
    </div>
  </div>

  <div class="row-fluid">
    <div class="span6 hidable">
      <label>
        Text of Section
        <i class="grcicon-help-black" rel="tooltip" title="Enter text of section"></i>
        <a href="javascript://" class="field-hide" tabindex="-1">hide</a>
      </label>
      <div class="wysiwyg-area">
        <textarea tabindex="3" id="section-description" class="span12 double wysihtml5" name="description" placeholder="Enter text of section">{{{description}}}</textarea>
      </div>
    </div>

    <div class="span6 hide-wrap hidable">      
      <div class="row-fluid inner-hide">
        <div class="span12 hidable">
          {{#using owner=instance.owners.0 model_singular=model.model_singular}}
          <label>
            Owner
            <i class="grcicon-help-black" rel="tooltip" title="This is the person in charge of this {{model_singular}}."></i>
            <a href="javascript://" class="field-hide" tabindex="-1">hide</a>
          </label>
          <input tabindex="4" class="input-block-level" name="owners.0.email" data-lookup="Person" data-params="Person:is_enabled=1" data-list="true" placeholder="Enter email address" type="text" value="{{firstexist owner.email ''}}" />
          {{/using}}
        </div>
      </div>
      <div class="row-fluid inner-hide">
        <div class="span12 hidable">
          {{#using contact=instance.contact}}
          <label>
            Contact
            <i class="grcicon-help-black" rel="tooltip" title="Point of contact for this object"></i>
            <a href="javascript://" class="field-hide" tabindex="-1">hide</a>
          </label>
          <input tabindex="5" class="input-block-level" name="contact.email" data-lookup="Person" data-params="Person:is_enabled=1" placeholder="Enter email address" type="text" value="{{firstexist contact.email ''}}" />
          {{/using}}
        </div>
      </div>
    </div>
  </div>
  
  <div class="row-fluid">
    <div class="span6 hidable">
      <label>
        Notes
        <i class="grcicon-help-black" rel="tooltip" title="Append simple text or HTML notes here."></i>
        <a href="javascript://" class="field-hide" tabindex="-1">hide</a>
      </label>
      <div class="wysiwyg-area">
        <textarea tabindex="6" id="notes" class="span12 double wysihtml5" name="notes" placeholder="Enter Notes">{{{notes}}}</textarea>
      </div>
    </div>
    <div class="span6 hide-wrap hidable">
      <div class="row-fluid inner-hide">
        <div data-id="url_hidden" class="span12 hidable">
          <label>
            Section URL
            <i class="grcicon-help-black" rel="tooltip" title="Web link to the Sites page / {{model.model_singular}} documentation."></i>
            <a data-id="hide_url_lk" href="javascript://" class="field-hide" tabindex="-1">hide</a>
          </label>
          <input data-id="url_txtbx" tabindex="6" class="input-block-level" name="url" placeholder="http://www.domain.com/" type="text" value="{{url}}">
        </div>
      </div>
      <div class="row-fluid inner-hide">
        <div data-id="reference_url_hidden" class="span12 hidable">
          <label>
            Reference URL
            <i class="grcicon-help-black" rel="tooltip" title="Web links to other references."></i>
            <a data-id="hide_reference_url_lk" href="javascript://" class="field-hide" tabindex="-1">hide</a>
          </label>
          <input tabindex="7" id="reference_url" class="input-block-level" placeholder="https://www.example.com/" name="reference_url" type="text" value="{{reference_url}}">
        </div>
      </div>
    </div>
  </div>

  
  <div>
    <div class="row-fluid">
      <div class="span6 hidable">
        <label>
          Code
          <i class="grcicon-help-black" rel="tooltip" title="The gGRC application will automatically provide codes for new objects. If you would like to override this feature you may manually enter a code of your choosing. You should have a specific reason for doing this."></i>
          <a href="javascript://" class="field-hide" tabindex="-1">hide</a>
        </label>
        <input tabindex="8" id="section-code" class="input-block-level" name="slug" placeholder="SECTION-XXX" type="text" value="{{slug}}">
      </div>
    </div>
  </div>
</form>
{{/instance}}
</div>
{{!/div}}
{'fraction_non_alphanumeric': 0.17731572371943602, 'fraction_numerical': 0.008120649651972157, 'mean_word_length': 2.9939415538132574, 'pattern_counts': {'":': 0, '<': 224, '<?xml version=': 0, '>': 226, 'https://': 2, 'lorem ipsum': 0, 'www.': 5, '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': '977267', 'n_tokens_mistral': 3465, 'n_tokens_neox': 3391, 'n_words': 783}