Codebase list fudgec2 / 442d02a ServerApp / templates / settings / GlobalSettings.html
442d02a

Tree @442d02a (Download .tar.gz)

GlobalSettings.html @442d02araw · history · blame

{% extends "BaseNavbar.html" %}
{% block main %}

<div class="row justify-content-lg-center m-4">
    <div class="col-lg-10 p-3 m-3 rounded iplm">
        <h2>Global Settings</h2><br>
        <h4>User Management</h4><hr>
        <form action="/settings" method="POST" role="form" id="AnswerForm">
            <div class="form-group">
                <label for="NewUser" >Add New User</label>

                <input onfocus="this.placeholder=''" type="text" name="UserName" class="form-control" id="implantCmd" placeholder="Username">
            </div>
            <div class="form-check">
                <input class="form-check-input" type="checkbox" value="" name="is_admin" id="defaultCheck1">
                <label class="form-check-label" for="defaultCheck1">Admin account</label>
            </div>
            <button type="submit" class="btn btn-default" id="AddUserBtn">Submit</button>
        </form>

        <br><br><br>
        <h5>Disable User</h5>
        <p>Generate a list of with enable/disabled check boxes for any admin users. Ensure "self-disabling" cannot happen.</p>

        <h5 class="text-danger">Danger Area</h5>
        Delete User




    </div>

    <!-- Modal -->
    <div class="modal fade" id="FormSubmissionModal" tabindex="-1" role="dialog" aria-labelledby="FormSubmissionModalLabel" aria-hidden="true">
      <div class="modal-dialog" role="document">
        <div class="modal-content">
          <div class="modal-header">
            <h5 class="modal-title" id="FormModalTitle"></h5>
            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
              <span aria-hidden="true">&times;</span>
            </button>
          </div>
          <div class="modal-body">
            <div id="modal-result"></div>
            <div id="modal-reason"></div>
          </div>
          <div class="modal-footer">
            <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
          </div>
        </div>
      </div>
    </div>

</div>
<script src="{{ url_for('static', filename='Settings.js') }}"></script>
{% endblock %}