Compare commits

...

5 Commits

Author SHA1 Message Date
d554355f9c User management forms 2020-08-12 18:32:14 +02:00
5c9a52b01c Merge branch 'master' of mowoe.com:reverend/lostplaces-backend 2020-08-12 18:32:11 +02:00
7bcb08a4ae More German removed. 2020-08-12 18:32:07 +02:00
5009b778f7 More buttons 2020-08-12 18:30:30 +02:00
f9fd9d68a7 More Form frickelei 2020-08-12 18:27:51 +02:00
5 changed files with 75 additions and 52 deletions

View File

@ -476,39 +476,49 @@ body {
.LP-Footer .LP-LinkList__List .LP-LinkList__Item .LP-Link:hover { .LP-Footer .LP-LinkList__List .LP-LinkList__Item .LP-Link:hover {
background-color: inherit; } background-color: inherit; }
.LP-Form .LP-Form__Fieldset { .LP-Form {
border: none; } display: flex;
.LP-Form .LP-Form__Fieldset .LP-Form__Legend { flex-direction: column;
margin: 0; align-items: center; }
padding: 0; .LP-Form .LP-Form__Fieldset {
font-family: Montserrat, Helvetica, sans-serif; border: none;
font-size: 21px; } max-width: 1200px;
.LP-Form .LP-Form__Fieldset .LP-Form__Composition { min-width: 750px; }
display: flex; .LP-Form .LP-Form__Fieldset .LP-Form__Legend {
flex-direction: row; margin: 0;
justify-content: space-between; } padding: 0;
.LP-Form .LP-Form__Fieldset .LP-Form__Composition .LP-Form__Field {
flex: 3 1 100px;
padding: 6px 15px; }
.LP-Form .LP-Form__Fieldset .LP-Form__Composition .LP-Form__Field--wider {
flex: 5 1; }
.LP-Form .LP-Form__Fieldset .LP-Form__Composition .LP-Form__Field--wide {
flex: 4 1; }
.LP-Form .LP-Form__Fieldset .LP-Form__Composition .LP-Form__Field--narrow {
flex: 2 0; }
.LP-Form .LP-Form__Fieldset .LP-Form__Composition .LP-Form__Field--narrower {
flex: 1 0; }
.LP-Form .LP-Form__Fieldset .LP-Form__Composition--buttons {
justify-content: flex-end; }
.LP-Form .LP-Form__Fieldset .LP-Form__Composition .LP-Form__Button {
flex-grow: 0;
padding-left: 0;
min-width: 130px; }
.LP-Form .LP-Form__Fieldset .LP-Form__Composition .LP-Form__Button .LP-Link {
display: contents; }
.LP-Form .LP-Form__Fieldset .LP-Form__Composition .LP-Form__InfoText .LP-Paragraph {
font-family: Montserrat, Helvetica, sans-serif; font-family: Montserrat, Helvetica, sans-serif;
color: #565656; } font-size: 21px; }
.LP-Form .LP-Form__Fieldset .LP-Form__Composition {
display: flex;
flex-direction: row;
justify-content: space-between; }
.LP-Form .LP-Form__Fieldset .LP-Form__Composition .LP-Form__Field {
flex: 3 2 100px;
padding: 6px 15px; }
.LP-Form .LP-Form__Fieldset .LP-Form__Composition .LP-Form__Field--wider {
flex: 5 2; }
.LP-Form .LP-Form__Fieldset .LP-Form__Composition .LP-Form__Field--wide {
flex: 4 2; }
.LP-Form .LP-Form__Fieldset .LP-Form__Composition .LP-Form__Field--narrow {
flex: 2 1; }
.LP-Form .LP-Form__Fieldset .LP-Form__Composition .LP-Form__Field--narrower {
flex: 1 2; }
.LP-Form .LP-Form__Fieldset .LP-Form__Composition--buttons {
justify-content: flex-end; }
.LP-Form .LP-Form__Fieldset .LP-Form__Composition .LP-Form__Button {
flex-grow: 0;
padding-left: 0;
min-width: 130px; }
.LP-Form .LP-Form__Fieldset .LP-Form__Composition .LP-Form__Button .LP-Link {
display: contents; }
.LP-Form .LP-Form__Fieldset .LP-Form__Composition .LP-Form__InfoText .LP-Paragraph {
font-family: Montserrat, Helvetica, sans-serif;
color: #565656; }
@media (max-width: 750px) {
.LP-Form .LP-Form__Fieldset {
min-width: unset; } }
@media (max-width: 650px) { @media (max-width: 650px) {
.LP-Form .LP-Form__Fieldset .LP-Form__Composition--breakable { .LP-Form .LP-Form__Fieldset .LP-Form__Composition--breakable {

View File

@ -38,12 +38,16 @@
</div> </div>
</div> </div>
<div class="LP-Form__Composition"> <div class="LP-Form__Composition LP-Form__Composition--buttons">
<a href="{% url 'place_list' %}"> <div class="LP-Form__Field LP-Form__Button LP-Input">
<button type="button" class="LP-Button LP-Button--cancel">Cancel</button> <button class="LP-Button">Create</button>
</a> </div>
<input type="submit" class="LP-Button" value="Abschicken"/> <div class="LP-Form__Field LP-Form__Button LP-Input">
</div> <a class="LP-Link" href="{% url 'place_list' %}">
<button type="button" class="LP-Button LP-Button--cancel">Cancel</button>
</a>
</div>
</div>
</fieldset> </fieldset>
</form> </form>

View File

@ -38,12 +38,16 @@
</div> </div>
</div> </div>
<div class="LP-Form__Composition"> <div class="LP-Form__Composition LP-Form__Composition--buttons">
<a href="{% url 'place_detail' pk=place.pk %}"> <div class="LP-Form__Field LP-Form__Button LP-Input">
<button type="button" class="LP-Button LP-Button--cancel">Cancel</button> <button class="LP-Button">Update</button>
</a> </div>
<input type="submit" class="LP-Button" value="Submit"/> <div class="LP-Form__Field LP-Form__Button LP-Input">
</div> <a class="LP-Link" href="{% url 'place_detail' pk=place.pk %}">
<button type="button" class="LP-Button LP-Button--cancel">Cancel</button>
</a>
</div>
</div>
</fieldset> </fieldset>
</form> </form>

View File

@ -18,9 +18,12 @@
</div> </div>
</div> </div>
<div class="LP-Form__Composition"> <div class="LP-Form__Composition LP-Form__Composition--buttons">
<input type="submit" class="LP-Button" value="Login"/> <div class="LP-Form__Field LP-Form__Button LP-Input">
</div> <button class="LP-Button">Login</button>
</div>
</div>
</div>
</fieldset> </fieldset>
</form> </form>

View File

@ -8,7 +8,7 @@
<form class="LP-Form" method="POST"> <form class="LP-Form" method="POST">
<fieldset class="LP-Form__Fieldset"> <fieldset class="LP-Form__Fieldset">
<legend class="LP-Form__Legend">Registrierung</legend> <legend class="LP-Form__Legend">Registration</legend>
{% csrf_token %} {% csrf_token %}
<div class="LP-Form__Composition LP-Form__Composition--breakable"> <div class="LP-Form__Composition LP-Form__Composition--breakable">
<div class="LP-Form__Field"> <div class="LP-Form__Field">
@ -35,9 +35,11 @@
</div> </div>
</div> </div>
<div class="LP-Form__Composition"> <div class="LP-Form__Composition LP-Form__Composition--buttons">
<input type="submit" class="LP-Button" value="Registrieren"/> <div class="LP-Form__Field LP-Form__Button LP-Input">
</div> <button class="LP-Button">Sign up</button>
</div>
</div>
</fieldset> </fieldset>
</form> </form>