Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/modules/categories/client/js/calendar.js b/modules/categories/client/js/calendar.js
- index 5533706..5c5c67a 100644
- --- a/modules/categories/client/js/calendar.js
- +++ b/modules/categories/client/js/calendar.js
- @@ -47,7 +47,7 @@ import 'fullcalendar/dist/fullcalendar.css';
- });
- ajaxDialog({
- dialogClasses: 'all-events-dialog',
- - title: $T.gettext('Events happening on {0}').format(cellInfo.date.format('MMMM Do YYYY')),
- + title: $T.gettext('Events happening on {0}').format(cellInfo.date.format('YYYYMMMM D ?')),
- content,
- });
- },
- diff --git a/modules/categories/controllers/display.py b/modules/categories/controllers/display.py
- index f700828..5257fe3 100644
- --- a/modules/categories/controllers/display.py
- +++ b/modules/categories/controllers/display.py
- @@ -1,3 +1,5 @@
- +# coding=utf-8
- +
- # This file is part of Indico.
- # Copyright (C) 2002 - 2019 CERN
- #
- @@ -244,7 +246,7 @@ class RHDisplayCategoryEventsBase(RHDisplayCategoryBase):
- self.now = now_utc(exact=False).astimezone(self.category.display_tzinfo)
- def format_event_date(self, event):
- - day_month = 'dd MMM'
- + day_month = 'MMMdd?'
- tzinfo = self.category.display_tzinfo
- start_dt = event.start_dt.astimezone(tzinfo)
- end_dt = event.end_dt.astimezone(tzinfo)
- @@ -260,7 +262,7 @@ class RHDisplayCategoryEventsBase(RHDisplayCategoryBase):
- def group_by_month(self, events):
- def _format_tuple(x):
- (year, month), events = x
- - return {'name': format_date(date(year, month, 1), format='MMMM yyyy'),
- + return {'name': format_date(date(year, month, 1), format='yyyy MMMM'),
- 'events': list(events),
- 'is_current': year == self.now.year and month == self.now.month}
- diff --git a/modules/categories/controllers/display.pyc b/modules/categories/controllers/display.pyc
- index 49d6714..be0e06e 100644
- Binary files a/modules/categories/controllers/display.pyc and b/modules/categories/controllers/display.pyc differ
- diff --git a/modules/categories/templates/display/overview/week.html b/modules/categories/templates/display/overview/week.html
- index 5d0f594..02d97ca 100644
- --- a/modules/categories/templates/display/overview/week.html
- +++ b/modules/categories/templates/display/overview/week.html
- @@ -24,7 +24,7 @@
- <tr>
- {% for day, events in events_by_day %}
- <th>
- - {{ day|format_date(format='EEE d MMM') }}
- + {{ day|format_date(format='MMMd?(EEE)') }}
- </th>
- {% endfor %}
- </tr>
- diff --git a/modules/designer/placeholders.py b/modules/designer/placeholders.py
- index 33902fd..4184d3c 100644
- --- a/modules/designer/placeholders.py
- +++ b/modules/designer/placeholders.py
- @@ -85,7 +85,7 @@ class EventDatesPlaceholder(DesignerPlaceholder):
- interval = to_unicode(format_datetime(start_dt))
- elif start_dt.date().replace(day=1) == end_dt.date().replace(day=1):
- interval = "{} - {} {}".format(start_dt.day, end_dt.day,
- - to_unicode(format_date(start_dt, format='MMMM yyyy')))
- + to_unicode(format_date(start_dt, format='yyyy MMMM')))
- return interval
- diff --git a/modules/designer/placeholders.pyc b/modules/designer/placeholders.pyc
- index 8d854d1..7b6ca94 100644
- Binary files a/modules/designer/placeholders.pyc and b/modules/designer/placeholders.pyc differ
- diff --git a/modules/events/client/js/creation.js b/modules/events/client/js/creation.js
- index 7525de7..40ed406 100644
- --- a/modules/events/client/js/creation.js
- +++ b/modules/events/client/js/creation.js
- @@ -98,8 +98,8 @@ import {camelizeKeys} from 'indico/utils/case';
- if (occurrences && occurrences.length === 1) {
- setLectureTimes(occurrences[0]);
- } else {
- - startDt = moment(`${startDate} ${startTime}`, 'DD/MM/YYYY HH:mm');
- - endDt = moment(`${endDate} ${endTime}`, 'DD/MM/YYYY HH:mm');
- + startDt = moment(`${startDate} ${startTime}`, 'YYYY/MM/DD HH:mm');
- + endDt = moment(`${endDate} ${endTime}`, 'YYYY/MM/DD HH:mm');
- }
- }
- @@ -222,11 +222,11 @@ import {camelizeKeys} from 'indico/utils/case';
- const startTime = $('#event-creation-start_dt-time').val();
- const endDate = $('#event-creation-end_dt-date').val();
- const endTime = $('#event-creation-end_dt-time').val();
- - startDt = moment(`${startDate} ${startTime}`, 'DD/MM/YYYY HH:mm');
- - endDt = moment(`${endDate} ${endTime}`, 'DD/MM/YYYY HH:mm');
- + startDt = moment(`${startDate} ${startTime}`, 'YYYY/MM/DD HH:mm');
- + endDt = moment(`${endDate} ${endTime}`, 'YYYY/MM/DD HH:mm');
- // workaround for automatic end date update if start date is after end date
- if (endDt.isBefore(startDt)) {
- - endDt = moment(`${startDate} ${endTime}`, 'DD/MM/YYYY HH:mm');
- + endDt = moment(`${startDate} ${endTime}`, 'YYYY/MM/DD HH:mm');
- }
- updateAvailability();
- });
- @@ -234,21 +234,21 @@ import {camelizeKeys} from 'indico/utils/case';
- $('#event-creation-start_dt-time').on('change', function() {
- const startDate = $('#event-creation-start_dt-date').val();
- const startTime = $('#event-creation-start_dt-time').val();
- - startDt = moment(`${startDate} ${startTime}`, 'DD/MM/YYYY HH:mm');
- + startDt = moment(`${startDate} ${startTime}`, 'YYYY/MM/DD HH:mm');
- updateAvailability();
- });
- $('#event-creation-end_dt-date').on('change', function() {
- const endDate = $(this).val();
- const endTime = $('#event-creation-end_dt-time').val();
- - endDt = moment(`${endDate} ${endTime}`, 'DD/MM/YYYY HH:mm');
- + endDt = moment(`${endDate} ${endTime}`, 'YYYY/MM/DD HH:mm');
- updateAvailability();
- });
- $('#event-creation-end_dt-time').on('change', function() {
- const endDate = $('#event-creation-end_dt-date').val();
- const endTime = $(this).val();
- - endDt = moment(`${endDate} ${endTime}`, 'DD/MM/YYYY HH:mm');
- + endDt = moment(`${endDate} ${endTime}`, 'YYYY/MM/DD HH:mm');
- updateAvailability();
- });
- diff --git a/modules/events/contributions/client/js/index.js b/modules/events/contributions/client/js/index.js
- index cfd99e6..85684c5 100644
- --- a/modules/events/contributions/client/js/index.js
- +++ b/modules/events/contributions/client/js/index.js
- @@ -105,7 +105,7 @@ import 'indico/modules/events/util/types_dialog';
- ) {
- oldLabelHtml
- .filter('.label')
- - .text(' ' + moment.utc(data.start_dt).format('DD/MM/YYYY HH:mm'));
- + .text(' ' + moment.utc(data.start_dt).format('YYYY/MM/DD HH:mm'));
- startDateCol.html(oldLabelHtml);
- $this.itempicker('selectItem', oldSession ? oldSession.id : null);
- });
- diff --git a/modules/events/management/templates/_management_frame.html b/modules/events/management/templates/_management_frame.html
- index de0ce51..b4c5713 100644
- --- a/modules/events/management/templates/_management_frame.html
- +++ b/modules/events/management/templates/_management_frame.html
- @@ -25,8 +25,8 @@
- {% macro render_event_management_header_right(event, event_types) %}
- - {% set start_date = event.start_dt | format_date('d MMM', timezone=event.tzinfo) %}
- - {% set end_date = event.end_dt | format_date('d MMM', timezone=event.tzinfo) %}
- + {% set start_date = event.start_dt | format_date('MMMd?', timezone=event.tzinfo) %}
- + {% set end_date = event.end_dt | format_date('MMMd?', timezone=event.tzinfo) %}
- <div class="banner full-width">
- <div class="title">
- diff --git a/modules/events/operations.py b/modules/events/operations.py
- index bf9b090..dab3549 100644
- --- a/modules/events/operations.py
- +++ b/modules/events/operations.py
- @@ -94,7 +94,7 @@ def create_event(category, event_type, data, add_creator_as_manager=True, featur
- if booking:
- logger.info('Booking %r created for event %r', booking, event)
- log_data = {'Room': booking.room.full_name,
- - 'Date': booking.start_dt.strftime('%d/%m/%Y'),
- + 'Date': booking.start_dt.strftime('%Y/%m/%d'),
- 'Times': '%s - %s' % (booking.start_dt.strftime('%H:%M'), booking.end_dt.strftime('%H:%M'))}
- event.log(EventLogRealm.event, EventLogKind.positive, 'Event', 'Room booked for the event',
- session.user, data=log_data)
- diff --git a/modules/events/operations.pyc b/modules/events/operations.pyc
- index cb640ba..81804f3 100644
- Binary files a/modules/events/operations.pyc and b/modules/events/operations.pyc differ
- diff --git a/modules/events/registration/fields/choices.py b/modules/events/registration/fields/choices.py
- index 601777b..acf5f40 100644
- --- a/modules/events/registration/fields/choices.py
- +++ b/modules/events/registration/fields/choices.py
- @@ -296,7 +296,7 @@ class MultiChoiceField(ChoiceBaseField):
- def _to_machine_date(date):
- - return datetime.strptime(date, '%d/%m/%Y').strftime('%Y-%m-%d')
- + return datetime.strptime(date, '%Y/%m/%d').strftime('%Y-%m-%d')
- def _to_date(date):
- diff --git a/modules/events/registration/fields/choices.pyc b/modules/events/registration/fields/choices.pyc
- index bec4397..c723d19 100644
- Binary files a/modules/events/registration/fields/choices.pyc and b/modules/events/registration/fields/choices.pyc differ
- diff --git a/modules/events/templates/display/conference/base.html b/modules/events/templates/display/conference/base.html
- index 4fe044a..061bf0a 100644
- --- a/modules/events/templates/display/conference/base.html
- +++ b/modules/events/templates/display/conference/base.html
- @@ -9,7 +9,7 @@
- {% if start_dt.date() == end_dt.date() %}
- {{ start_dt | format_date('long') }}
- {% elif start_dt.year == end_dt.year and start_dt.month == end_dt.month %}
- - {{ start_dt.day }}-{{ end_dt.day }} {{ start_dt | format_date('MMMM yyyy') }}
- + {{ start_dt.day }}-{{ end_dt.day }} {{ start_dt | format_date('yyyy MMMM') }}
- {% else %}
- {% trans start=start_dt|format_date('long'), end=end_dt|format_date('long') -%}
- {{ start }} to {{ end }}
- diff --git a/modules/events/timetable/templates/display/indico/meeting.html b/modules/events/timetable/templates/display/indico/meeting.html
- index de1dde2..79c402b 100644
- --- a/modules/events/timetable/templates/display/indico/meeting.html
- +++ b/modules/events/timetable/templates/display/indico/meeting.html
- @@ -23,7 +23,7 @@
- {% block day_header scoped %}
- <div class="day-header" style="width: 100%;">
- <div class="day-title" data-anchor="{{ anchor }}">
- - {{ item.start_dt | format_date(format='EEEE, d MMMM', timezone=timezone) }}
- + {{ item.start_dt | format_date(format='MMMMd?(EEEE)', timezone=timezone) }}
- </div>
- {% if days %}
- <a class="js-go-to-day icon-calendar arrow js-dropdown" data-toggle="dropdown"></a>
- @@ -31,7 +31,7 @@
- {% for day, _ in days %}
- <li>
- <a href="#day-{{ day.isoformat() }}">
- - {{ day | format_date(format='EEE, d MMM', timezone=timezone) }}
- + {{ day | format_date(format='MMMd?(EEE)', timezone=timezone) }}
- </a>
- </li>
- {% endfor %}
- diff --git a/modules/events/timetable/templates/move_entry.html b/modules/events/timetable/templates/move_entry.html
- index 1258cb5..1b4dd6e 100644
- --- a/modules/events/timetable/templates/move_entry.html
- +++ b/modules/events/timetable/templates/move_entry.html
- @@ -9,7 +9,7 @@
- {% for day, entries in top_level_entries.iteritems() | sort %}
- <button class="i-button big day {%- if day == current_day %} highlight{% endif %}"
- data-day="{{ day }}">
- - {{- day | format_date(format='EEE, d MMM') -}}
- + {{- day | format_date(format='MMMd?(EEE)') -}}
- </button>
- {% endfor %}
- </div>
- diff --git a/modules/rb/templates/emails/reservations/base_email_to_manager.txt b/modules/rb/templates/emails/reservations/base_email_to_manager.txt
- index 50c2ac2..7a23857 100644
- --- a/modules/rb/templates/emails/reservations/base_email_to_manager.txt
- +++ b/modules/rb/templates/emails/reservations/base_email_to_manager.txt
- @@ -4,6 +4,6 @@
- {% block email_body -%}
- {% block body %}{% endblock %}
- -You can check the details of the booking here:
- +?????????????
- {{ reservation.external_details_url }}
- {%- endblock %}
- diff --git a/modules/rb/templates/emails/reservations/base_email_to_user.txt b/modules/rb/templates/emails/reservations/base_email_to_user.txt
- index 8f97081..f569f75 100644
- --- a/modules/rb/templates/emails/reservations/base_email_to_user.txt
- +++ b/modules/rb/templates/emails/reservations/base_email_to_user.txt
- @@ -4,9 +4,9 @@
- {% block email_body -%}
- {% block body %}{% endblock %}
- -Booking details:
- +?????
- {{ reservation.external_details_url }}
- -Remember you can always check your bookings here:
- +???????????????????
- {{ url_for('rb.my_bookings_link', _external=true) }}
- {%- endblock %}
- diff --git a/modules/rb/templates/emails/reservations/cancellation_email_to_manager.txt b/modules/rb/templates/emails/reservations/cancellation_email_to_manager.txt
- index 88a5c29..7af7e07 100644
- --- a/modules/rb/templates/emails/reservations/cancellation_email_to_manager.txt
- +++ b/modules/rb/templates/emails/reservations/cancellation_email_to_manager.txt
- @@ -1,5 +1,5 @@
- {% extends 'rb/emails/reservations/base_email_to_manager.txt' %}
- {% block body -%}
- -A booking in your room '{{ reservation.room.full_name }}' has been CANCELLED by the user.
- +??????? '{{ reservation.room.full_name }}' ??????????????
- {%- endblock %}
- diff --git a/modules/rb/templates/emails/reservations/cancellation_email_to_user.txt b/modules/rb/templates/emails/reservations/cancellation_email_to_user.txt
- index 93f4d13..7f32036 100644
- --- a/modules/rb/templates/emails/reservations/cancellation_email_to_user.txt
- +++ b/modules/rb/templates/emails/reservations/cancellation_email_to_user.txt
- @@ -1,7 +1,7 @@
- {% extends 'rb/emails/reservations/base_email_to_user.txt' %}
- {% block body -%}
- -You have CANCELLED your booking:
- +?????????
- {% include 'rb/emails/reservations/reservation_info.txt' %}
- {%- endblock %}
- diff --git a/modules/rb/templates/emails/reservations/change_state_email_to_manager.txt b/modules/rb/templates/emails/reservations/change_state_email_to_manager.txt
- index 3a8f1ba..088fdfa 100644
- --- a/modules/rb/templates/emails/reservations/change_state_email_to_manager.txt
- +++ b/modules/rb/templates/emails/reservations/change_state_email_to_manager.txt
- @@ -1,5 +1,6 @@
- {% extends 'rb/emails/reservations/base_email_to_manager.txt' %}
- {% block body -%}
- -A booking in a room you manage has been MODIFIED and the changes require approval.
- +?????????????????????????
- +
- {%- endblock %}
- diff --git a/modules/rb/templates/emails/reservations/change_state_email_to_user.txt b/modules/rb/templates/emails/reservations/change_state_email_to_user.txt
- index 200caea..48b8eb5 100644
- --- a/modules/rb/templates/emails/reservations/change_state_email_to_user.txt
- +++ b/modules/rb/templates/emails/reservations/change_state_email_to_user.txt
- @@ -1,7 +1,7 @@
- {% extends 'rb/emails/reservations/base_email_to_user.txt' %}
- {% block body -%}
- -Your booking has been MODIFIED and the changes require approval.
- +???????????????
- {% include 'rb/emails/reservations/reservation_info.txt' %}
- {%- endblock %}
- diff --git a/modules/rb/templates/emails/reservations/confirmation_email_to_manager.txt b/modules/rb/templates/emails/reservations/confirmation_email_to_manager.txt
- index 320d65b..f5fc29b 100644
- --- a/modules/rb/templates/emails/reservations/confirmation_email_to_manager.txt
- +++ b/modules/rb/templates/emails/reservations/confirmation_email_to_manager.txt
- @@ -1,5 +1,7 @@
- {% extends 'rb/emails/reservations/base_email_to_manager.txt' %}
- {% block body -%}
- -A booking in your room '{{ reservation.room.full_name }}' has been CONFIRMED by a room manager.
- +
- +????? '{{ reservation.room.full_name }}' ????????????????
- +
- {%- endblock %}
- diff --git a/modules/rb/templates/emails/reservations/confirmation_email_to_user.txt b/modules/rb/templates/emails/reservations/confirmation_email_to_user.txt
- index cd4020a..8f2f079 100644
- --- a/modules/rb/templates/emails/reservations/confirmation_email_to_user.txt
- +++ b/modules/rb/templates/emails/reservations/confirmation_email_to_user.txt
- @@ -2,8 +2,9 @@
- {% block body -%}
- {% block state -%}
- -Your booking has been ACCEPTED.
- -This is the final confirmation.
- +
- +?????????????????
- +
- {%- endblock %}
- {% include 'rb/emails/reservations/reservation_info.txt' %}
- diff --git a/modules/rb/templates/emails/reservations/creation_email_to_manager.txt b/modules/rb/templates/emails/reservations/creation_email_to_manager.txt
- index 8d5d1da..3ddfd7a 100644
- --- a/modules/rb/templates/emails/reservations/creation_email_to_manager.txt
- +++ b/modules/rb/templates/emails/reservations/creation_email_to_manager.txt
- @@ -1,7 +1,8 @@
- {% extends 'rb/emails/reservations/base_email_to_manager.txt' %}
- {% block body -%}
- -There is a new {% block prebooking_prefix %}{% endblock %}booking for your room.
- +
- +???????????? {% block prebooking_prefix %}{% endblock %} ???
- {% include 'rb/emails/reservations/reservation_info.txt' %}
- {%- endblock %}
- diff --git a/modules/rb/templates/emails/reservations/creation_email_to_user.txt b/modules/rb/templates/emails/reservations/creation_email_to_user.txt
- index ecc43ba..0411481 100644
- --- a/modules/rb/templates/emails/reservations/creation_email_to_user.txt
- +++ b/modules/rb/templates/emails/reservations/creation_email_to_user.txt
- @@ -3,26 +3,29 @@
- {% block body -%}
- {%- block booking_details -%}
- -The conference room {{ reservation.room.full_name }}
- -has been {% block prebooked_prefix %}{% endblock %}booked for {{ reservation.booked_for_name }}
- +
- +{{ reservation.booked_for_name}} ??{% block prebooked_prefix %}{% endblock %}???????{{ reservation.room.full_name }}?
- +
- {% if reservation.repeat_frequency == RepeatFrequency.NEVER -%}
- - on {{ reservation.start_dt | format_date('EEEE dd/MM/yyyy', locale='en_GB') }} from {{ reservation.start_dt | format_time(locale='en_GB') }} to {{ reservation.end_dt | format_time(locale='en_GB') }}.
- +?????{{ reservation.start_dt | format_date('yyyy/MM/dd (EEEE)', locale='zh_TW') }}
- +?????{{ reservation.start_dt | format_time(locale='zh_TW') }} ? {{ reservation.end_dt | format_time(locale='zh_TW') }}.
- {%- else -%}
- - {{ RepeatMapping.get_message(reservation.repeat_frequency, reservation.repeat_interval) }} from {{ reservation.start_dt | format_date('EEEE dd/MM/yyyy', locale='en_GB') }} to {{ reservation.end_dt | format_date('EEEE dd/MM/yyyy', locale='en_GB') }} between {{ reservation.start_dt | format_time(locale='en_GB') }} and {{ reservation.end_dt | format_time(locale='en_GB') }}.
- + {{ RepeatMapping.get_message(reservation.repeat_frequency, reservation.repeat_interval) }}
- +?????{{ reservation.start_dt | format_date('yyyy/MM/dd (EEEE)', locale='zh_TW') }} ? {{ reservation.end_dt | format_date('yyyy/MM/dd (EEEE)', locale='zh_TW') }}
- +?????{{ reservation.start_dt | format_time(locale='zh_TW') }} ? {{ reservation.end_dt | format_time(locale='zh_TW') }}.
- {%- endif %}
- -Reason: {{ reservation.booking_reason }}
- +
- +?????{{ reservation.booking_reason }}
- +
- {%- endblock -%}
- {%- block confirmed_booking -%}
- {%- if excluded_days %}
- - (Note that there are {{ excluded_days }} excluded days. For further info, check your reservation)
- + ????????? {{ excluded_days }} ?????????????????
- {%- endif %}
- -If you end up not needing this room, please cancel the booking from the
- -booking details so that the room can be booked by somebody else.
- +??????????????????????????????????
- -Please be aware that in special (rare) cases the person responsible
- -for this room may reject your booking. Should that happen you will
- -be instantly notified by e-mail.
- +?????????????????????????????????????????
- {%- endblock %}
- {%- include 'rb/emails/reservations/reservation_key_info.txt' %}
- diff --git a/modules/rb/templates/emails/reservations/creation_pre_email_to_user.txt b/modules/rb/templates/emails/reservations/creation_pre_email_to_user.txt
- index 4484965..801ab37 100644
- --- a/modules/rb/templates/emails/reservations/creation_pre_email_to_user.txt
- +++ b/modules/rb/templates/emails/reservations/creation_pre_email_to_user.txt
- @@ -2,11 +2,9 @@
- {% block prebooking_warning %}
- -Note:
- -Your pre-booking is NOT YET ACCEPTED by a room manager.
- -Please be aware that pre-bookings are subject to acceptance
- -or rejection. Expect an e-mail with acceptance/rejection
- -information.
- +????
- +???????????????
- +??????????????????????
- {%- endblock %}
- {% block prebooked_prefix %}pre-{% endblock %}
- diff --git a/modules/rb/templates/emails/reservations/modification_email_to_manager.txt b/modules/rb/templates/emails/reservations/modification_email_to_manager.txt
- index 7f00084..87ed5b1 100644
- --- a/modules/rb/templates/emails/reservations/modification_email_to_manager.txt
- +++ b/modules/rb/templates/emails/reservations/modification_email_to_manager.txt
- @@ -1,5 +1,5 @@
- {% extends 'rb/emails/reservations/base_email_to_manager.txt' %}
- {% block body -%}
- -A booking in a room you manage has been MODIFIED.
- +?????????????????
- {%- endblock %}
- diff --git a/modules/rb/templates/emails/reservations/modification_email_to_user.txt b/modules/rb/templates/emails/reservations/modification_email_to_user.txt
- index 70124bc..fe8f26b 100644
- --- a/modules/rb/templates/emails/reservations/modification_email_to_user.txt
- +++ b/modules/rb/templates/emails/reservations/modification_email_to_user.txt
- @@ -1,7 +1,7 @@
- {% extends 'rb/emails/reservations/base_email_to_user.txt' %}
- {% block body -%}
- -Your booking has been MODIFIED.
- +?????????
- {% include 'rb/emails/reservations/reservation_info.txt' %}
- {%- endblock %}
- diff --git a/modules/rb/templates/emails/reservations/occurrence_cancellation_email_to_manager.txt b/modules/rb/templates/emails/reservations/occurrence_cancellation_email_to_manager.txt
- index d116f15..2a4eb4a 100644
- --- a/modules/rb/templates/emails/reservations/occurrence_cancellation_email_to_manager.txt
- +++ b/modules/rb/templates/emails/reservations/occurrence_cancellation_email_to_manager.txt
- @@ -1,5 +1,5 @@
- {% extends 'rb/emails/reservations/base_email_to_manager.txt' %}
- {% block body -%}
- -The date {{ reservation.start_dt | format_date('EEEE dd/MM/yyyy', locale='en_GB') }} from a booking that concerns one of your rooms has been CANCELLED by the user.
- +???????????????? {{ reservation.start_dt | format_date('yyyy/MM/dd (EEEE)', locale='zh_TW') }} ???????????
- {%- endblock %}
- diff --git a/modules/rb/templates/emails/reservations/occurrence_cancellation_email_to_user.txt b/modules/rb/templates/emails/reservations/occurrence_cancellation_email_to_user.txt
- index 8032b1e..8f6081c 100644
- --- a/modules/rb/templates/emails/reservations/occurrence_cancellation_email_to_user.txt
- +++ b/modules/rb/templates/emails/reservations/occurrence_cancellation_email_to_user.txt
- @@ -1,7 +1,7 @@
- {% extends 'rb/emails/reservations/base_email_to_user.txt' %}
- {% block body -%}
- -You have CANCELLED an occurrence of your booking on {{ occurrence.start_dt | format_date('EEEE dd/MM/yyyy', locale='en_GB') }}.
- +??????? {{ occurrence.start_dt | format_date('yyyy/MM/dd (EEEE)', locale='zh_TW') }} ????
- {% include 'rb/emails/reservations/reservation_info.txt' %}
- {%- endblock %}
- diff --git a/modules/rb/templates/emails/reservations/occurrence_rejection_email_to_manager.txt b/modules/rb/templates/emails/reservations/occurrence_rejection_email_to_manager.txt
- index 60f3d51..65486c7 100644
- --- a/modules/rb/templates/emails/reservations/occurrence_rejection_email_to_manager.txt
- +++ b/modules/rb/templates/emails/reservations/occurrence_rejection_email_to_manager.txt
- @@ -1,9 +1,9 @@
- {% extends 'rb/emails/reservations/base_email_to_manager.txt' %}
- {% block body -%}
- -A booking has been REJECTED by the manager of the room '{{ reservation.room.full_name }}' for the {{ occurrence.start_dt | format_date('EEEE dd/MM/yyyy', locale='en_GB') }}.
- +????{{ reservation.room.full_name }}?????? {{ occurrence.start_dt | format_date('yyyy/MM/dd (EEEE)', locale='zh_TW') }} ????????
- -Rejection reason:
- +?????
- {{ occurrence.rejection_reason }}
- {% include 'rb/emails/reservations/reservation_info.txt' %}
- diff --git a/modules/rb/templates/emails/reservations/occurrence_rejection_email_to_user.txt b/modules/rb/templates/emails/reservations/occurrence_rejection_email_to_user.txt
- index 5b8bf60..2e573d6 100644
- --- a/modules/rb/templates/emails/reservations/occurrence_rejection_email_to_user.txt
- +++ b/modules/rb/templates/emails/reservations/occurrence_rejection_email_to_user.txt
- @@ -1,9 +1,9 @@
- {% extends 'rb/emails/reservations/base_email_to_user.txt' %}
- {% block body -%}
- -Your booking has been REJECTED by the manager of the room for the {{ occurrence.start_dt | format_date('EEEE dd/MM/yyyy', locale='en_GB') }}.
- +????? {{ occurrence.start_dt | format_date('yyyy/MM/dd (EEEE)', locale='zh_TW') }} ????????????
- -Rejection reason:
- +?????
- {{ occurrence.rejection_reason }}
- {% include 'rb/emails/reservations/reservation_info.txt' %}
- diff --git a/modules/rb/templates/emails/reservations/rejection_email_to_manager.txt b/modules/rb/templates/emails/reservations/rejection_email_to_manager.txt
- index 3f3d587..6aa50c6 100644
- --- a/modules/rb/templates/emails/reservations/rejection_email_to_manager.txt
- +++ b/modules/rb/templates/emails/reservations/rejection_email_to_manager.txt
- @@ -1,9 +1,9 @@
- {% extends 'rb/emails/reservations/base_email_to_manager.txt' %}
- {% block body -%}
- -A booking has been REJECTED by the manager of the room '{{ reservation.room.full_name }}'.
- +????{{ reservation.room.full_name }}?????????????
- -Rejection reason:
- +?????
- {{ reservation.rejection_reason }}
- {% include 'rb/emails/reservations/reservation_info.txt' %}
- diff --git a/modules/rb/templates/emails/reservations/rejection_email_to_user.txt b/modules/rb/templates/emails/reservations/rejection_email_to_user.txt
- index e6ca5d9..be13945 100644
- --- a/modules/rb/templates/emails/reservations/rejection_email_to_user.txt
- +++ b/modules/rb/templates/emails/reservations/rejection_email_to_user.txt
- @@ -1,9 +1,9 @@
- {% extends 'rb/emails/reservations/base_email_to_user.txt' %}
- {% block body -%}
- -Your booking has been REJECTED by the manager of the room.
- +???????????????
- -Rejection reason:
- +?????
- {{ reservation.rejection_reason }}
- {% include 'rb/emails/reservations/reservation_info.txt' %}
- diff --git a/modules/rb/templates/emails/reservations/reminders/finishing_bookings.html b/modules/rb/templates/emails/reservations/reminders/finishing_bookings.html
- index b56e07c..7b4b454 100644
- --- a/modules/rb/templates/emails/reservations/reminders/finishing_bookings.html
- +++ b/modules/rb/templates/emails/reservations/reminders/finishing_bookings.html
- @@ -29,7 +29,7 @@
- {% macro _render_dates(reservation) -%}
- - <strong>{{ reservation.start_dt|format_datetime('EEEE dd/MM/yyyy HH:mm', locale='en_GB') }}</strong> - <strong>{{ reservation.end_dt|format_datetime('EEEE dd/MM/yyyy HH:mm', locale='en_GB') }}</strong>
- + <strong>{{ reservation.start_dt|format_datetime('yyyy/MM/dd HH:mm', locale='zh_TW') }}</strong> - <strong>{{ reservation.end_dt|format_datetime('yyyy/MM/dd HH:mm', locale='zh_TW') }}</strong>
- {%- endmacro %}
- diff --git a/modules/rb/templates/emails/reservations/reminders/upcoming_occurrence.html b/modules/rb/templates/emails/reservations/reminders/upcoming_occurrence.html
- index 6a80ae4..040f941 100644
- --- a/modules/rb/templates/emails/reservations/reminders/upcoming_occurrence.html
- +++ b/modules/rb/templates/emails/reservations/reminders/upcoming_occurrence.html
- @@ -22,14 +22,14 @@
- {% macro _render_time(occurrence) -%}
- - {{ occurrence.start_dt | format_time(locale='en_GB') }} - {{ occurrence.end_dt | format_time(locale='en_GB') }}
- + {{ occurrence.start_dt | format_time(locale='zh_TW') }} - {{ occurrence.end_dt | format_time(locale='zh_TW') }}
- {%- endmacro %}
- {% macro _render_occurrence(occurrence) -%}
- {% set reservation = occurrence.reservation -%}
- - <strong>{{ occurrence.start_dt | format_date('EEEE dd/MM/yyyy', locale='en_GB') }}</strong> (<strong>{{ _render_time(occurrence) }}</strong>)<br>
- + <strong>{{ occurrence.start_dt | format_date('yyyy/MM/dd (EEEE)', locale='zh_TW') }}</strong> (<strong>{{ _render_time(occurrence) }}</strong>)<br>
- Room: <strong>{{ reservation.room.full_name }}</strong><br>
- Reason: <strong>{{ reservation.booking_reason }}</strong><br>
- <br>
- diff --git a/modules/rb/templates/emails/reservations/reservation_info.txt b/modules/rb/templates/emails/reservations/reservation_info.txt
- index dad3a0b..f69190e 100644
- --- a/modules/rb/templates/emails/reservations/reservation_info.txt
- +++ b/modules/rb/templates/emails/reservations/reservation_info.txt
- @@ -1,5 +1,5 @@
- -Room: {{ reservation.room.full_name }}
- -For: {{ reservation.booked_for_name }}
- -Reason: {{ reservation.booking_reason }}
- -Dates: {{ reservation.start_dt | format_date('EEEE dd/MM/yyyy', locale='en_GB') }} - {{ reservation.end_dt | format_date('EEEE dd/MM/yyyy', locale='en_GB') }}
- -Hours: {{ reservation.start_dt | format_time(locale='en_GB') }} - {{ reservation.end_dt | format_time(locale='en_GB') }}
- +???? {{ reservation.room.full_name }}
- +???? {{ reservation.booked_for_name }}
- +?????{{ reservation.booking_reason }}
- +?????{{ reservation.start_dt | format_date('yyyy/MM/dd (EEEE)', locale='zh_TW') }} - {{ reservation.end_dt | format_date('yyyy/MM/dd (EEEE)', locale='zh_TW') }}
- +?????{{ reservation.start_dt | format_time(locale='zh_TW') }} - {{ reservation.end_dt | format_time(locale='zh_TW') }}
- diff --git a/modules/rb/templates/emails/reservations/reservation_key_info.txt b/modules/rb/templates/emails/reservations/reservation_key_info.txt
- index 3888ba3..b4dd67f 100644
- --- a/modules/rb/templates/emails/reservations/reservation_key_info.txt
- +++ b/modules/rb/templates/emails/reservations/reservation_key_info.txt
- @@ -1,5 +1,5 @@
- {% if reservation.room.key_location %}
- -How to find a key:
- +?????
- {{ reservation.room.key_location | striptags }}
- {%- endif %}
- diff --git a/util/date_time.py b/util/date_time.py
- index 448e19d..cc613c8 100644
- --- a/util/date_time.py
- +++ b/util/date_time.py
- @@ -115,7 +115,7 @@ def format_date(d, format='medium', locale=None, timezone=None):
- """
- inject_unicode = True
- if format == 'code':
- - format = 'dd/MM/yyyy'
- + format = 'yyyy/MM/dd'
- inject_unicode = False
- if not locale:
- locale = get_current_locale()
- diff --git a/util/date_time.pyc b/util/date_time.pyc
- index 06ed84d..e7a1476 100644
- Binary files a/util/date_time.pyc and b/util/date_time.pyc differ
- diff --git a/web/forms/fields/datetime.py b/web/forms/fields/datetime.py
- index 4c8aae5..fc68af1 100644
- --- a/web/forms/fields/datetime.py
- +++ b/web/forms/fields/datetime.py
- @@ -180,7 +180,7 @@ class IndicoDateField(DateField):
- def __init__(self, *args, **kwargs):
- super(IndicoDateField, self).__init__(*args, parse_kwargs={'dayfirst': True},
- - display_format='%d/%m/%Y', **kwargs)
- + display_format='%Y/%m/%d', **kwargs)
- class IndicoDateTimeField(DateTimeField):
- diff --git a/web/forms/fields/datetime.pyc b/web/forms/fields/datetime.pyc
- index b06c2c6..2d380e5 100644
- Binary files a/web/forms/fields/datetime.pyc and b/web/forms/fields/datetime.pyc differ
- diff --git a/web/static/dist/js/jquery.e8708f7b.bundle.js b/web/static/dist/js/jquery.e8708f7b.bundle.js
- index 6e7007f..327278b 100644
- --- a/web/static/dist/js/jquery.e8708f7b.bundle.js
- +++ b/web/static/dist/js/jquery.e8708f7b.bundle.js
- @@ -121,7 +121,7 @@ var n;n=function(){return function(e){var t={};function i(n){if(t[n])return t[n]
- * Copyright jQuery Foundation and other contributors
- * Released under the MIT license.
- * http://jquery.org/license
- -[eliminated]
- +[eliminated]
- /*!
- * jQuery UI Dialog 1.12.1
- * http://jqueryui.com
- @@ -269,7 +269,7 @@ var n;n=function(){return function(e){var t={};function i(n){if(t[n])return t[n]
- * @author Tom Bertrand
- * @version 2.10.6 (2018-7-30)
- * @link http://www.runningcoder.org/jquerytypeahead/
- -[eliminated]
- +[eliminated]
- /*!
- * jQuery UI Widget 1.12.1
- * http://jqueryui.com
- @@ -313,4 +313,4 @@
- -[eliminated]
- -//# sourceMappingURL=jquery.e8708f7b.bundle.js.map
- \ No newline at end of file
- +//# sourceMappingURL=jquery.e8708f7b.bundle.js.map
- diff --git a/web/static/dist/js/jquery.e8708f7b.bundle.js.map b/web/static/dist/js/jquery.e8708f7b.bundle.js.map
- index dd3d1c1..8dba202 100644
- --- a/web/static/dist/js/jquery.e8708f7b.bundle.js.map
- +++ b/web/static/dist/js/jquery.e8708f7b.bundle.js.map
- @@ -1 +1 @@
- -[eliminated]
- \ No newline at end of file
- +[eliminated]
- diff --git a/web/static/dist/js/main.68ba26bc.bundle.js b/web/static/dist/js/main.68ba26bc.bundle.js
- index 4546993..8416602 100644
- --- a/web/static/dist/js/main.68ba26bc.bundle.js
- +++ b/web/static/dist/js/main.68ba26bc.bundle.js
- @@ -1,2 +1,2 @@
- -[eliminated]
- -//# sourceMappingURL=main.68ba26bc.bundle.js.map
- \ No newline at end of file
- +[eliminated]
- +//# sourceMappingURL=main.68ba26bc.bundle.js.map
- diff --git a/web/static/dist/js/main.68ba26bc.bundle.js.map b/web/static/dist/js/main.68ba26bc.bundle.js.map
- index 105e54f..db4c91c 100644
- --- a/web/static/dist/js/main.68ba26bc.bundle.js.map
- +++ b/web/static/dist/js/main.68ba26bc.bundle.js.map
- @@ -1 +1 @@
- -[eliminated]
- \ No newline at end of file
- +[eliminated]
- diff --git a/web/templates/forms/datetime_widget.html b/web/templates/forms/datetime_widget.html
- index f4093f9..b50986e 100644
- --- a/web/templates/forms/datetime_widget.html
- +++ b/web/templates/forms/datetime_widget.html
- @@ -4,7 +4,7 @@
- {% block html %}
- <div class="datetime-widget i-form-field-fixed-width">
- <input type="hidden" autofocus>
- - <input type="text" name="{{ field.name }}" id="{{ field.id }}-date" class="datepicker" placeholder="DD/MM/YYYY"
- + <input type="text" name="{{ field.name }}" id="{{ field.id }}-date" class="datepicker" placeholder="YYYY/MM/DD"
- {% if field.data and not field.date_missing %}value="{{ field.data | format_date('code', timezone=field.timezone) }}"{% endif %}
- {% if required %}required{% endif %}
- {% if disabled %}disabled{% endif %}>{#--#}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement