Unify look of editor buttons.
This commit is contained in:
4
app.py
4
app.py
@@ -265,7 +265,7 @@ def player_list():
|
|||||||
("hex_id", "Hex ID"),
|
("hex_id", "Hex ID"),
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
return render_template("players.html", model=model)
|
return render_template("player_list.html", model=model)
|
||||||
|
|
||||||
|
|
||||||
@app.route("/drinks")
|
@app.route("/drinks")
|
||||||
@@ -278,7 +278,7 @@ def drink_list():
|
|||||||
"columns": [("id", "ID"), ("name", "Drink Name"), ("vol", "Alcohol %")],
|
"columns": [("id", "ID"), ("name", "Drink Name"), ("vol", "Alcohol %")],
|
||||||
"controls": [("edit", "Edit")],
|
"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"])
|
@app.route("/drinks/<drink_id>/edit", methods=["GET"])
|
||||||
|
|||||||
@@ -51,6 +51,10 @@ a:hover {
|
|||||||
font-family: 'DarkSouls', serif;
|
font-family: 'DarkSouls', serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.btn-toolbar{
|
||||||
|
padding: 5px 0;
|
||||||
|
}
|
||||||
|
|
||||||
.vertical-center {
|
.vertical-center {
|
||||||
min-height: 100%; /* Fallback for browsers do NOT support vh unit */
|
min-height: 100%; /* Fallback for browsers do NOT support vh unit */
|
||||||
min-height: 100vh; /* These two lines are counted as one :-) */
|
min-height: 100vh; /* These two lines are counted as one :-) */
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
{% block page %}
|
{% block page %}
|
||||||
{% if g.is_editor %}
|
{% if g.is_editor %}
|
||||||
<div class="btn-toolbar" role="toolbar">
|
<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>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if not model.drinks %}
|
{% if not model.drinks %}
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
{% block page %}
|
{% block page %}
|
||||||
{% if g.is_editor %}
|
{% if g.is_editor %}
|
||||||
<div class="btn-toolbar" role="toolbar">
|
<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>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if not model.player_list %}
|
{% if not model.player_list %}
|
||||||
Reference in New Issue
Block a user