You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.1 KiB
HTML
41 lines
1.1 KiB
HTML
{% macro shared_style() %}
|
|
<style>
|
|
table tr th, table tr td {
|
|
margin: 0;
|
|
padding: .2em;
|
|
border: solid black 1px;
|
|
}
|
|
a:link {
|
|
text-decoration: none;
|
|
color: blue;
|
|
}
|
|
a:visited {
|
|
text-decoration: none;
|
|
color: blue;
|
|
}
|
|
a:hover {
|
|
text-decoration: none;
|
|
}
|
|
a:active {
|
|
text-decoration: none;
|
|
}
|
|
form.form-single-button {
|
|
display: inline-block;
|
|
}
|
|
form.form-single-button button,
|
|
.button {
|
|
padding: .1rem .2rem;
|
|
margin: 0 .1rem;
|
|
background-color: lightcoral;
|
|
border-radius: .3rem;
|
|
}
|
|
</style>
|
|
{% endmacro %}
|
|
|
|
{% macro post_form(uri, key, val, text, fragment="") %}
|
|
<form class="form-single-button" method="POST" action="{{ uri }}">
|
|
<input type="hidden" name="redirect" value="{{ url_for(request.endpoint, **request.view_args) }}{{ ('#' + fragment) if fragment else '' }}"/>
|
|
<button name="{{ key }}" value="{{ val }}">{{ text }}</button>
|
|
</form>
|
|
{% endmacro %}
|