<commit_before><commit_msg>Add untracked register_draft<commit_after><%inherit file="project/project_base.mako"/>

<%def name="title()">Register ${node['title']}</%def>

<%def name="content()">
<div class="col-md-6 col-md-offset-3" id="draftRegistrationScope">        
      <div id="embargo-addon" data-bind="with: $root.embargoAddon">
        <hr />
        
        <p class="help-block">${language.REGISTRATION_EMBARGO_INFO}</p>
        <div class="form-group">
          <label class="control-label">Registration Choice</label>
          <select class="form-control" data-bind="options: registrationOptions,
                                                  value: registrationChoice,
                                                  optionsText: 'message',
                                                  optionsValue: 'value',
                                                  event: {change: checkShowEmbargoDatePicker}"></select>
        </div>
        <span data-bind="visible: showEmbargoDatePicker">
          <div class="form-group">
            <label class="control-label">Embargo End Date</label>
            <input type="text" 
                   data-bind="hasFocus: $root.focusOnPicker"
                   id="endDatePicker" class="form-control">
          </div>
        </span>
      </div>
      
      <div id="register-show-submit">

        <hr />
        
        <p class="help-block">${language.BEFORE_REGISTRATION_INFO}</p>
        
        <div class="form-group">
          <label>
            Type "register" if you are sure you want to continue
          </label>
          <div class="controls">
            <input class="form-control" data-bind="value: $root.continueText, valueUpdate: 'afterkeydown'" />
          </div>
        </div>
      </div>
      
      <button id="register-submit" class="btn btn-primary" data-bind="click: registerDraft,
                                                                      visible: canSubmit">
        Register Now
      </button>     
</div><!-- end #registration_template -->
</%def>

<%def name="javascript_bottom()">

  <% import json %>
  <script type="text/javascript">
    window.contextVars = window.contextVars || {};
    window.contextVars.draft = ${json.dumps(draft)};
  </script>
  <script src=${"/static/public/js/register-page.js" | webpack_asset}></script>
</%def>

{'fraction_non_alphanumeric': 0.14593908629441624, 'fraction_numerical': 0.0008460236886632825, 'mean_word_length': 1.8221957040572792, 'pattern_counts': {'":': 0, '<': 50, '<?xml version=': 0, '>': 50, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 11, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '666235', 'n_tokens_mistral': 635, 'n_tokens_neox': 621, 'n_words': 117}