<commit_before><h2>BagIt Profile</h2>

<ul class='text-danger'>
{{#each errors as |err| }}
  <li>{{ err }}</li>
{{/each }}
</ul>

<form method="post" action="#" id="{{ id }}">

<nav>
  <div class="nav nav-tabs" id="nav-tab" role="tablist">
    <a class="nav-item nav-link active" id="navAboutTab" data-toggle="tab" href="#profileAbout" role="tab" aria-controls="profileAbout" aria-selected="true">About</a>
    <a class="nav-item nav-link" id="navInfoTab" data-toggle="tab" href="#profileInfo" role="tab" aria-controls="profileInfo" aria-selected="false">Info</a>
    <a class="nav-item nav-link" id="navGeneralTab" data-toggle="tab" href="#profileGeneral" role="tab" aria-controls="profileGeneral" aria-selected="false">General</a>
    <a class="nav-item nav-link" id="navManifestsTab" data-toggle="tab" href="#profileManifests" role="tab" aria-controls="profileManifests" aria-selected="false">Manifests</a>
    <a class="nav-item nav-link" id="navSerializationTab" data-toggle="tab" href="#profileSerialization" role="tab" aria-controls="profileSerialization" aria-selected="false">Serialization</a>
    <a class="nav-item nav-link" id="navTagsTab" data-toggle="tab" href="#profileTags" role="tab" aria-controls="profileTags" aria-selected="false">Tags</a>
  </div>
</nav>


<div class="tab-content mt-4" id="nav-tabContent">
  <div class="tab-pane fade show active" role="tabpanel" id="profileAbout" aria-labelledby="navAboutTab">
    {{> inputText field = form.fields.name }}
    {{> inputText field = form.fields.description }}
  </div>
  <div class="tab-pane fade" role="tabpanel" id="profileInfo" aria-labelledby="navInfoTab">
    {{> inputText field = form.fields.bagItProfileInfo.bagItProfileIdentifier }}
    {{> inputText field = form.fields.bagItProfileInfo.contactEmail }}
    {{> inputText field = form.fields.bagItProfileInfo.contactName }}
    {{> inputText field = form.fields.bagItProfileInfo.externalDescription }}
    {{> inputText field = form.fields.bagItProfileInfo.sourceOrganization }}
    {{> inputText field = form.fields.bagItProfileInfo.version }}
  </div>
  <div class="tab-pane fade" role="tabpanel" id="profileGeneral" aria-labelledby="navGeneralTab">
    {{> inputSelect field = form.fields.acceptBagItVersion }}
    {{> inputSelect field = form.fields.allowFetchTxt }}
    {{> inputSelect field = form.fields.allowMiscTopLevelFiles }}
    {{> inputSelect field = form.fields.allowMiscDirectories }}
  </div>
  <div class="tab-pane fade" role="tabpanel" id="profileManifests" aria-labelledby="navManifestsTab">
    {{> inputSelect field = form.fields.manifestsRequired }}
    {{> inputSelect field = form.fields.tagManifestsRequired }}
  </div>
  <div class="tab-pane fade" role="tabpanel" id="profileSerialization" aria-labelledby="navSerializationTab">
    {{> inputSelect field = form.fields.serialization }}
    {{> inputSelect field = form.fields.acceptSerialization }}
    {{> inputSelect field = form.fields.tarDirMustMatchName }}
  </div>
  <div class="tab-pane fade" role="tabpanel" id="profileTags" aria-labelledby="navTagsTab">
    {{> profileTags }}
  </div>
</div>



<!--
  <div class="card mb-4">
    <div class="card-header">Serialization</div>
    <div class="card-body">

    {{> inputSelect field = form.fields.serialization }}

    {{> inputSelect field = form.fields.acceptSerialization }}

    {{> inputSelect field = form.fields.tarDirMustMatchName }}

    </div>
  </div>

-->




  {{> inputHidden field = form.fields.id }}
  {{> inputHidden field = form.fields.userCanDelete }}
  {{> inputHidden field = form.fields.baseProfileId }}


<div class="row">
  <div class="col-md-12">
    <div class="panel panel-default">
      <div class="panel-body">
        <div class="pull-right">
          <a class="btn btn-primary btn-xs" id="btnNewTagFile" role="button">Add Tag File</a>
        </div>
      </div>
    </div>
  </div>
</div>


  {{> formButtons form = form }}

</form>
<commit_msg>Using tabs in BagItProfile form<commit_after><h2>BagIt Profile</h2>

<ul class='text-danger'>
{{#each errors as |err| }}
  <li>{{ err }}</li>
{{/each }}
</ul>

<form method="post" action="#" id="{{ id }}">

<nav>
  <div class="nav nav-tabs" id="nav-tab" role="tablist">
    <a class="nav-item nav-link active" id="navAboutTab" data-toggle="tab" href="#profileAbout" role="tab" aria-controls="profileAbout" aria-selected="true">About</a>
    <a class="nav-item nav-link" id="navInfoTab" data-toggle="tab" href="#profileInfo" role="tab" aria-controls="profileInfo" aria-selected="false">Info</a>
    <a class="nav-item nav-link" id="navGeneralTab" data-toggle="tab" href="#profileGeneral" role="tab" aria-controls="profileGeneral" aria-selected="false">General</a>
    <a class="nav-item nav-link" id="navManifestsTab" data-toggle="tab" href="#profileManifests" role="tab" aria-controls="profileManifests" aria-selected="false">Manifests</a>
    <a class="nav-item nav-link" id="navSerializationTab" data-toggle="tab" href="#profileSerialization" role="tab" aria-controls="profileSerialization" aria-selected="false">Serialization</a>

    <a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">Tag Files</a>
    <div class="dropdown-menu">
      <a class="dropdown-item" id="navTags-bagit.txt" data-toggle="tab" href="#profileTags-bagit.txt" role="tab" aria-controls="profileTags-bagit.txt" aria-selected="false">bagit.txt</a>
      <a class="dropdown-item" id="navTags-bag-info.txt" data-toggle="tab" href="#profileTags-bag-info.txt" role="tab" aria-controls="profileTags-bag-info.txt" aria-selected="false">bag-info.txt</a>
      <div class="dropdown-divider"></div>
      <a class="dropdown-item" href="#">Add New Tag File</a>
    </div>

  </div>
</nav>


<div class="tab-content mt-4" id="nav-tabContent">
  <div class="tab-pane fade show active" role="tabpanel" id="profileAbout" aria-labelledby="navAboutTab">
    {{> inputText field = form.fields.name }}
    {{> inputText field = form.fields.description }}
  </div>
  <div class="tab-pane fade" role="tabpanel" id="profileInfo" aria-labelledby="navInfoTab">
    {{> inputText field = form.fields.bagItProfileInfo.bagItProfileIdentifier }}
    {{> inputText field = form.fields.bagItProfileInfo.contactEmail }}
    {{> inputText field = form.fields.bagItProfileInfo.contactName }}
    {{> inputText field = form.fields.bagItProfileInfo.externalDescription }}
    {{> inputText field = form.fields.bagItProfileInfo.sourceOrganization }}
    {{> inputText field = form.fields.bagItProfileInfo.version }}
  </div>
  <div class="tab-pane fade" role="tabpanel" id="profileGeneral" aria-labelledby="navGeneralTab">
    {{> inputSelect field = form.fields.acceptBagItVersion }}
    {{> inputSelect field = form.fields.allowFetchTxt }}
    {{> inputSelect field = form.fields.allowMiscTopLevelFiles }}
    {{> inputSelect field = form.fields.allowMiscDirectories }}
  </div>
  <div class="tab-pane fade" role="tabpanel" id="profileManifests" aria-labelledby="navManifestsTab">
    {{> inputSelect field = form.fields.manifestsRequired }}
    {{> inputSelect field = form.fields.tagManifestsRequired }}
  </div>
  <div class="tab-pane fade" role="tabpanel" id="profileSerialization" aria-labelledby="navSerializationTab">
    {{> inputSelect field = form.fields.serialization }}
    {{> inputSelect field = form.fields.acceptSerialization }}
    {{> inputSelect field = form.fields.tarDirMustMatchName }}
  </div>
  <div class="tab-pane fade" role="tabpanel" id="profileTags-bagit.txt" aria-labelledby="navTagsTab">
    bagit.txt tags will go here
    <!-- {{> profileTags }} -->
  </div>
  <div class="tab-pane fade" role="tabpanel" id="profileTags-bag-info.txt" aria-labelledby="navTagsTab">
    bag-info.txt tags will go here
    <!-- {{> profileTags }} -->
  </div>
</div>


{{> inputHidden field = form.fields.id }}
{{> inputHidden field = form.fields.userCanDelete }}
{{> inputHidden field = form.fields.baseProfileId }}

{{> formButtons form = form }}

</form>

{'fraction_non_alphanumeric': 0.1771663346613546, 'fraction_numerical': 0.0011205179282868527, 'mean_word_length': 4.889296187683285, 'pattern_counts': {'":': 0, '<': 112, '<?xml version=': 0, '>': 160, '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': '7133512', 'n_tokens_mistral': 2589, 'n_tokens_neox': 2569, 'n_words': 481}