Fix confirm_delete page

This commit is contained in:
Edgar P. Burkhart 2023-04-18 15:40:20 +02:00
parent 5e9fc9c0e7
commit b2bbbb405f
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
3 changed files with 8 additions and 8 deletions

View file

@ -21,10 +21,10 @@ table.file-input th {text-align: left}
table.file-input tr :first-child {padding-left: 0} table.file-input tr :first-child {padding-left: 0}
table.file-input tr :last-child {padding-right: 0} table.file-input tr :last-child {padding-right: 0}
form tfoot { .buttons {
text-align: right; text-align: right;
} }
form tfoot input { .buttons input {
font: inherit; font: inherit;
line-height: 1.5; line-height: 1.5;
margin-left: var(--gap); margin-left: var(--gap);
@ -32,17 +32,17 @@ form tfoot input {
padding: 0 var(--gap); padding: 0 var(--gap);
cursor: pointer; cursor: pointer;
} }
form tfoot input:hover { .buttons input:hover {
text-decoration: underline; text-decoration: underline;
} }
form tfoot input[type="submit"] { .buttons input[type="submit"] {
border: .1rem solid var(--green); border: .1rem solid var(--green);
background: var(--green-1); background: var(--green-1);
} }
form tfoot input[type="reset"] { .buttons input[type="reset"] {
border: .1rem solid var(--red); border: .1rem solid var(--red);
background: var(--red-1); background: var(--red-1);
} }
form tfoot a.del { .buttons a.del {
color: var(--red); color: var(--red);
} }

View file

@ -20,7 +20,7 @@
</p> </p>
{{ form }} {{ form }}
<div class="buttons"> <div class="buttons">
<a class="btn" href="{{ object.get_absolute_url }}">{% translate "Cancel" %}</a> <a href="{{ object.get_absolute_url }}">{% translate "Cancel" %}</a>
<input class="del" type="submit" value="{% translate "Confirm" %}" /> <input class="del" type="submit" value="{% translate "Confirm" %}" />
</div> </div>
</form> </form>

View file

@ -21,7 +21,7 @@
</tr> </tr>
{% endfor %} {% endfor %}
</tbody> </tbody>
<tfoot> <tfoot class="buttons">
<tr> <tr>
<td colspan="2"> <td colspan="2">
{% block buttons %} {% block buttons %}