Fix #381 -- Add location field (#398)

* add location field

* rearrange the display order
This commit is contained in:
jlwt90
2017-02-03 00:51:13 +08:00
committed by Raphael Michel
parent 01c3200258
commit 3037309711
5 changed files with 33 additions and 1 deletions

View File

@@ -56,7 +56,8 @@ class EventWizardBasicsForm(I18nModelForm):
'date_from',
'date_to',
'presale_start',
'presale_end'
'presale_end',
'location',
]
widgets = {
'date_from': forms.DateTimeInput(attrs={'class': 'datetimepicker'}),
@@ -131,6 +132,7 @@ class EventUpdateForm(I18nModelForm):
'is_public',
'presale_start',
'presale_end',
'location',
]
widgets = {
'date_from': forms.DateTimeInput(attrs={'class': 'datetimepicker'}),

View File

@@ -11,6 +11,7 @@
{% bootstrap_field form.slug layout="horizontal" %}
{% bootstrap_field form.date_from layout="horizontal" %}
{% bootstrap_field form.date_to layout="horizontal" %}
{% bootstrap_field form.location layout="horizontal" %}
{% bootstrap_field form.currency layout="horizontal" %}
{% bootstrap_field form.is_public layout="horizontal" %}
</fieldset>

View File

@@ -8,6 +8,7 @@
{% bootstrap_field form.slug layout="horizontal" %}
{% bootstrap_field form.date_from layout="horizontal" %}
{% bootstrap_field form.date_to layout="horizontal" %}
{% bootstrap_field form.location layout="horizontal" %}
{% bootstrap_field form.currency layout="horizontal" %}
</fieldset>
<fieldset>