Refactor "category" settings page

This commit is contained in:
Oliver 2021-11-02 11:32:57 +11:00
parent 66b078e4b9
commit 489d085de8
2 changed files with 11 additions and 10 deletions

View File

@ -7,6 +7,12 @@
{% trans "Category Settings" %} {% trans "Category Settings" %}
{% endblock %} {% endblock %}
{% block actions %}
<button class='btn btn-success' id='new-cat-param' disabled=''>
<div class='fas fa-plus-circle'></div> {% trans "New Parameter" %}
</button>
{% endblock %}
{% block content %} {% block content %}
<div class='row'> <div class='row'>
@ -21,12 +27,6 @@
</form> </form>
</div> </div>
<div id='cat-param-buttons'>
<button class='btn btn-success' id='new-cat-param' disabled=''>
<div class='fas fa-plus-circle'></div> {% trans "New Parameter" %}
</button>
</div>
<table class='table table-striped table-condensed' id='cat-param-table' data-toolbar='#cat-param-buttons'> <table class='table table-striped table-condensed' id='cat-param-table' data-toolbar='#cat-param-buttons'>
</table> </table>

View File

@ -3,12 +3,13 @@
<div class='panel-heading'> <div class='panel-heading'>
<div class='d-flex flex-wrap'> <div class='d-flex flex-wrap'>
<h4>{% block heading %}HEADING{% endblock %}</h4> <h4>{% block heading %}HEADING{% endblock %}</h4>
</div> {% include "spacer.html" %}
<div class='btn-group' role='group'> <div class='btn-group' role='group'>
{% block actions %} {% block actions %}
{% endblock %} {% endblock %}
</div> </div>
</div> </div>
</div>
{% endblock %} {% endblock %}
{% block panel_content %} {% block panel_content %}
<div class='panel-content'> <div class='panel-content'>