<commit_before>{% extends "base-admin.html" %}
{% block title %}Accounts{% endblock %}
{% block content %}

<ol class="breadcrumb">
  <li><a href="../accounts/homepage">Home</a></li>
  <li class="active">Accounts</li>
</ol>

<div class="panel panel-default">
<div class="panel-heading"><h3>New Account</h3></div>
<form id="new_admin" method="post" action="update" onsubmit="return check_passwords()" role="form" class="form-inline">
<input type="hidden" name="id" value="None" />
{{ csrf_token() }}
<div class="form-group">
    <label for="attendee_id" class="sr-only">Attendee</label>
    <select class="form-control" id="attendee_id" name="attendee_id">
        {% options all_attendees %}
    </select>
</div>
<div class="form-group">
    <div class="input-group input-group-sm">
    <label for="password" class="sr-only">Password</label>
    <input type="password" class="form-control" id="password" name="password" placeholder="Password" 
       {% if not c.AT_THE_CON %}disabled{% endif %}>
       {% if not c.AT_THE_CON %}
           <span class="input-group-addon glyphicon glyphicon-ban-circle">
           </span>
       {% endif %}
    </div>
    <input type="password" class="form-control" id="check-password" name="check-password" placeholder="<PASSWORD>"
           {% if not c.AT_THE_CON %}disabled{% endif %}>
    </div>
</div>
<div class="form-group">
    {{ AdminAccount.html_checkgroup('access') }}
</div>
<button type="submit" class="btn btn-default">Create Account</button>
</form>
</div>

<div class="panel panel-default">
<div class="panel-heading"><h3>Existing Accounts</h3></div>

<div class="table-responsive">
<table class="table table-striped datatable">
<thead><tr>
    <th></th>
    <th>Name</th>
    <th>Email</th><commit_msg>fix admin page<commit_after>{% extends "base-admin.html" %}
{% block title %}Accounts{% endblock %}
{% block content %}

<ol class="breadcrumb">
  <li><a href="../accounts/homepage">Home</a></li>
  <li class="active">Accounts</li>
</ol>

<div class="panel panel-default">
<div class="panel-heading"><h3>New Account</h3></div>
<form id="new_admin" method="post" action="update" onsubmit="return check_passwords()" role="form" class="form-inline">
<input type="hidden" name="id" value="None" />
{{ csrf_token() }}
<div class="form-group">
    <label for="attendee_id" class="sr-only">Attendee</label>
    <select class="form-control" id="attendee_id" name="attendee_id">
        {{ options(all_attendees) }}
    </select>
</div>
<div class="form-group">
    <div class="input-group input-group-sm">
    <label for="password" class="sr-only">Password</label>
    <input type="password" class="form-control" id="password" name="password" placeholder="Password" 
       {% if not c.AT_THE_CON %}disabled{% endif %}>
       {% if not c.AT_THE_CON %}
           <span class="input-group-addon glyphicon glyphicon-ban-circle">
           </span>
       {% endif %}
    </div>
    <input type="password" class="form-control" id="check-password" name="check-password" placeholder="<PASSWORD>"
           {% if not c.AT_THE_CON %}disabled{% endif %}>
    </div>
</div>
<div class="form-group">
    {{ AdminAccount.html_checkgroup(AdminAccount, 'access', no_instance=True) }}
</div>
<button type="submit" class="btn btn-default">Create Account</button>
</form>
</div>

<div class="panel panel-default">
<div class="panel-heading"><h3>Existing Accounts</h3></div>

<div class="table-responsive">
<table class="table table-striped datatable">
<thead><tr>
    <th></th>
    <th>Name</th>
    <th>Email</th>
{'fraction_non_alphanumeric': 0.2032130777903044, 'fraction_numerical': 0.002254791431792559, 'mean_word_length': 4.5453125, 'pattern_counts': {'":': 0, '<': 111, '<?xml version=': 0, '>': 111, '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': '504822', 'n_tokens_mistral': 1238, 'n_tokens_neox': 1185, 'n_words': 236}