mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-17 13:32:15 +00:00
Try overriding localization at template level
This commit is contained in:
@@ -17,6 +17,8 @@ forms.TimeField.widget = forms.TextInput(attrs={'type': 'time'})
|
||||
forms.DateTimeField.widget = forms.DateTimeInput(attrs={'type': 'datetime-local'})
|
||||
|
||||
# Events Shit
|
||||
|
||||
|
||||
class EventForm(forms.ModelForm):
|
||||
datetime_input_formats = list(settings.DATETIME_INPUT_FORMATS)
|
||||
meet_at = forms.DateTimeField(input_formats=datetime_input_formats, required=False)
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
{% load widget_tweaks %}
|
||||
{% load l10n %}
|
||||
|
||||
<div class="col-md-6 my-3">
|
||||
<div class="card card-default form-hws form-non_rig">
|
||||
<div class="card-header">Event Details</div>
|
||||
@@ -39,6 +41,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% localize off %}
|
||||
<div class="form-group">
|
||||
<label for="{{ form.start_date.id_for_label }}"
|
||||
class="col-sm-4 control-label">{{ form.start_date.label }}</label>
|
||||
@@ -98,6 +101,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endlocalize %}
|
||||
|
||||
{# Status is needed on all events types and it looks good here in the form #}
|
||||
<div class="form-group" data-toggle="tooltip" title="The current status of the event. Only mark as booked once paperwork is received">
|
||||
|
||||
Reference in New Issue
Block a user