mirror of
https://framagit.org/la-chariotte/la-chariotte.git
synced 2025-05-01 11:22:24 +02:00
front for grouped order create page
This commit is contained in:
parent
a7c5a0670d
commit
384f81d4ab
4 changed files with 38 additions and 6 deletions
|
@ -17,7 +17,7 @@
|
|||
<div class="box">
|
||||
|
||||
<p class="title">Gestion des produits - {{ grouped_order.name }}</p>
|
||||
<p>Sur cette page, vous pouvez voir et modifier les produits qui sont inscrits à votre commande groupée.</p>
|
||||
<p>Sur cette page, vous pouvez ajouter et modifier les produits de votre commande groupée.</p>
|
||||
|
||||
{% url 'order:item_create' pk=grouped_order.pk as create_item_url %}
|
||||
|
||||
|
|
|
@ -6,8 +6,14 @@
|
|||
<p class="desktop-hidden mobile-content-title">
|
||||
{% block content_title %}Créer une commande groupée{% endblock %}
|
||||
</p>
|
||||
<form method="post">{% csrf_token %}
|
||||
{{ form.as_p }}
|
||||
<input type="submit" value="Save">
|
||||
</form>
|
||||
<div class="box">
|
||||
<p class="title">Nouvelle commande</p>
|
||||
<form method="post">{% csrf_token %}
|
||||
{{ form.as_p }}
|
||||
<div class="buttons">
|
||||
<a class="button is-light" href="{% url 'order:index' %}">Annuler</a>
|
||||
<input class="button is-primary" type="submit" value="Suivant">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
{% endblock %}
|
|
@ -10401,6 +10401,18 @@ a.navbar-item:hover {
|
|||
width: unset;
|
||||
}
|
||||
|
||||
.mini-title, form p label {
|
||||
color: #7a7a7a;
|
||||
font-size: 0.8rem;
|
||||
margin-bottom: 0px !important;
|
||||
}
|
||||
|
||||
form p label ~ input, form p label ~ textarea {
|
||||
display: block;
|
||||
max-width: 100%;
|
||||
box-shadow: inset 0 0.0625em 0.125em rgba(10, 10, 10, 0.05);
|
||||
}
|
||||
|
||||
@media screen and (max-width: 1023px) {
|
||||
table {
|
||||
display: block;
|
||||
|
|
|
@ -19,4 +19,18 @@
|
|||
|
||||
// Input
|
||||
.input.custom-width
|
||||
width: unset
|
||||
width: unset
|
||||
|
||||
// Forms
|
||||
|
||||
.mini-title, form p label
|
||||
color: $grey-text
|
||||
font-size: 0.8rem
|
||||
margin-bottom: 0px !important
|
||||
|
||||
form
|
||||
p
|
||||
label ~ input, label ~ textarea
|
||||
display: block
|
||||
max-width: 100%
|
||||
box-shadow: inset 0 0.0625em 0.125em rgba(10, 10, 10, 0.05)
|
Loading…
Reference in a new issue