class Meta: model = cart_models.CustomerOrder fields = ['accepted', 'shipped', 'refund'] widgets = { 'accepted': custom_widgets.CheckBoxInput(), 'shipped': custom_widgets.CheckBoxInput(), 'refund': custom_widgets.CheckBoxInput() }
class Meta: model = models.CustomerOrder fields = ['accepted', 'shipped', 'completed', 'refund', 'tracking_number'] widgets = { 'accepted': custom_widgets.CheckBoxInput(), 'completed': custom_widgets.CheckBoxInput(), 'refund': custom_widgets.CheckBoxInput(), 'shipped': custom_widgets.CheckBoxInput(), 'delivery': custom_widgets.TextInput(), 'tracking_number': custom_widgets.TextInput(), }
class Meta: model = models.Product localized_fields = ('price_valid_until',) fields = ['name', 'description', 'gender', 'price_ht', 'discount_pct', 'quantity', 'price_valid_until', 'collection', 'clothe_size', 'reference', 'sku', 'in_stock', 'active', 'our_favorite', 'discounted', 'google_category'] widgets = { 'name': widgets.TextInput(attrs={'class': 'form-control', 'placeholder': 'Nom du produit'}), 'description': forms.widgets.Textarea(attrs={'class': 'form-control'}), 'gender': widgets.Select(attrs={'class': 'form-control'}), 'sku': widgets.TextInput(attrs={'class': 'form-control', 'placeholder': 'SKU'}), 'reference': widgets.TextInput(attrs={'class': 'form-control', 'placeholder': 'Référence'}), 'price_ht': widgets.NumberInput(attrs={'class': 'form-control', 'placeholder': 'Prix Hors Taxe', 'min': '0'}), 'price_valid_until': custom_widgets.DateInput(), 'discount_pct': widgets.NumberInput(attrs={'class': 'form-control', 'placeholder': 'Nombre en %', 'min': '5'}), 'quantity': widgets.NumberInput(attrs={'class': 'form-control', 'step': '5', 'min': '0'}), 'clothe_size': widgets.SelectMultiple(attrs={'class': 'form-control'}), 'collection': widgets.Select(attrs={'class': 'form-control'}), 'google_category': widgets.Select(attrs={'class': 'form-control'}), 'in_stock': widgets.CheckboxInput(attrs={'class': 'custom-control-input', 'id': 'in_stock'}), 'our_favorite': widgets.CheckboxInput(attrs={'class': 'custom-control-input'}), 'discounted': custom_widgets.CheckBoxInput(), 'active': widgets.CheckboxInput(attrs={'class': 'custom-control-input', 'id': 'active'}), }
class Meta: model = models.Image fields = ['name', 'url', 'variant', 'main_image'] widgets = { 'name': custom_widgets.TextInput(attrs={'placeholder': 'Name'}), 'url': custom_widgets.TextInput(attrs={'placeholder': 'Url'}), 'variant': custom_widgets.TextInput(attrs={'placeholder': 'Variant'}), 'main_image': custom_widgets.CheckBoxInput() }
class Meta: model = dashboard_models.DashboardSetting fields = [ 'name', 'contact_email', 'customer_care_email', 'automatic_archive', 'allow_coupons', 'legal_name', 'telephone' ] widgets = { 'name': custom_widgets.TextInput(), 'contact_email': custom_widgets.EmailInput(), 'customer_care_email': custom_widgets.EmailInput(), 'automatic_archive': custom_widgets.CheckBoxInput(), 'legal_name': custom_widgets.TextInput(), 'telephone': custom_widgets.TextInput(), }