<commit_before>{% load i18n %}

<div class="row">
  <div class="medium-12 columns">
    <h2>{% trans "Draft version" %}</h2>
    <p>{% trans "The SLM Technology / Approach data entry form is saved as a draft. The compiler is responsible for this data entry and can invite editors (WOCAT users) to help create it. Once the data entry is complete the compiler can submit it for review." %}</p>
  </div>
</div>

{% if 'submit_questionnaire' in review_config.permissions %}
  <div class="row process-action">
    <div class="medium-2 columns">
      <a class="button expand success" data-reveal-id="confirm-submit">{% trans "Submit" %}</a>
    </div>
    <div class="medium-10 columns">
      <p>{% trans 'All edits have been made, the data entry is complete, and the SLM Technology / Approach is ready to be submitted. After submission a reviewer is selected.' %}</p>
      {% if review_config.blocked_by %}
        <p>{{ review_config.blocked_by }}</p>
      {% endif %}
      <div id="confirm-submit" class="reveal-modal" data-reveal aria-labelledby="modalTitle" aria-hidden="true" role="dialog">
        <h2>{% trans "Please confirm submission." %}</h2>
        <p>{% trans "After submission of the SLM Technology / Approach a reviewer will be assigned to check your data. During this time you cannot edit your data entry. If the data is not complete you must revise it. If the data is complete the reviewer submits it for publication." %}</p>
        {% if review_config.blocked_by %}
        <p>{% trans "Someone is still editing this questionnaire. If you submit it, these changes will be lost. Are you sure you want to proceed?" %}</p>
        {% endif %}
        <button name='submit' value='true' class="button success" type="submit" form="review_form">{% trans "Submit" %}</button>
        <a class="close-reveal-modal" aria-label="Close">&#215;</a>
      </div>
    </div>
  </div>
{% endif %}

{% if review_config.mode == 'view' and 'edit_questionnaire' in review_config.permissions %}
  <div class="row process-action">
    <div class="medium-2 columns">
      <a class="button expand success" href="{{ review_config.url }}">{% trans "Edit" %}</a>
    </div>
    <div class="medium-10 columns">
      <p>{% trans 'Start editing the questionnaire.' %}</p><commit_msg>1097 Nitpick<commit_after>{% load i18n %}

<div class="row">
  <div class="medium-12 columns">
    <h2>{% trans "Draft version" %}</h2>
    <p>{% trans "The SLM Technology / Approach data entry form is saved as a draft. The compiler is responsible for this data entry and can invite editors (WOCAT users) to help create it. Once the data entry is complete the compiler can submit it for review." %}</p>
  </div>
</div>

{% if 'submit_questionnaire' in review_config.permissions %}
  <div class="row process-action">
    <div class="medium-2 columns">
      <a class="button expand success" data-reveal-id="confirm-submit">{% trans "Submit" %}</a>
    </div>
    <div class="medium-10 columns">
      <p>{% trans 'All edits have been made, the data entry is complete, and the SLM Technology / Approach is ready to be submitted. After submission a reviewer is selected.' %}</p>
      {% if review_config.blocked_by %}
        <p>{{ review_config.blocked_by }}</p>
      {% endif %}
      <div id="confirm-submit" class="reveal-modal" data-reveal aria-labelledby="modalTitle" aria-hidden="true" role="dialog">
        <h2>{% trans "Please confirm submission." %}</h2>
        <p>{% trans "After submission of the SLM Technology / Approach a reviewer will be assigned to check your data. During this time you cannot edit your data entry. If the data is not complete you must revise it. If the data is complete the reviewer submits it for publication." %}</p>
        {% if review_config.blocked_by %}
          <p>{% trans "Someone is still editing this questionnaire. If you submit it, these changes will be lost. Are you sure you want to proceed?" %}</p>
        {% endif %}
        <button name="submit" value="true" class="button success" type="submit" form="review_form">{% trans "Submit" %}</button>
        <a class="close-reveal-modal" aria-label="Close">&#215;</a>
      </div>
    </div>
  </div>
{% endif %}

{% if review_config.mode == 'view' and 'edit_questionnaire' in review_config.permissions %}
  <div class="row process-action">
    <div class="medium-2 columns">
      <a class="button expand success" href="{{ review_config.url }}">{% trans "Edit" %}</a>
    </div>
    <div class="medium-10 columns">
      <p>{% trans 'Start editing the questionnaire.' %}</p>
{'fraction_non_alphanumeric': 0.14583790907094224, 'fraction_numerical': 0.00834614539863826, 'mean_word_length': 3.554, 'pattern_counts': {'":': 0, '<': 83, '<?xml version=': 0, '>': 83, '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': '3433870', 'n_tokens_mistral': 1410, 'n_tokens_neox': 1319, 'n_words': 518}