Merge pull request #693 from Nels885/improve-plugins-web-page
improvement of the plugins web page
This commit is contained in:
commit
2f70512076
pwnagotchi/ui/web
@ -65,3 +65,18 @@ li.navitem {
|
|||||||
width: 1.875em;
|
width: 1.875em;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#container {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
justify-content: space-around;
|
||||||
|
}
|
||||||
|
|
||||||
|
.plugins-box {
|
||||||
|
margin: 0.5rem;
|
||||||
|
padding: 0.2rem;
|
||||||
|
border-style: groove;
|
||||||
|
border-radius: 0.5rem;
|
||||||
|
background-color: lightgrey;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
@ -26,16 +26,18 @@ $(function(){
|
|||||||
});
|
});
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div style="padding: 1em">
|
<div id="container">
|
||||||
{% for name in database.keys() %}
|
{% for name in database.keys() %}
|
||||||
<h4>
|
<div class="plugins-box">
|
||||||
<a {% if name in loaded and loaded[name].on_webhook is defined %} href="/plugins/{{name}}" {% endif %}>{{name}}</a>
|
<h4>
|
||||||
</h4>
|
<a {% if name in loaded and loaded[name].on_webhook is defined %} href="/plugins/{{name}}" {% endif %}>{{name}}</a>
|
||||||
<form method="POST" action="/plugins/toggle">
|
</h4>
|
||||||
<input type="checkbox" data-role="flipswitch" name="enabled" id="flip-checkbox-{{name}}" data-on-text="Enabled" data-off-text="Disabled" data-wrapper-class="custom-size-flipswitch" {% if name in loaded %} checked {% endif %}>
|
<form method="POST" action="/plugins/toggle">
|
||||||
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>
|
<input type="checkbox" data-role="flipswitch" name="enabled" id="flip-checkbox-{{name}}" data-on-text="Enabled" data-off-text="Disabled" data-wrapper-class="custom-size-flipswitch" {% if name in loaded %} checked {% endif %}>
|
||||||
<input type="hidden" name="plugin" value="{{ name }}"/>
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>
|
||||||
</form>
|
<input type="hidden" name="plugin" value="{{ name }}"/>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user