Add page headers to list/detail pages, fix invalid markup
- page_head block on machines, machine, events, errors, users, networks, network and uploadnet - networks: remove stray ')' in the Hash header onclick, replace inline icon colours with classes - network: close the two unclosed <select> elements - uploadnet: close the form with </form>
This commit is contained in:
1 parent
782e5190c3
commit
9761853076
8 files changed
+25
-9
No files matched your search
@@ -1,5 +1,7 @@
|
||||
{% extends "OpenBench/base.html" %}
|
||||
|
||||
{% block page_head %}<div><h1 class="page-title">Errors</h1><p class="page-sub">Crashes and illegal moves reported by workers</p></div>{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<table class="hoverable">
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
{% extends "OpenBench/base.html" %}
|
||||
|
||||
{% block page_head %}<div><h1 class="page-title">Events</h1><p class="page-sub">Recent activity across all workloads</p></div>{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<table class="hoverable">
|
||||
|
||||
@@ -6,11 +6,13 @@
|
||||
{% load static %}
|
||||
{% endblock %}
|
||||
|
||||
{% block page_head %}<div><h1 class="page-title">Machine {{ machine.id }}</h1><p class="page-sub">{{ machine.info.machine_name }}</p></div><div class="page-actions"><a class="anchorbutton btn-start" href="/machines"><i class="fa-solid fa-arrow-left fa-fw"></i> All machines</a></div>{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div id="config" style="display: block; overflow-x: auto;">
|
||||
<div id="config" class="card">
|
||||
|
||||
<table class="test-config left-align wrappable" style="table-layout: auto; width: 100%;">
|
||||
<table class="test-config left-align wrappable">
|
||||
|
||||
<tr><td class="td-label">User</td><td>{{machine.user.username}}</td></tr>
|
||||
<tr><td class="td-label">Machine Name</td><td>{{machine.info.machine_name}}</td></tr>
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
|
||||
{% load mytags %}
|
||||
|
||||
{% block page_head %}<div><h1 class="page-title">Machines</h1><p class="page-sub">Workers that have connected to this server</p></div>{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<table class="hoverable">
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
|
||||
{% load static %}
|
||||
|
||||
{% block page_head %}<div><h1 class="page-title">Edit Network</h1><p class="page-sub">{{network.name}}</p></div>{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<form method="POST" action="/networks/{{network.engine}}/EDIT/{{network.sha256}}/">
|
||||
@@ -44,7 +46,7 @@
|
||||
<option value="TRUE"> True </option>
|
||||
<option selected value="FALSE"> False </option>
|
||||
{% endif %}
|
||||
<select>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
@@ -57,7 +59,7 @@
|
||||
<option value="TRUE"> True </option>
|
||||
<option selected value="FALSE"> False </option>
|
||||
{% endif %}
|
||||
<select>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<input class="anchorbutton btn-blue w-100" type="submit" value="Update Network">
|
||||
|
||||
@@ -18,6 +18,8 @@
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block page_head %}<div><h1 class="page-title">Networks</h1><p class="page-sub">Click a column header to sort</p></div><div class="page-actions"><a class="anchorbutton btn-blue" href="/newNetwork"><i class="fa-solid fa-upload fa-fw"></i> Upload Network</a></div>{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<table id="network-table" class="hoverable">
|
||||
@@ -27,7 +29,7 @@
|
||||
<th class="cursor" onclick="sort_networks(['engine'])">Engine</th>
|
||||
<th class="cursor" onclick="sort_networks(['author'])">Author</th>
|
||||
<th class="cursor" onclick="sort_networks(['name'])">Name</th>
|
||||
<th class="cursor" onclick="sort_networks(['sha256'])")>Hash</th>
|
||||
<th class="cursor" onclick="sort_networks(['sha256'])">Hash</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
@@ -51,7 +53,7 @@
|
||||
|
||||
<td>
|
||||
<a href="/networks/{{network.engine}}/EDIT/{{network.sha256}}">
|
||||
<i class="fa-solid fa-pen-to-square" style="color: grey;"></i>
|
||||
<i class="fa-solid fa-pen-to-square icon-action"></i>
|
||||
</a>
|
||||
</td>
|
||||
|
||||
@@ -59,11 +61,11 @@
|
||||
{% if not network.default and not network.was_default %}
|
||||
<a onclick="return confirm('YOU ARE DELETING THIS NETWORK FILE FOREVER')"
|
||||
href="/networks/{{network.engine}}/DELETE/{{network.sha256}}">
|
||||
<i class="fa-solid fa-trash-can" style="color: #A03030;"></i></a>
|
||||
<i class="fa-solid fa-trash-can icon-danger"></i></a>
|
||||
{% else %}
|
||||
<a onclick="return alert('You must unset the default and previous-default flags manually before deleting')"
|
||||
href="/networks/{{network.engine}}/EDIT/{{network.sha256}}">
|
||||
<i class="fa-solid fa-trash-can" style="color: grey;"></i></a>
|
||||
<i class="fa-solid fa-trash-can icon-action"></i></a>
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -27,6 +27,8 @@
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block page_head %}<div><h1 class="page-title">Upload Network</h1><p class="page-sub">Share a network file with the workers</p></div>{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<form method="post" enctype="multipart/form-data" id="network-form">
|
||||
@@ -56,6 +58,6 @@
|
||||
<input type="submit" class="anchorbutton btn-blue w-100" value="Upload">
|
||||
</div>
|
||||
</div>
|
||||
<form>
|
||||
</form>
|
||||
|
||||
{% endblock %}
|
||||
@@ -2,6 +2,8 @@
|
||||
|
||||
{% load mytags %}
|
||||
|
||||
{% block page_head %}<div><h1 class="page-title">Users</h1><p class="page-sub">Contributors and approvers</p></div>{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<table class="hoverable">
|
||||
|
||||
Reference in new issue
Block a user