Adjusted templates

This commit is contained in:
reverend 2020-08-10 20:10:22 +02:00
parent 30e6c6fda6
commit 86d7212060
3 changed files with 31 additions and 15 deletions

View File

@ -100,7 +100,8 @@ body {
border: none; border: none;
padding: 8px 14px; padding: 8px 14px;
border-radius: 2px; border-radius: 2px;
font-weight: bold; } font-weight: bold;
cursor: pointer; }
.LP-Button:active { .LP-Button:active {
background-color: #76323F; background-color: #76323F;
color: #f9f9f9; } color: #f9f9f9; }

View File

@ -4,15 +4,17 @@
{% block title %}Lost Place Deletion{% endblock %} {% block title %}Lost Place Deletion{% endblock %}
{% block maincontent %} {% block maincontent %}
<form class="" method="POST" enctype="multipart/form-data">
<fieldset class=""> <form class="LP-Form" method="POST">
<legend class="">Delete place</legend> <fieldset class="LP-Form__Fieldset">
<legend class="LP-Form__Legend">Place löschen</legend>
{% csrf_token %} {% csrf_token %}
<p>Are you sure you want to delete {{place.name}}?</p> <div class="LP-Form__Composition LP-Form__Composition--breakable">
{{ form.as_p }} <p class="LP-Paragraph">Are you sure you want to delete "{{place.name}}"?</p>
<div class=""> <div class="LP-Form__Composition">
<input type="submit" class="LP-Button" value="Delete"/> <input type="submit" class="LP-Button" value="Löschen"/>
</div> </div>
</fieldset> </div>
</fieldset>
</form> </form>
{% endblock maincontent %} {% endblock maincontent %}

View File

@ -5,11 +5,24 @@
{% block maincontent %} {% block maincontent %}
<h2>Login</h2> <form class="LP-Form" method="POST" enctype="multipart/form-data">
<form method="post"> <fieldset class="LP-Form__Fieldset">
{% csrf_token %} <legend class="LP-Form__Legend">Login</legend>
{{ form.as_p }} {% csrf_token %}
<button type="submit">Login</button> <div class="LP-Form__Composition LP-Form__Composition--breakable">
<div class="LP-Form__Field">
{% include 'partials/form/inputField.html' with field=form.username %}
</div>
<div class="LP-Form__Field">
{% include 'partials/form/inputField.html' with field=form.password %}
</div>
</div>
<div class="LP-Form__Composition">
<input type="submit" class="LP-Button" value="Login"/>
</div>
</fieldset>
</form> </form>
{% endblock maincontent %} {% endblock maincontent %}