part_system_summary.html 1.66 KB
Newer Older
1
<h3>システム設定</h3>
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30

<div class="summary-section">
    <h4 class='inline-heading'>動作モード</h4>
    <span>
        {#% if local_mode %#}
        Normal Mode
        {#% else %#}
        <!-- Viewer Mode -->
        {#% endif %#}
    </span>
</div>

<div class="summary-section">
    {#% if local_mode %#}
    <h4 class='inline-heading'>自動運営システム</h4>
    <button type="button" class="btn btn-primary" id="adccli-login-button">Login</button>
    <button type="button" class="btn btn-light" id="adccli-logout-button">Logout</button>
    <button type="button" class="btn btn-info" id="adccli-get-all-q">問題DL</button>
    <span id="adccli-status"></span>
    {#% endif %#}
</div>

<div class="summary-section">
    <h4>Worker</h4>
    <table class="table table-bordered" id="workers-table">
        <tr>
            <th class="">Worker</th>
            <th class="">Role</th>
            <th class="">Status</th>
31
            <th class="">Cmd</th>
32 33 34 35 36 37 38 39
        </tr>
        {% for k, w in workers.items() %}
        <tr class="worker-status-row" data-cname="{{w.name}}">
            <td class="worker-status-name">
                {{w.name}} ({{w.address}})
            </td>
            <td class="">{{w.role}}</td>
            <td class="worker-status-value">{{w.status}}</td>
40 41 42 43
            <td>
                <button type="button" class="btn btn-danger btn-sm btn-worker-reset" data-worker="{{w.address}}">Reset</button>
                <button type="button" class="btn btn-warning btn-sm btn-worker-stop" data-worker="{{w.address}}">Stop</button>
            </td>
44 45 46 47 48
        </tr>
        {% endfor %}
    </table>
</div>