mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-07-01 11:31:28 +00:00
diagnostics: Template/styling helpers for modules
This commit is contained in:
parent
36426b373c
commit
991f848c23
25
plinth/modules/diagnostics/templates/diagnostics_button.html
Normal file
25
plinth/modules/diagnostics/templates/diagnostics_button.html
Normal file
@ -0,0 +1,25 @@
|
||||
{% comment %}
|
||||
#
|
||||
# This file is part of Plinth.
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Affero General Public License as
|
||||
# published by the Free Software Foundation, either version 3 of the
|
||||
# License, or (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU Affero General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
{% endcomment %}
|
||||
|
||||
<form class="form form-diagnostics-button" method="post"
|
||||
action="{% url 'diagnostics:module' module %}">
|
||||
{% csrf_token %}
|
||||
|
||||
<input type="submit" class="btn btn-default" value="Run Diagnostics"/>
|
||||
</form>
|
||||
@ -17,6 +17,10 @@ body {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.running-status-parent {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.running-status {
|
||||
border-radius: 50%;
|
||||
border: 1px solid black;
|
||||
@ -33,6 +37,10 @@ body {
|
||||
background-color: rgb(228, 66, 66);
|
||||
}
|
||||
|
||||
.form-diagnostics-button {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
/* Hide log out button if user dropdown is available */
|
||||
.js #logout-nojs {
|
||||
display: none;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user