forked from DGNum/gestioCOF
css tweaks
This commit is contained in:
parent
15d79aff2d
commit
db899a891b
2 changed files with 15 additions and 7 deletions
|
@ -471,12 +471,15 @@ class InventoryArticleForm(forms.Form):
|
|||
# Order forms
|
||||
# -----
|
||||
|
||||
|
||||
class OrderArticleForm(forms.Form):
|
||||
article = forms.ModelChoiceField(
|
||||
queryset=Article.objects.all(),
|
||||
widget=forms.HiddenInput(),
|
||||
)
|
||||
quantity_ordered = forms.IntegerField(required = False)
|
||||
quantity_ordered = forms.IntegerField(
|
||||
required=False,
|
||||
widget=forms.NumberInput(attrs={'class': 'form-control'}))
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(OrderArticleForm, self).__init__(*args, **kwargs)
|
||||
|
|
|
@ -5,9 +5,11 @@
|
|||
|
||||
{% block content %}
|
||||
|
||||
<div class="content-right-block">
|
||||
<div>
|
||||
<form action="" method="post">
|
||||
{% csrf_token %}
|
||||
<table class="table table-hover table-condensed text-center">
|
||||
<table class="table table-condensed text-center">
|
||||
<thead>
|
||||
<tr>
|
||||
<td rowspan="2">Article</td>
|
||||
|
@ -40,13 +42,14 @@
|
|||
<tbody>
|
||||
{% for form in formset %}
|
||||
{% ifchanged form.category %}
|
||||
<tr>
|
||||
<tr class='section'>
|
||||
<td> {{ form.category_name }}</td>
|
||||
<td colspan="11"></td>
|
||||
</tr>
|
||||
{% endifchanged %}
|
||||
<tr>
|
||||
{{ form.article }}
|
||||
<td class='text-left'>{{ form.name }}</td>
|
||||
<td>{{ form.name }}</td>
|
||||
<td>{{ form.v_s1 }}</td>
|
||||
<td>{{ form.v_s2 }}</td>
|
||||
<td>{{ form.v_s3 }}</td>
|
||||
|
@ -66,8 +69,10 @@
|
|||
<input type="password" name="KFETPASSWORD">
|
||||
{% endif %}
|
||||
{{ formset.management_form }}
|
||||
<input type="submit" class="btn btn-primary btn-lg" value="Envoyer">
|
||||
<input type="submit" class="btn btn-primary btn-lg btn-block" value="Envoyer">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type='text/javascript'>
|
||||
$(document).ready(function () {
|
||||
|
|
Loading…
Reference in a new issue