Unify look of editor buttons.

This commit is contained in:
2019-02-16 11:57:15 +01:00
parent ded8fc586a
commit 4da3f38cf4
4 changed files with 8 additions and 4 deletions

4
app.py
View File

@@ -265,7 +265,7 @@ def player_list():
("hex_id", "Hex ID"),
],
}
return render_template("players.html", model=model)
return render_template("player_list.html", model=model)
@app.route("/drinks")
@@ -278,7 +278,7 @@ def drink_list():
"columns": [("id", "ID"), ("name", "Drink Name"), ("vol", "Alcohol %")],
"controls": [("edit", "Edit")],
}
return render_template("drinks.html", model=model)
return render_template("drink_list.html", model=model)
@app.route("/drinks/<drink_id>/edit", methods=["GET"])

View File

@@ -51,6 +51,10 @@ a:hover {
font-family: 'DarkSouls', serif;
}
.btn-toolbar{
padding: 5px 0;
}
.vertical-center {
min-height: 100%; /* Fallback for browsers do NOT support vh unit */
min-height: 100vh; /* These two lines are counted as one :-) */

View File

@@ -5,7 +5,7 @@
{% block page %}
{% if g.is_editor %}
<div class="btn-toolbar" role="toolbar">
<a class="btn btn-primary" href="{{ url_for('new_drink') }}" role="button">New Drink</a>
<a class="btn btn-primary" href="{{ url_for('new_drink') }}" role="button"><span class="fas fa-plus"></span> Drink</a>
</div>
{% endif %}
{% if not model.drinks %}

View File

@@ -5,7 +5,7 @@
{% block page %}
{% if g.is_editor %}
<div class="btn-toolbar" role="toolbar">
<a class="btn btn-primary" href="{{ url_for('player_new') }}" role="button">New Player</a>
<a class="btn btn-primary" href="{{ url_for('player_new') }}" role="button"><span class="fas fa-plus"></span> Player</a>
</div>
{% endif %}
{% if not model.player_list %}