diff --git a/kfet/forms.py b/kfet/forms.py index 317effb3..2b59e1b3 100644 --- a/kfet/forms.py +++ b/kfet/forms.py @@ -471,12 +471,16 @@ class InventoryArticleForm(forms.Form): # Order forms # ----- + + class OrderArticleForm(forms.Form): article = forms.ModelChoiceField( - queryset = Article.objects.all(), - widget = forms.HiddenInput(), + 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) @@ -503,14 +507,18 @@ class OrderArticleToInventoryForm(forms.Form): ) price_HT = forms.DecimalField( max_digits = 7, decimal_places = 4, - required = False) + required = False, + widget=forms.NumberInput(attrs={'class': 'form-control'})) TVA = forms.DecimalField( max_digits = 7, decimal_places = 2, - required = False) + required = False, + widget=forms.NumberInput(attrs={'class': 'form-control'})) rights = forms.DecimalField( max_digits = 7, decimal_places = 4, - required = False) - quantity_received = forms.IntegerField() + required = False, + widget=forms.NumberInput(attrs={'class': 'form-control'})) + quantity_received = forms.IntegerField( + widget=forms.NumberInput(attrs={'class': 'form-control'})) def __init__(self, *args, **kwargs): super(OrderArticleToInventoryForm, self).__init__(*args, **kwargs) diff --git a/kfet/static/kfet/css/index.css b/kfet/static/kfet/css/index.css index 2d18e2de..63f93b06 100644 --- a/kfet/static/kfet/css/index.css +++ b/kfet/static/kfet/css/index.css @@ -213,6 +213,24 @@ textarea { font-size:25px; } +/* + * Pages tableaux seuls + */ + +.content-center > div { + background:#fff; +} + +.content-center tbody tr:not(.section) td { + padding:0px 5px !important; +} + +.content-center .table .form-control { + padding: 1px 12px ; + height:28px; + margin:3px 0px; +} + /* * Pages formulaires seuls */ @@ -365,6 +383,11 @@ textarea { margin:15px 0; } +/* Tooltips */ +thead .tooltip { + font-size:13px; +} + /* * Statistiques */ diff --git a/kfet/templates/kfet/order_create.html b/kfet/templates/kfet/order_create.html index efd316a6..cbd84ba8 100644 --- a/kfet/templates/kfet/order_create.html +++ b/kfet/templates/kfet/order_create.html @@ -5,19 +5,31 @@ {% block content %} +