Codebase list fudgec2 / 0e0c95a ServerApp / templates / settings / CampaignSettings.html
0e0c95a

Tree @0e0c95a (Download .tar.gz)

CampaignSettings.html @0e0c95araw · history · blame

{% extends "ImplantMain.html" %}
{% block main2 %}

<div class="m-0 p-3">
    <h4>Settings</h4>
    <h5>Existing Implants & Stagers: {{ campaign }}</h5>

    {% if users %}
    <h5>User Access Rights</h5>
    {% set count = namespace(a=0) %}
    <form action="/{{cid}}/settings" method="POST" role="form" id="AnswerForm">
    {% for user in users %}
    <div class="form-group">
    {{ user.user }}
    <!-- Update to check the current rights of a user!-->
    <div class="form-check form-check-inline">
        <input {% if users[count.a].permissions==0 %}{{ "checked" }}{% endif %} class="form-check-input" type="radio" name="{{ user.user }}" id="inlineRadio{{count.a}}" value="0">
        <label class="form-check-label">None</label>
    </div>
    <div class="form-check form-check-inline">
        <input {% if users[count.a].permissions==1 %}{{ "checked" }}{% endif %} class="form-check-input" type="radio" name="{{ user.user }}" id="inlineRadio{{count.a}}" value="1">
        <label class="form-check-label">Read</label>
    </div>
    <div class="form-check form-check-inline">
        <input {% if users[count.a].permissions==2 %}{{ "checked" }}{% endif %} class="form-check-input" type="radio" name="{{ user.user }}" id="inlineRadio{{count.a}}" value="2">
        <label class="form-check-label">Read/Write</label>
    </div>
    <br>

    {% set count.a = count.a + 1 %}
    </div>
    {% endfor %}
    <button type="submit" class="btn btn-default" id="AddUserBtn">Submit</button>
    </form>
    {% else %}
        <hr>
            <p>Notice::No extra users.</p>
        <hr>
    {% endif %}

</div>
{% endblock %}