From 9ed30aff11db3f98be897c9a06e5df057b3dd6ba Mon Sep 17 00:00:00 2001 From: Ivan Filipov Date: Wed, 5 Apr 2023 22:48:09 +0300 Subject: [PATCH] init --- .../install/core.date_format.custom_date.yml | 7 + .../core.date_format.custom_date_time.yml | 7 + .../install/core.date_format.custom_hours.yml | 7 + ...ntity_form_display.node.courts.default.yml | 179 +++ ...form_display.node.reservations.default.yml | 98 ++ ...ntity_view_display.node.courts.default.yml | 140 +++ ...entity_view_display.node.courts.teaser.yml | 56 + ...view_display.node.reaservations.teaser.yml | 24 + ...view_display.node.reservations.default.yml | 64 ++ .../install/field.field.node.courts.body.yml | 21 + ...ld.field.node.courts.field_friday_from.yml | 18 + ...ield.field.node.courts.field_friday_to.yml | 18 + ...ld.field.node.courts.field_monday_from.yml | 18 + ...ield.field.node.courts.field_monday_to.yml | 18 + ....field.node.courts.field_saturday_from.yml | 18 + ...ld.field.node.courts.field_saturday_to.yml | 18 + ...ld.field.node.courts.field_sunday_from.yml | 18 + ...ield.field.node.courts.field_sunday_to.yml | 18 + ....field.node.courts.field_thursday_from.yml | 18 + ...ld.field.node.courts.field_thursday_to.yml | 18 + ...d.field.node.courts.field_tuesday_from.yml | 18 + ...eld.field.node.courts.field_tuesday_to.yml | 18 + ...field.node.courts.field_wednesday_from.yml | 18 + ...d.field.node.courts.field_wednesday_to.yml | 18 + ...ld.field.node.reservations.field_court.yml | 27 + ...eld.field.node.reservations.field_note.yml | 18 + ....node.reservations.field_person_e_mail.yml | 18 + ...ld.node.reservations.field_person_name.yml | 18 + ...d.node.reservations.field_person_phone.yml | 18 + ...de.reservations.field_reservation_time.yml | 20 + .../field.storage.node.field_court.yml | 18 + .../field.storage.node.field_friday_from.yml | 20 + .../field.storage.node.field_friday_to.yml | 20 + .../field.storage.node.field_monday_from.yml | 20 + .../field.storage.node.field_monday_to.yml | 20 + .../install/field.storage.node.field_note.yml | 18 + ...field.storage.node.field_person_e_mail.yml | 17 + .../field.storage.node.field_person_name.yml | 18 + .../field.storage.node.field_person_phone.yml | 20 + ...ld.storage.node.field_reservation_time.yml | 19 + ...field.storage.node.field_saturday_from.yml | 20 + .../field.storage.node.field_saturday_to.yml | 20 + .../field.storage.node.field_sunday_from.yml | 20 + .../field.storage.node.field_sunday_to.yml | 20 + ...field.storage.node.field_thursday_from.yml | 20 + .../field.storage.node.field_thursday_to.yml | 20 + .../field.storage.node.field_tuesday_from.yml | 20 + .../field.storage.node.field_tuesday_to.yml | 20 + ...ield.storage.node.field_wednesday_from.yml | 20 + .../field.storage.node.field_wednesday_to.yml | 20 + config/install/node.type.courts.yml | 17 + config/install/node.type.reservations.yml | 17 + config/install/views.view.reservations.yml | 1011 +++++++++++++++++ css/jquery.datetimepicker.min.css | 1 + css/reservation.css | 1 + css/reservations.css | 73 ++ js/jquery.datetimepicker.full.min.js | 2 + js/reservation.js | 115 ++ reservations.info.yml | 10 + reservations.libraries.yml | 35 + reservations.module | 31 + reservations.routing.yml | 7 + src/Form/ReservationAddForm.php | 240 ++++ 63 files changed, 2924 insertions(+) create mode 100755 config/install/core.date_format.custom_date.yml create mode 100755 config/install/core.date_format.custom_date_time.yml create mode 100755 config/install/core.date_format.custom_hours.yml create mode 100755 config/install/core.entity_form_display.node.courts.default.yml create mode 100755 config/install/core.entity_form_display.node.reservations.default.yml create mode 100755 config/install/core.entity_view_display.node.courts.default.yml create mode 100755 config/install/core.entity_view_display.node.courts.teaser.yml create mode 100755 config/install/core.entity_view_display.node.reaservations.teaser.yml create mode 100755 config/install/core.entity_view_display.node.reservations.default.yml create mode 100755 config/install/field.field.node.courts.body.yml create mode 100755 config/install/field.field.node.courts.field_friday_from.yml create mode 100755 config/install/field.field.node.courts.field_friday_to.yml create mode 100755 config/install/field.field.node.courts.field_monday_from.yml create mode 100755 config/install/field.field.node.courts.field_monday_to.yml create mode 100755 config/install/field.field.node.courts.field_saturday_from.yml create mode 100755 config/install/field.field.node.courts.field_saturday_to.yml create mode 100755 config/install/field.field.node.courts.field_sunday_from.yml create mode 100755 config/install/field.field.node.courts.field_sunday_to.yml create mode 100755 config/install/field.field.node.courts.field_thursday_from.yml create mode 100755 config/install/field.field.node.courts.field_thursday_to.yml create mode 100755 config/install/field.field.node.courts.field_tuesday_from.yml create mode 100755 config/install/field.field.node.courts.field_tuesday_to.yml create mode 100755 config/install/field.field.node.courts.field_wednesday_from.yml create mode 100755 config/install/field.field.node.courts.field_wednesday_to.yml create mode 100755 config/install/field.field.node.reservations.field_court.yml create mode 100755 config/install/field.field.node.reservations.field_note.yml create mode 100755 config/install/field.field.node.reservations.field_person_e_mail.yml create mode 100755 config/install/field.field.node.reservations.field_person_name.yml create mode 100755 config/install/field.field.node.reservations.field_person_phone.yml create mode 100755 config/install/field.field.node.reservations.field_reservation_time.yml create mode 100755 config/install/field.storage.node.field_court.yml create mode 100755 config/install/field.storage.node.field_friday_from.yml create mode 100755 config/install/field.storage.node.field_friday_to.yml create mode 100755 config/install/field.storage.node.field_monday_from.yml create mode 100755 config/install/field.storage.node.field_monday_to.yml create mode 100755 config/install/field.storage.node.field_note.yml create mode 100755 config/install/field.storage.node.field_person_e_mail.yml create mode 100755 config/install/field.storage.node.field_person_name.yml create mode 100755 config/install/field.storage.node.field_person_phone.yml create mode 100755 config/install/field.storage.node.field_reservation_time.yml create mode 100755 config/install/field.storage.node.field_saturday_from.yml create mode 100755 config/install/field.storage.node.field_saturday_to.yml create mode 100755 config/install/field.storage.node.field_sunday_from.yml create mode 100755 config/install/field.storage.node.field_sunday_to.yml create mode 100755 config/install/field.storage.node.field_thursday_from.yml create mode 100755 config/install/field.storage.node.field_thursday_to.yml create mode 100755 config/install/field.storage.node.field_tuesday_from.yml create mode 100755 config/install/field.storage.node.field_tuesday_to.yml create mode 100755 config/install/field.storage.node.field_wednesday_from.yml create mode 100755 config/install/field.storage.node.field_wednesday_to.yml create mode 100755 config/install/node.type.courts.yml create mode 100755 config/install/node.type.reservations.yml create mode 100755 config/install/views.view.reservations.yml create mode 100755 css/jquery.datetimepicker.min.css create mode 100755 css/reservation.css create mode 100755 css/reservations.css create mode 100755 js/jquery.datetimepicker.full.min.js create mode 100755 js/reservation.js create mode 100755 reservations.info.yml create mode 100755 reservations.libraries.yml create mode 100755 reservations.module create mode 100755 reservations.routing.yml create mode 100755 src/Form/ReservationAddForm.php diff --git a/config/install/core.date_format.custom_date.yml b/config/install/core.date_format.custom_date.yml new file mode 100755 index 0000000..813406f --- /dev/null +++ b/config/install/core.date_format.custom_date.yml @@ -0,0 +1,7 @@ +langcode: en +status: true +dependencies: { } +id: custom_date +label: 'Custom date' +locked: false +pattern: d.m.Y \ No newline at end of file diff --git a/config/install/core.date_format.custom_date_time.yml b/config/install/core.date_format.custom_date_time.yml new file mode 100755 index 0000000..c253d57 --- /dev/null +++ b/config/install/core.date_format.custom_date_time.yml @@ -0,0 +1,7 @@ +langcode: en +status: true +dependencies: { } +id: custom_date_time +label: 'Custom date/time' +locked: false +pattern: 'd.m.Y - H:i' \ No newline at end of file diff --git a/config/install/core.date_format.custom_hours.yml b/config/install/core.date_format.custom_hours.yml new file mode 100755 index 0000000..1bf643a --- /dev/null +++ b/config/install/core.date_format.custom_hours.yml @@ -0,0 +1,7 @@ +langcode: en +status: true +dependencies: { } +id: custom_hours +label: 'Custom hours' +locked: false +pattern: 'H:i' \ No newline at end of file diff --git a/config/install/core.entity_form_display.node.courts.default.yml b/config/install/core.entity_form_display.node.courts.default.yml new file mode 100755 index 0000000..3ffd1ad --- /dev/null +++ b/config/install/core.entity_form_display.node.courts.default.yml @@ -0,0 +1,179 @@ +langcode: en +status: true +dependencies: + config: + - field.field.node.courts.body + - field.field.node.courts.field_friday_from + - field.field.node.courts.field_friday_to + - field.field.node.courts.field_monday_from + - field.field.node.courts.field_monday_to + - field.field.node.courts.field_saturday_from + - field.field.node.courts.field_saturday_to + - field.field.node.courts.field_sunday_from + - field.field.node.courts.field_sunday_to + - field.field.node.courts.field_thursday_from + - field.field.node.courts.field_thursday_to + - field.field.node.courts.field_tuesday_from + - field.field.node.courts.field_tuesday_to + - field.field.node.courts.field_wednesday_from + - field.field.node.courts.field_wednesday_to + - node.type.courts + module: + - path + - text +_core: + default_config_hash: UJwfz5wlVJ1sfW-PmeGKthLAm500RNWTnKgs6423Jhk +id: node.courts.default +targetEntityType: node +bundle: courts +mode: default +content: + body: + type: text_textarea_with_summary + weight: 31 + settings: + rows: 9 + summary_rows: 3 + placeholder: '' + third_party_settings: { } + created: + type: datetime_timestamp + weight: 10 + settings: { } + third_party_settings: { } + field_friday_from: + weight: 40 + settings: + size: 5 + placeholder: '' + third_party_settings: { } + type: string_textfield + field_friday_to: + weight: 41 + settings: + size: 5 + placeholder: '' + third_party_settings: { } + type: string_textfield + field_monday_from: + weight: 32 + settings: + size: 5 + placeholder: '' + third_party_settings: { } + type: string_textfield + field_monday_to: + weight: 33 + settings: + size: 5 + placeholder: '' + third_party_settings: { } + type: string_textfield + field_saturday_from: + weight: 42 + settings: + size: 5 + placeholder: '' + third_party_settings: { } + type: string_textfield + field_saturday_to: + weight: 43 + settings: + size: 5 + placeholder: '' + third_party_settings: { } + type: string_textfield + field_sunday_from: + weight: 44 + settings: + size: 5 + placeholder: '' + third_party_settings: { } + type: string_textfield + field_sunday_to: + weight: 45 + settings: + size: 5 + placeholder: '' + third_party_settings: { } + type: string_textfield + field_thursday_from: + weight: 38 + settings: + size: 5 + placeholder: '' + third_party_settings: { } + type: string_textfield + field_thursday_to: + weight: 39 + settings: + size: 5 + placeholder: '' + third_party_settings: { } + type: string_textfield + field_tuesday_from: + weight: 34 + settings: + size: 5 + placeholder: '' + third_party_settings: { } + type: string_textfield + field_tuesday_to: + weight: 35 + settings: + size: 5 + placeholder: '' + third_party_settings: { } + type: string_textfield + field_wednesday_from: + weight: 36 + settings: + size: 5 + placeholder: '' + third_party_settings: { } + type: string_textfield + field_wednesday_to: + weight: 37 + settings: + size: 5 + placeholder: '' + third_party_settings: { } + type: string_textfield + langcode: + type: language_select + weight: 2 + settings: { } + third_party_settings: { } + path: + type: path + weight: 30 + settings: { } + third_party_settings: { } + promote: + type: boolean_checkbox + settings: + display_label: true + weight: 15 + third_party_settings: { } + sticky: + type: boolean_checkbox + settings: + display_label: true + weight: 16 + third_party_settings: { } + title: + type: string_textfield + weight: -5 + settings: + size: 60 + placeholder: '' + third_party_settings: { } + uid: + type: entity_reference_autocomplete + weight: 5 + settings: + match_operator: CONTAINS + size: 60 + placeholder: '' + third_party_settings: { } +hidden: { } diff --git a/config/install/core.entity_form_display.node.reservations.default.yml b/config/install/core.entity_form_display.node.reservations.default.yml new file mode 100755 index 0000000..79cc146 --- /dev/null +++ b/config/install/core.entity_form_display.node.reservations.default.yml @@ -0,0 +1,98 @@ +langcode: en +status: true +dependencies: + config: + - field.field.node.reservations.field_court + - field.field.node.reservations.field_note + - field.field.node.reservations.field_person_e_mail + - field.field.node.reservations.field_person_name + - field.field.node.reservations.field_person_phone + - field.field.node.reservations.field_reservation_time + - node.type.reservations + module: + - datetime + - path +id: node.reservations.default +targetEntityType: node +bundle: reservations +mode: default +content: + created: + type: datetime_timestamp + weight: 2 + settings: { } + third_party_settings: { } + field_court: + weight: 9 + settings: + match_operator: CONTAINS + size: 60 + placeholder: '' + third_party_settings: { } + type: entity_reference_autocomplete + field_note: + weight: 11 + settings: + rows: 5 + placeholder: '' + third_party_settings: { } + type: string_textarea + field_person_e_mail: + weight: 8 + settings: + size: 60 + placeholder: '' + third_party_settings: { } + type: email_default + field_person_name: + weight: 6 + settings: + rows: 5 + placeholder: '' + third_party_settings: { } + type: string_textarea + field_person_phone: + weight: 7 + settings: + size: 60 + placeholder: '' + third_party_settings: { } + type: string_textfield + field_reservation_time: + weight: 10 + settings: { } + third_party_settings: { } + type: datetime_default + path: + type: path + weight: 5 + settings: { } + third_party_settings: { } + promote: + type: boolean_checkbox + settings: + display_label: true + weight: 3 + third_party_settings: { } + sticky: + type: boolean_checkbox + settings: + display_label: true + weight: 4 + third_party_settings: { } + title: + type: string_textfield + weight: 0 + settings: + size: 60 + placeholder: '' + third_party_settings: { } + uid: + type: entity_reference_autocomplete + weight: 1 + settings: + match_operator: CONTAINS + size: 60 + placeholder: '' + third_party_settings: { } +hidden: { } diff --git a/config/install/core.entity_view_display.node.courts.default.yml b/config/install/core.entity_view_display.node.courts.default.yml new file mode 100755 index 0000000..93b79a1 --- /dev/null +++ b/config/install/core.entity_view_display.node.courts.default.yml @@ -0,0 +1,140 @@ +langcode: en +status: true +dependencies: + config: + - field.field.node.courts.body + - field.field.node.courts.field_friday_from + - field.field.node.courts.field_friday_to + - field.field.node.courts.field_monday_from + - field.field.node.courts.field_monday_to + - field.field.node.courts.field_saturday_from + - field.field.node.courts.field_saturday_to + - field.field.node.courts.field_sunday_from + - field.field.node.courts.field_sunday_to + - field.field.node.courts.field_thursday_from + - field.field.node.courts.field_thursday_to + - field.field.node.courts.field_tuesday_from + - field.field.node.courts.field_tuesday_to + - field.field.node.courts.field_wednesday_from + - field.field.node.courts.field_wednesday_to + - node.type.courts + module: + - text + - user +_core: + default_config_hash: _UGAVJfb-WuJqyemiSevgdCpgorw16slan6sZSb5RXA +id: node.courts.default +targetEntityType: node +bundle: courts +mode: default +content: + body: + label: hidden + type: text_default + weight: 101 + settings: { } + third_party_settings: { } + field_friday_from: + weight: 110 + label: above + settings: + link_to_entity: false + third_party_settings: { } + type: string + field_friday_to: + weight: 111 + label: above + settings: + link_to_entity: false + third_party_settings: { } + type: string + field_monday_from: + weight: 102 + label: inline + settings: + link_to_entity: false + third_party_settings: { } + type: string + field_monday_to: + weight: 103 + label: inline + settings: + link_to_entity: false + third_party_settings: { } + type: string + field_saturday_from: + weight: 112 + label: above + settings: + link_to_entity: false + third_party_settings: { } + type: string + field_saturday_to: + weight: 113 + label: above + settings: + link_to_entity: false + third_party_settings: { } + type: string + field_sunday_from: + weight: 114 + label: above + settings: + link_to_entity: false + third_party_settings: { } + type: string + field_sunday_to: + weight: 115 + label: above + settings: + link_to_entity: false + third_party_settings: { } + type: string + field_thursday_from: + weight: 108 + label: above + settings: + link_to_entity: false + third_party_settings: { } + type: string + field_thursday_to: + weight: 109 + label: above + settings: + link_to_entity: false + third_party_settings: { } + type: string + field_tuesday_from: + weight: 104 + label: above + settings: + link_to_entity: false + third_party_settings: { } + type: string + field_tuesday_to: + weight: 105 + label: above + settings: + link_to_entity: false + third_party_settings: { } + type: string + field_wednesday_from: + weight: 106 + label: above + settings: + link_to_entity: false + third_party_settings: { } + type: string + field_wednesday_to: + weight: 107 + label: above + settings: + link_to_entity: false + third_party_settings: { } + type: string + links: + weight: 100 + settings: { } + third_party_settings: { } +hidden: + langcode: true diff --git a/config/install/core.entity_view_display.node.courts.teaser.yml b/config/install/core.entity_view_display.node.courts.teaser.yml new file mode 100755 index 0000000..42dfe02 --- /dev/null +++ b/config/install/core.entity_view_display.node.courts.teaser.yml @@ -0,0 +1,56 @@ +langcode: en +status: true +dependencies: + config: + - core.entity_view_mode.node.teaser + - field.field.node.courts.body + - field.field.node.courts.field_friday_from + - field.field.node.courts.field_friday_to + - field.field.node.courts.field_monday_from + - field.field.node.courts.field_monday_to + - field.field.node.courts.field_saturday_from + - field.field.node.courts.field_saturday_to + - field.field.node.courts.field_thursday_from + - field.field.node.courts.field_thursday_to + - field.field.node.courts.field_tuesday_from + - field.field.node.courts.field_tuesday_to + - field.field.node.courts.field_wednesday_from + - field.field.node.courts.field_wednesday_to + - field.field.node.courts.field_sunday_from + - field.field.node.courts.field_sunday_to + - node.type.courts + module: + - text + - user +_core: + default_config_hash: OVs1_O9cmV8L_Co0W3c5mayecpXEJxbZmZosbEXPTso +id: node.courts.teaser +targetEntityType: node +bundle: courts +mode: teaser +content: + body: + label: hidden + type: text_summary_or_trimmed + weight: 101 + settings: + trim_length: 600 + third_party_settings: { } + links: + weight: 100 +hidden: + field_friday_from: true + field_friday_to: true + field_monday_from: true + field_monday_to: true + field_saturday_from: true + field_saturday_to: true + field_thursday_from: true + field_thursday_to: true + field_tuesday_from: true + field_tuesday_to: true + field_wednesday_from: true + field_wednesday_to: true + field_sunday_from: true + field_sunday_to: true + langcode: true diff --git a/config/install/core.entity_view_display.node.reaservations.teaser.yml b/config/install/core.entity_view_display.node.reaservations.teaser.yml new file mode 100755 index 0000000..a33214a --- /dev/null +++ b/config/install/core.entity_view_display.node.reaservations.teaser.yml @@ -0,0 +1,24 @@ +langcode: en +status: true +dependencies: + config: + - core.entity_view_mode.node.teaser + - field.field.node.reservations.field_person_e_mail + - field.field.node.reservations.field_person_name + - field.field.node.reservations.field_person_phone + - field.field.node.reservations.field_reservation_time + - node.type.reservations + module: + - user +id: node.reservations.teaser +targetEntityType: node +bundle: reservations +mode: teaser +content: + links: + weight: 100 +hidden: + field_person_e_mail: true + field_person_name: true + field_person_phone: true + field_reservation_time: true \ No newline at end of file diff --git a/config/install/core.entity_view_display.node.reservations.default.yml b/config/install/core.entity_view_display.node.reservations.default.yml new file mode 100755 index 0000000..ec4bb98 --- /dev/null +++ b/config/install/core.entity_view_display.node.reservations.default.yml @@ -0,0 +1,64 @@ +langcode: en +status: true +dependencies: + config: + - field.field.node.reservations.field_court + - field.field.node.reservations.field_note + - field.field.node.reservations.field_person_e_mail + - field.field.node.reservations.field_person_name + - field.field.node.reservations.field_person_phone + - field.field.node.reservations.field_reservation_time + - node.type.reservations + module: + - datetime + - user +id: node.reservations.default +targetEntityType: node +bundle: reservations +mode: default +content: + field_court: + weight: 5 + label: above + settings: + link: true + third_party_settings: { } + type: entity_reference_label + field_note: + weight: 6 + label: above + settings: { } + third_party_settings: { } + type: basic_string + field_person_e_mail: + weight: 3 + label: above + settings: { } + third_party_settings: { } + type: basic_string + field_person_name: + weight: 1 + label: above + settings: { } + third_party_settings: { } + type: basic_string + field_person_phone: + weight: 2 + label: above + settings: + link_to_entity: false + third_party_settings: { } + type: string + field_reservation_time: + weight: 4 + label: above + settings: + format_type: medium + timezone_override: '' + third_party_settings: { } + type: datetime_default + links: + weight: 0 + settings: { } + third_party_settings: { } +hidden: { } diff --git a/config/install/field.field.node.courts.body.yml b/config/install/field.field.node.courts.body.yml new file mode 100755 index 0000000..5e346a4 --- /dev/null +++ b/config/install/field.field.node.courts.body.yml @@ -0,0 +1,21 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.body + - node.type.courts + module: + - text +id: node.courts.body +field_name: body +entity_type: node +bundle: courts +label: Body +description: '' +required: false +translatable: true +default_value: { } +default_value_callback: '' +settings: + display_summary: true +field_type: text_with_summary \ No newline at end of file diff --git a/config/install/field.field.node.courts.field_friday_from.yml b/config/install/field.field.node.courts.field_friday_from.yml new file mode 100755 index 0000000..06fc781 --- /dev/null +++ b/config/install/field.field.node.courts.field_friday_from.yml @@ -0,0 +1,18 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_friday_from + - node.type.courts +id: node.courts.field_friday_from +field_name: field_friday_from +entity_type: node +bundle: courts +label: Friday +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string \ No newline at end of file diff --git a/config/install/field.field.node.courts.field_friday_to.yml b/config/install/field.field.node.courts.field_friday_to.yml new file mode 100755 index 0000000..08ffe68 --- /dev/null +++ b/config/install/field.field.node.courts.field_friday_to.yml @@ -0,0 +1,18 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_friday_to + - node.type.courts +id: node.courts.field_friday_to +field_name: field_friday_to +entity_type: node +bundle: courts +label: '-' +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string \ No newline at end of file diff --git a/config/install/field.field.node.courts.field_monday_from.yml b/config/install/field.field.node.courts.field_monday_from.yml new file mode 100755 index 0000000..1bc6e70 --- /dev/null +++ b/config/install/field.field.node.courts.field_monday_from.yml @@ -0,0 +1,18 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_monday_from + - node.type.courts +id: node.courts.field_monday_from +field_name: field_monday_from +entity_type: node +bundle: courts +label: Monday +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string \ No newline at end of file diff --git a/config/install/field.field.node.courts.field_monday_to.yml b/config/install/field.field.node.courts.field_monday_to.yml new file mode 100755 index 0000000..bc17ef3 --- /dev/null +++ b/config/install/field.field.node.courts.field_monday_to.yml @@ -0,0 +1,18 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_monday_to + - node.type.courts +id: node.courts.field_monday_to +field_name: field_monday_to +entity_type: node +bundle: courts +label: '-' +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string \ No newline at end of file diff --git a/config/install/field.field.node.courts.field_saturday_from.yml b/config/install/field.field.node.courts.field_saturday_from.yml new file mode 100755 index 0000000..25422a8 --- /dev/null +++ b/config/install/field.field.node.courts.field_saturday_from.yml @@ -0,0 +1,18 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_saturday_from + - node.type.courts +id: node.courts.field_saturday_from +field_name: field_saturday_from +entity_type: node +bundle: courts +label: Saturday +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string \ No newline at end of file diff --git a/config/install/field.field.node.courts.field_saturday_to.yml b/config/install/field.field.node.courts.field_saturday_to.yml new file mode 100755 index 0000000..5ba7b6e --- /dev/null +++ b/config/install/field.field.node.courts.field_saturday_to.yml @@ -0,0 +1,18 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_saturday_to + - node.type.courts +id: node.courts.field_saturday_to +field_name: field_saturday_to +entity_type: node +bundle: courts +label: '-' +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string \ No newline at end of file diff --git a/config/install/field.field.node.courts.field_sunday_from.yml b/config/install/field.field.node.courts.field_sunday_from.yml new file mode 100755 index 0000000..d2e9c60 --- /dev/null +++ b/config/install/field.field.node.courts.field_sunday_from.yml @@ -0,0 +1,18 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_sunday_from + - node.type.courts +id: node.courts.field_sunday_from +field_name: field_sunday_from +entity_type: node +bundle: courts +label: Sunday +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/config/install/field.field.node.courts.field_sunday_to.yml b/config/install/field.field.node.courts.field_sunday_to.yml new file mode 100755 index 0000000..38ee2ea --- /dev/null +++ b/config/install/field.field.node.courts.field_sunday_to.yml @@ -0,0 +1,18 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_sunday_to + - node.type.courts +id: node.courts.field_sunday_to +field_name: field_sunday_to +entity_type: node +bundle: courts +label: '-' +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string \ No newline at end of file diff --git a/config/install/field.field.node.courts.field_thursday_from.yml b/config/install/field.field.node.courts.field_thursday_from.yml new file mode 100755 index 0000000..47f89d1 --- /dev/null +++ b/config/install/field.field.node.courts.field_thursday_from.yml @@ -0,0 +1,18 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_thursday_from + - node.type.courts +id: node.courts.field_thursday_from +field_name: field_thursday_from +entity_type: node +bundle: courts +label: Thursday +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string \ No newline at end of file diff --git a/config/install/field.field.node.courts.field_thursday_to.yml b/config/install/field.field.node.courts.field_thursday_to.yml new file mode 100755 index 0000000..d53bc26 --- /dev/null +++ b/config/install/field.field.node.courts.field_thursday_to.yml @@ -0,0 +1,18 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_thursday_to + - node.type.courts +id: node.courts.field_thursday_to +field_name: field_thursday_to +entity_type: node +bundle: courts +label: '-' +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string \ No newline at end of file diff --git a/config/install/field.field.node.courts.field_tuesday_from.yml b/config/install/field.field.node.courts.field_tuesday_from.yml new file mode 100755 index 0000000..7ae2fdf --- /dev/null +++ b/config/install/field.field.node.courts.field_tuesday_from.yml @@ -0,0 +1,18 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_tuesday_from + - node.type.courts +id: node.courts.field_tuesday_from +field_name: field_tuesday_from +entity_type: node +bundle: courts +label: Tuesday +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string \ No newline at end of file diff --git a/config/install/field.field.node.courts.field_tuesday_to.yml b/config/install/field.field.node.courts.field_tuesday_to.yml new file mode 100755 index 0000000..8649a61 --- /dev/null +++ b/config/install/field.field.node.courts.field_tuesday_to.yml @@ -0,0 +1,18 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_tuesday_to + - node.type.courts +id: node.courts.field_tuesday_to +field_name: field_tuesday_to +entity_type: node +bundle: courts +label: '-' +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string \ No newline at end of file diff --git a/config/install/field.field.node.courts.field_wednesday_from.yml b/config/install/field.field.node.courts.field_wednesday_from.yml new file mode 100755 index 0000000..1562741 --- /dev/null +++ b/config/install/field.field.node.courts.field_wednesday_from.yml @@ -0,0 +1,18 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_wednesday_from + - node.type.courts +id: node.courts.field_wednesday_from +field_name: field_wednesday_from +entity_type: node +bundle: courts +label: Wednesday +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string \ No newline at end of file diff --git a/config/install/field.field.node.courts.field_wednesday_to.yml b/config/install/field.field.node.courts.field_wednesday_to.yml new file mode 100755 index 0000000..c51ac66 --- /dev/null +++ b/config/install/field.field.node.courts.field_wednesday_to.yml @@ -0,0 +1,18 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_wednesday_to + - node.type.courts +id: node.courts.field_wednesday_to +field_name: field_wednesday_to +entity_type: node +bundle: courts +label: '-' +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string \ No newline at end of file diff --git a/config/install/field.field.node.reservations.field_court.yml b/config/install/field.field.node.reservations.field_court.yml new file mode 100755 index 0000000..67cbf37 --- /dev/null +++ b/config/install/field.field.node.reservations.field_court.yml @@ -0,0 +1,27 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_court + - node.type.courts + - node.type.reservations +id: node.reservations.field_court +field_name: field_court +entity_type: node +bundle: reservations +label: Court +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + handler: 'default:node' + handler_settings: + target_bundles: + courts: courts + sort: + field: _none + auto_create: false + auto_create_bundle: '' +field_type: entity_reference \ No newline at end of file diff --git a/config/install/field.field.node.reservations.field_note.yml b/config/install/field.field.node.reservations.field_note.yml new file mode 100755 index 0000000..fead8ac --- /dev/null +++ b/config/install/field.field.node.reservations.field_note.yml @@ -0,0 +1,18 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_note + - node.type.reservations +id: node.reservations.field_note +field_name: field_note +entity_type: node +bundle: reservations +label: Note +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string_long \ No newline at end of file diff --git a/config/install/field.field.node.reservations.field_person_e_mail.yml b/config/install/field.field.node.reservations.field_person_e_mail.yml new file mode 100755 index 0000000..780b384 --- /dev/null +++ b/config/install/field.field.node.reservations.field_person_e_mail.yml @@ -0,0 +1,18 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_person_e_mail + - node.type.reservations +id: node.reservations.field_person_e_mail +field_name: field_person_e_mail +entity_type: node +bundle: reservations +label: 'Person e-mail' +description: '' +required: true +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: email \ No newline at end of file diff --git a/config/install/field.field.node.reservations.field_person_name.yml b/config/install/field.field.node.reservations.field_person_name.yml new file mode 100755 index 0000000..effbe67 --- /dev/null +++ b/config/install/field.field.node.reservations.field_person_name.yml @@ -0,0 +1,18 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_person_name + - node.type.reservations +id: node.reservations.field_person_name +field_name: field_person_name +entity_type: node +bundle: reservations +label: 'Person name' +description: '' +required: true +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string_long diff --git a/config/install/field.field.node.reservations.field_person_phone.yml b/config/install/field.field.node.reservations.field_person_phone.yml new file mode 100755 index 0000000..2d8c62f --- /dev/null +++ b/config/install/field.field.node.reservations.field_person_phone.yml @@ -0,0 +1,18 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_person_phone + - node.type.reservations +id: node.reservations.field_person_phone +field_name: field_person_phone +entity_type: node +bundle: reservations +label: 'Person phone' +description: '' +required: true +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string \ No newline at end of file diff --git a/config/install/field.field.node.reservations.field_reservation_time.yml b/config/install/field.field.node.reservations.field_reservation_time.yml new file mode 100755 index 0000000..f1d4c31 --- /dev/null +++ b/config/install/field.field.node.reservations.field_reservation_time.yml @@ -0,0 +1,20 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_reservation_time + - node.type.reservations + module: + - datetime +id: node.reservations.field_reservation_time +field_name: field_reservation_time +entity_type: node +bundle: reservations +label: 'Reservation time' +description: '' +required: true +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: datetime \ No newline at end of file diff --git a/config/install/field.storage.node.field_court.yml b/config/install/field.storage.node.field_court.yml new file mode 100755 index 0000000..faea68c --- /dev/null +++ b/config/install/field.storage.node.field_court.yml @@ -0,0 +1,18 @@ +langcode: en +status: true +dependencies: + module: + - node +id: node.field_court +field_name: field_court +entity_type: node +type: entity_reference +settings: + target_type: node +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false \ No newline at end of file diff --git a/config/install/field.storage.node.field_friday_from.yml b/config/install/field.storage.node.field_friday_from.yml new file mode 100755 index 0000000..58d98ca --- /dev/null +++ b/config/install/field.storage.node.field_friday_from.yml @@ -0,0 +1,20 @@ +langcode: en +status: true +dependencies: + module: + - node +id: node.field_friday_from +field_name: field_friday_from +entity_type: node +type: string +settings: + max_length: 5 + is_ascii: false + case_sensitive: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/install/field.storage.node.field_friday_to.yml b/config/install/field.storage.node.field_friday_to.yml new file mode 100755 index 0000000..852626c --- /dev/null +++ b/config/install/field.storage.node.field_friday_to.yml @@ -0,0 +1,20 @@ +langcode: en +status: true +dependencies: + module: + - node +id: node.field_friday_to +field_name: field_friday_to +entity_type: node +type: string +settings: + max_length: 5 + is_ascii: false + case_sensitive: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false \ No newline at end of file diff --git a/config/install/field.storage.node.field_monday_from.yml b/config/install/field.storage.node.field_monday_from.yml new file mode 100755 index 0000000..3ebc789 --- /dev/null +++ b/config/install/field.storage.node.field_monday_from.yml @@ -0,0 +1,20 @@ +langcode: en +status: true +dependencies: + module: + - node +id: node.field_monday_from +field_name: field_monday_from +entity_type: node +type: string +settings: + max_length: 5 + is_ascii: false + case_sensitive: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false \ No newline at end of file diff --git a/config/install/field.storage.node.field_monday_to.yml b/config/install/field.storage.node.field_monday_to.yml new file mode 100755 index 0000000..a25351b --- /dev/null +++ b/config/install/field.storage.node.field_monday_to.yml @@ -0,0 +1,20 @@ +langcode: en +status: true +dependencies: + module: + - node +id: node.field_monday_to +field_name: field_monday_to +entity_type: node +type: string +settings: + max_length: 5 + is_ascii: false + case_sensitive: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false \ No newline at end of file diff --git a/config/install/field.storage.node.field_note.yml b/config/install/field.storage.node.field_note.yml new file mode 100755 index 0000000..ee4e821 --- /dev/null +++ b/config/install/field.storage.node.field_note.yml @@ -0,0 +1,18 @@ +langcode: en +status: true +dependencies: + module: + - node +id: node.field_note +field_name: field_note +entity_type: node +type: string_long +settings: + case_sensitive: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false \ No newline at end of file diff --git a/config/install/field.storage.node.field_person_e_mail.yml b/config/install/field.storage.node.field_person_e_mail.yml new file mode 100755 index 0000000..6256e05 --- /dev/null +++ b/config/install/field.storage.node.field_person_e_mail.yml @@ -0,0 +1,17 @@ +langcode: en +status: true +dependencies: + module: + - node +id: node.field_person_e_mail +field_name: field_person_e_mail +entity_type: node +type: email +settings: { } +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false \ No newline at end of file diff --git a/config/install/field.storage.node.field_person_name.yml b/config/install/field.storage.node.field_person_name.yml new file mode 100755 index 0000000..264da34 --- /dev/null +++ b/config/install/field.storage.node.field_person_name.yml @@ -0,0 +1,18 @@ +langcode: en +status: true +dependencies: + module: + - node +id: node.field_person_name +field_name: field_person_name +entity_type: node +type: string_long +settings: + case_sensitive: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false \ No newline at end of file diff --git a/config/install/field.storage.node.field_person_phone.yml b/config/install/field.storage.node.field_person_phone.yml new file mode 100755 index 0000000..5737781 --- /dev/null +++ b/config/install/field.storage.node.field_person_phone.yml @@ -0,0 +1,20 @@ +langcode: en +status: true +dependencies: + module: + - node +id: node.field_person_phone +field_name: field_person_phone +entity_type: node +type: string +settings: + max_length: 15 + is_ascii: false + case_sensitive: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false \ No newline at end of file diff --git a/config/install/field.storage.node.field_reservation_time.yml b/config/install/field.storage.node.field_reservation_time.yml new file mode 100755 index 0000000..743628f --- /dev/null +++ b/config/install/field.storage.node.field_reservation_time.yml @@ -0,0 +1,19 @@ +langcode: en +status: true +dependencies: + module: + - datetime + - node +id: node.field_reservation_time +field_name: field_reservation_time +entity_type: node +type: datetime +settings: + datetime_type: datetime +module: datetime +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false \ No newline at end of file diff --git a/config/install/field.storage.node.field_saturday_from.yml b/config/install/field.storage.node.field_saturday_from.yml new file mode 100755 index 0000000..b704583 --- /dev/null +++ b/config/install/field.storage.node.field_saturday_from.yml @@ -0,0 +1,20 @@ +langcode: en +status: true +dependencies: + module: + - node +id: node.field_saturday_from +field_name: field_saturday_from +entity_type: node +type: string +settings: + max_length: 5 + is_ascii: false + case_sensitive: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false \ No newline at end of file diff --git a/config/install/field.storage.node.field_saturday_to.yml b/config/install/field.storage.node.field_saturday_to.yml new file mode 100755 index 0000000..7cc1ce5 --- /dev/null +++ b/config/install/field.storage.node.field_saturday_to.yml @@ -0,0 +1,20 @@ +langcode: en +status: true +dependencies: + module: + - node +id: node.field_saturday_to +field_name: field_saturday_to +entity_type: node +type: string +settings: + max_length: 5 + is_ascii: false + case_sensitive: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false \ No newline at end of file diff --git a/config/install/field.storage.node.field_sunday_from.yml b/config/install/field.storage.node.field_sunday_from.yml new file mode 100755 index 0000000..2549857 --- /dev/null +++ b/config/install/field.storage.node.field_sunday_from.yml @@ -0,0 +1,20 @@ +langcode: en +status: true +dependencies: + module: + - node +id: node.field_sunday_from +field_name: field_sunday_from +entity_type: node +type: string +settings: + max_length: 5 + is_ascii: false + case_sensitive: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false \ No newline at end of file diff --git a/config/install/field.storage.node.field_sunday_to.yml b/config/install/field.storage.node.field_sunday_to.yml new file mode 100755 index 0000000..bee608b --- /dev/null +++ b/config/install/field.storage.node.field_sunday_to.yml @@ -0,0 +1,20 @@ +langcode: en +status: true +dependencies: + module: + - node +id: node.field_sunday_to +field_name: field_sunday_to +entity_type: node +type: string +settings: + max_length: 5 + is_ascii: false + case_sensitive: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false \ No newline at end of file diff --git a/config/install/field.storage.node.field_thursday_from.yml b/config/install/field.storage.node.field_thursday_from.yml new file mode 100755 index 0000000..0eea39b --- /dev/null +++ b/config/install/field.storage.node.field_thursday_from.yml @@ -0,0 +1,20 @@ +langcode: en +status: true +dependencies: + module: + - node +id: node.field_thursday_from +field_name: field_thursday_from +entity_type: node +type: string +settings: + max_length: 5 + is_ascii: false + case_sensitive: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false \ No newline at end of file diff --git a/config/install/field.storage.node.field_thursday_to.yml b/config/install/field.storage.node.field_thursday_to.yml new file mode 100755 index 0000000..9a0e0fa --- /dev/null +++ b/config/install/field.storage.node.field_thursday_to.yml @@ -0,0 +1,20 @@ +langcode: en +status: true +dependencies: + module: + - node +id: node.field_thursday_to +field_name: field_thursday_to +entity_type: node +type: string +settings: + max_length: 5 + is_ascii: false + case_sensitive: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false \ No newline at end of file diff --git a/config/install/field.storage.node.field_tuesday_from.yml b/config/install/field.storage.node.field_tuesday_from.yml new file mode 100755 index 0000000..f4778d7 --- /dev/null +++ b/config/install/field.storage.node.field_tuesday_from.yml @@ -0,0 +1,20 @@ +langcode: en +status: true +dependencies: + module: + - node +id: node.field_tuesday_from +field_name: field_tuesday_from +entity_type: node +type: string +settings: + max_length: 5 + is_ascii: false + case_sensitive: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/install/field.storage.node.field_tuesday_to.yml b/config/install/field.storage.node.field_tuesday_to.yml new file mode 100755 index 0000000..047f91e --- /dev/null +++ b/config/install/field.storage.node.field_tuesday_to.yml @@ -0,0 +1,20 @@ +langcode: en +status: true +dependencies: + module: + - node +id: node.field_tuesday_to +field_name: field_tuesday_to +entity_type: node +type: string +settings: + max_length: 5 + is_ascii: false + case_sensitive: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/install/field.storage.node.field_wednesday_from.yml b/config/install/field.storage.node.field_wednesday_from.yml new file mode 100755 index 0000000..f7500e4 --- /dev/null +++ b/config/install/field.storage.node.field_wednesday_from.yml @@ -0,0 +1,20 @@ +langcode: en +status: true +dependencies: + module: + - node +id: node.field_wednesday_from +field_name: field_wednesday_from +entity_type: node +type: string +settings: + max_length: 5 + is_ascii: false + case_sensitive: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false \ No newline at end of file diff --git a/config/install/field.storage.node.field_wednesday_to.yml b/config/install/field.storage.node.field_wednesday_to.yml new file mode 100755 index 0000000..ea1c0e1 --- /dev/null +++ b/config/install/field.storage.node.field_wednesday_to.yml @@ -0,0 +1,20 @@ +langcode: en +status: true +dependencies: + module: + - node +id: node.field_wednesday_to +field_name: field_wednesday_to +entity_type: node +type: string +settings: + max_length: 5 + is_ascii: false + case_sensitive: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false \ No newline at end of file diff --git a/config/install/node.type.courts.yml b/config/install/node.type.courts.yml new file mode 100755 index 0000000..8bdf028 --- /dev/null +++ b/config/install/node.type.courts.yml @@ -0,0 +1,17 @@ +langcode: en +status: true +dependencies: + module: + - menu_ui +third_party_settings: + menu_ui: + available_menus: + - main + parent: 'main:' +name: Courts +type: courts +description: '' +help: '' +new_revision: false +preview_mode: 1 +display_submitted: false \ No newline at end of file diff --git a/config/install/node.type.reservations.yml b/config/install/node.type.reservations.yml new file mode 100755 index 0000000..4cde2e8 --- /dev/null +++ b/config/install/node.type.reservations.yml @@ -0,0 +1,17 @@ +langcode: en +status: true +dependencies: + module: + - menu_ui +third_party_settings: + menu_ui: + available_menus: + - main + parent: 'main:' +name: Reservations +type: reservations +description: 'Reservation system' +help: 'If install this module, users can make reservations on your web site.' +new_revision: false +preview_mode: 1 +display_submitted: false diff --git a/config/install/views.view.reservations.yml b/config/install/views.view.reservations.yml new file mode 100755 index 0000000..da76ba2 --- /dev/null +++ b/config/install/views.view.reservations.yml @@ -0,0 +1,1011 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_court + - field.storage.node.field_person_e_mail + - field.storage.node.field_person_phone + - field.storage.node.field_reservation_time + - node.type.reservations + - system.menu.admin + module: + - datetime + - node + - user +_core: + default_config_hash: I5y79PRTxF4Y8vH_lI4SvQxB2yRySvlL-UKjIeDUH4U +id: reservations +label: Reservations +module: node +description: 'Manage reservations' +tag: default +base_table: node_field_data +base_field: nid +core: 8.x +display: + default: + display_options: + access: + type: perm + options: + perm: 'access content overview' + cache: + type: tag + query: + type: views_query + exposed_form: + type: basic + options: + submit_button: Filter + reset_button: true + reset_button_label: Reset + exposed_sorts_label: 'Sort by' + expose_sort_order: true + sort_asc_label: Asc + sort_desc_label: Desc + pager: + type: full + options: + items_per_page: 20 + offset: 0 + id: 0 + total_pages: null + tags: + previous: '‹ Previous' + next: 'Next ›' + first: '« First' + last: 'Last »' + expose: + items_per_page: true + items_per_page_label: 'Items per page' + items_per_page_options: '5, 10, 20, 50' + items_per_page_options_all: true + items_per_page_options_all_label: '- All -' + offset: false + offset_label: Offset + quantity: 9 + style: + type: table + options: + grouping: { } + row_class: '' + default_row_class: true + override: true + sticky: true + caption: '' + summary: '' + description: '' + columns: + node_bulk_form: node_bulk_form + title: title + field_reservation_time: field_reservation_time + field_person_phone: field_person_phone + field_person_e_mail: field_person_e_mail + field_court: field_court + name: name + status: status + changed: changed + operations: operations + info: + node_bulk_form: + align: '' + separator: '' + empty_column: false + responsive: '' + title: + sortable: true + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + field_reservation_time: + sortable: true + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + field_person_phone: + sortable: true + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + field_person_e_mail: + sortable: true + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + field_court: + sortable: true + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + name: + sortable: true + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: priority-low + status: + sortable: true + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + changed: + sortable: true + default_sort_order: desc + align: '' + separator: '' + empty_column: false + responsive: priority-low + operations: + align: '' + separator: '' + empty_column: false + responsive: '' + default: changed + empty_table: true + row: + type: fields + fields: + node_bulk_form: + id: node_bulk_form + table: node + field: node_bulk_form + label: '' + exclude: false + alter: + alter_text: false + element_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + plugin_id: node_bulk_form + entity_type: node + title: + id: title + table: node_field_data + field: title + relationship: none + group_type: group + admin_label: '' + label: Name + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: string + settings: + link_to_entity: false + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + entity_type: node + entity_field: title + plugin_id: field + field_reservation_time: + id: field_reservation_time + table: node__field_reservation_time + field: field_reservation_time + relationship: none + group_type: group + admin_label: '' + label: Date/time + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: datetime_default + settings: + timezone_override: '' + format_type: custom_date_time + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + plugin_id: field + field_person_phone: + id: field_person_phone + table: node__field_person_phone + field: field_person_phone + relationship: none + group_type: group + admin_label: '' + label: Phone + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: string + settings: + link_to_entity: false + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + plugin_id: field + field_person_e_mail: + id: field_person_e_mail + table: node__field_person_e_mail + field: field_person_e_mail + relationship: none + group_type: group + admin_label: '' + label: E-mail + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: basic_string + settings: { } + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + plugin_id: field + field_court: + id: field_court + table: node__field_court + field: field_court + relationship: none + group_type: group + admin_label: '' + label: Court + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: target_id + type: entity_reference_label + settings: + link: true + group_column: target_id + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + plugin_id: field + name: + id: name + table: users_field_data + field: name + relationship: uid + group_type: group + admin_label: '' + label: Author + exclude: true + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: user_name + settings: + link_to_entity: true + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + plugin_id: field + entity_type: user + entity_field: name + status: + id: status + table: node_field_data + field: status + relationship: none + group_type: group + admin_label: '' + label: Status + exclude: true + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: boolean + settings: + format: custom + format_custom_true: Published + format_custom_false: Unpublished + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + plugin_id: field + entity_type: node + entity_field: status + changed: + id: changed + table: node_field_data + field: changed + relationship: none + group_type: group + admin_label: '' + label: Updated + exclude: true + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: timestamp + settings: + date_format: short + custom_date_format: '' + timezone: '' + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + plugin_id: field + entity_type: node + entity_field: changed + operations: + id: operations + table: node + field: operations + relationship: none + group_type: group + admin_label: '' + label: Operations + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + destination: true + plugin_id: entity_operations + filters: + status: + id: status + table: node_field_data + field: status + relationship: none + group_type: group + admin_label: '' + operator: '=' + value: '1' + group: 1 + exposed: false + expose: + operator_id: '' + label: Status + description: '' + use_operator: false + operator: status_op + identifier: status + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + is_grouped: true + group_info: + label: 'Published status' + description: '' + identifier: status + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: + 1: + title: Published + operator: '=' + value: '1' + 2: + title: Unpublished + operator: '=' + value: '0' + 3: { } + plugin_id: boolean + entity_type: node + entity_field: status + type: + id: type + table: node_field_data + field: type + relationship: none + group_type: group + admin_label: '' + operator: in + value: + reservations: reservations + group: 1 + exposed: false + expose: + operator_id: type_op + label: 'Content type' + description: '' + use_operator: false + operator: type_op + identifier: type + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + anonymous: '0' + administrator: '0' + players: '0' + reduce: false + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + plugin_id: bundle + entity_type: node + entity_field: type + title: + id: title + table: node_field_data + field: title + relationship: none + group_type: group + admin_label: '' + operator: contains + value: '' + group: 1 + exposed: true + expose: + operator_id: title_op + label: Name + description: '' + use_operator: false + operator: title_op + identifier: title + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + anonymous: '0' + administrator: '0' + players: '0' + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + plugin_id: string + entity_type: node + entity_field: title + langcode: + id: langcode + table: node_field_data + field: langcode + relationship: none + group_type: group + admin_label: '' + operator: in + value: + '***LANGUAGE_language_interface***': '***LANGUAGE_language_interface***' + group: 1 + exposed: false + expose: + operator_id: langcode_op + label: Language + description: '' + use_operator: false + operator: langcode_op + identifier: langcode + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + anonymous: '0' + administrator: '0' + reduce: false + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + plugin_id: language + entity_type: node + entity_field: langcode + sorts: + field_reservation_time_value: + id: field_reservation_time_value + table: node__field_reservation_time + field: field_reservation_time_value + relationship: none + group_type: group + admin_label: '' + order: DESC + exposed: false + expose: + label: '' + granularity: second + plugin_id: datetime + title: Reservations + empty: + area_text_custom: + id: area_text_custom + table: views + field: area_text_custom + empty: true + content: 'No content available.' + plugin_id: text_custom + arguments: { } + relationships: + uid: + id: uid + table: node_field_data + field: uid + admin_label: author + required: true + plugin_id: standard + show_admin_links: false + filter_groups: + operator: AND + groups: + 1: AND + display_extenders: { } + header: { } + use_ajax: true + display_plugin: default + display_title: Master + id: default + position: 0 + cache_metadata: + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + - url.query_args + - 'user.node_grants:view' + - user.permissions + max-age: 0 + tags: + - 'config:field.storage.node.field_court' + - 'config:field.storage.node.field_person_e_mail' + - 'config:field.storage.node.field_person_phone' + - 'config:field.storage.node.field_reservation_time' + page_1: + display_options: + path: admin/reservations + menu: + type: normal + title: Reservation + description: 'Manage reservations' + expanded: true + parent: system.admin + weight: -9 + context: '0' + menu_name: admin + tab_options: + type: normal + title: Reservations + description: 'Manage reservations' + weight: -10 + display_extenders: { } + exposed_block: false + display_plugin: page + display_title: Page + id: page_1 + position: 1 + cache_metadata: + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + - url.query_args + - 'user.node_grants:view' + - user.permissions + max-age: 0 + tags: + - 'config:field.storage.node.field_court' + - 'config:field.storage.node.field_person_e_mail' + - 'config:field.storage.node.field_person_phone' + - 'config:field.storage.node.field_reservation_time' diff --git a/css/jquery.datetimepicker.min.css b/css/jquery.datetimepicker.min.css new file mode 100755 index 0000000..e3e02e2 --- /dev/null +++ b/css/jquery.datetimepicker.min.css @@ -0,0 +1 @@ +.xdsoft_datetimepicker{box-shadow:0 5px 15px -5px rgba(0,0,0,0.506);background:#fff;border-bottom:1px solid #bbb;border-left:1px solid #ccc;border-right:1px solid #ccc;border-top:1px solid #ccc;color:#333;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;padding:8px;padding-left:0;padding-top:2px;position:absolute;z-index:9999;-moz-box-sizing:border-box;box-sizing:border-box;display:none}.xdsoft_datetimepicker.xdsoft_rtl{padding:8px 0 8px 8px}.xdsoft_datetimepicker iframe{position:absolute;left:0;top:0;width:75px;height:210px;background:transparent;border:0}.xdsoft_datetimepicker button{border:none !important}.xdsoft_noselect{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.xdsoft_noselect::selection{background:transparent}.xdsoft_noselect::-moz-selection{background:transparent}.xdsoft_datetimepicker.xdsoft_inline{display:inline-block;position:static;box-shadow:none}.xdsoft_datetimepicker *{-moz-box-sizing:border-box;box-sizing:border-box;padding:0;margin:0}.xdsoft_datetimepicker .xdsoft_datepicker,.xdsoft_datetimepicker .xdsoft_timepicker{display:none}.xdsoft_datetimepicker .xdsoft_datepicker.active,.xdsoft_datetimepicker .xdsoft_timepicker.active{display:block}.xdsoft_datetimepicker .xdsoft_datepicker{width:224px;float:left;margin-left:8px}.xdsoft_datetimepicker.xdsoft_rtl .xdsoft_datepicker{float:right;margin-right:8px;margin-left:0}.xdsoft_datetimepicker.xdsoft_showweeks .xdsoft_datepicker{width:256px}.xdsoft_datetimepicker .xdsoft_timepicker{width:58px;float:left;text-align:center;margin-left:8px;margin-top:0}.xdsoft_datetimepicker.xdsoft_rtl .xdsoft_timepicker{float:right;margin-right:8px;margin-left:0}.xdsoft_datetimepicker .xdsoft_datepicker.active+.xdsoft_timepicker{margin-top:8px;margin-bottom:3px}.xdsoft_datetimepicker .xdsoft_monthpicker{position:relative;text-align:center}.xdsoft_datetimepicker .xdsoft_label i,.xdsoft_datetimepicker .xdsoft_prev,.xdsoft_datetimepicker .xdsoft_next,.xdsoft_datetimepicker .xdsoft_today_button{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAAeCAYAAADaW7vzAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6Q0NBRjI1NjM0M0UwMTFFNDk4NkFGMzJFQkQzQjEwRUIiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6Q0NBRjI1NjQ0M0UwMTFFNDk4NkFGMzJFQkQzQjEwRUIiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpDQ0FGMjU2MTQzRTAxMUU0OTg2QUYzMkVCRDNCMTBFQiIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpDQ0FGMjU2MjQzRTAxMUU0OTg2QUYzMkVCRDNCMTBFQiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PoNEP54AAAIOSURBVHja7Jq9TsMwEMcxrZD4WpBYeKUCe+kTMCACHZh4BFfHO/AAIHZGFhYkBBsSEqxsLCAgXKhbXYOTxh9pfJVP+qutnZ5s/5Lz2Y5I03QhWji2GIcgAokWgfCxNvcOCCGKqiSqhUp0laHOne05vdEyGMfkdxJDVjgwDlEQgYQBgx+ULJaWSXXS6r/ER5FBVR8VfGftTKcITNs+a1XpcFoExREIDF14AVIFxgQUS+h520cdud6wNkC0UBw6BCO/HoCYwBhD8QCkQ/x1mwDyD4plh4D6DDV0TAGyo4HcawLIBBSLDkHeH0Mg2yVP3l4TQMZQDDsEOl/MgHQqhMNuE0D+oBh0CIr8MAKyazBH9WyBuKxDWgbXfjNf32TZ1KWm/Ap1oSk/R53UtQ5xTh3LUlMmT8gt6g51Q9p+SobxgJQ/qmsfZhWywGFSl0yBjCLJCMgXail3b7+rumdVJ2YRss4cN+r6qAHDkPWjPjdJCF4n9RmAD/V9A/Wp4NQassDjwlB6XBiCxcJQWmZZb8THFilfy/lfrTvLghq2TqTHrRMTKNJ0sIhdo15RT+RpyWwFdY96UZ/LdQKBGjcXpcc1AlSFEfLmouD+1knuxBDUVrvOBmoOC/rEcN7OQxKVeJTCiAdUzUJhA2Oez9QTkp72OTVcxDcXY8iKNkxGAJXmJCOQwOa6dhyXsOa6XwEGAKdeb5ET3rQdAAAAAElFTkSuQmCC)}.xdsoft_datetimepicker .xdsoft_label i{opacity:.5;background-position:-92px -19px;display:inline-block;width:9px;height:20px;vertical-align:middle}.xdsoft_datetimepicker .xdsoft_prev{float:left;background-position:-20px 0}.xdsoft_datetimepicker .xdsoft_today_button{float:left;background-position:-70px 0;margin-left:5px}.xdsoft_datetimepicker .xdsoft_next{float:right;background-position:0 0}.xdsoft_datetimepicker .xdsoft_next,.xdsoft_datetimepicker .xdsoft_prev,.xdsoft_datetimepicker .xdsoft_today_button{background-color:transparent;background-repeat:no-repeat;border:0 none;cursor:pointer;display:block;height:30px;opacity:.5;-ms-filter:"alpha(opacity=50)";outline:medium none;overflow:hidden;padding:0;position:relative;text-indent:100%;white-space:nowrap;width:20px;min-width:0}.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_prev,.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_next{float:none;background-position:-40px -15px;height:15px;width:30px;display:block;margin-left:14px;margin-top:7px}.xdsoft_datetimepicker.xdsoft_rtl .xdsoft_timepicker .xdsoft_prev,.xdsoft_datetimepicker.xdsoft_rtl .xdsoft_timepicker .xdsoft_next{float:none;margin-left:0;margin-right:14px}.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_prev{background-position:-40px 0;margin-bottom:7px;margin-top:0}.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box{height:151px;overflow:hidden;border-bottom:1px solid #ddd}.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box>div>div{background:#f5f5f5;border-top:1px solid #ddd;color:#666;font-size:12px;text-align:center;border-collapse:collapse;cursor:pointer;border-bottom-width:0;height:25px;line-height:25px}.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box>div>div:first-child{border-top-width:0}.xdsoft_datetimepicker .xdsoft_today_button:hover,.xdsoft_datetimepicker .xdsoft_next:hover,.xdsoft_datetimepicker .xdsoft_prev:hover{opacity:1;-ms-filter:"alpha(opacity=100)"}.xdsoft_datetimepicker .xdsoft_label{display:inline;position:relative;z-index:9999;margin:0;padding:5px 3px;font-size:14px;line-height:20px;font-weight:bold;background-color:#fff;float:left;width:182px;text-align:center;cursor:pointer}.xdsoft_datetimepicker .xdsoft_label:hover>span{text-decoration:underline}.xdsoft_datetimepicker .xdsoft_label:hover i{opacity:1.0}.xdsoft_datetimepicker .xdsoft_label>.xdsoft_select{border:1px solid #ccc;position:absolute;right:0;top:30px;z-index:101;display:none;background:#fff;max-height:160px;overflow-y:hidden}.xdsoft_datetimepicker .xdsoft_label>.xdsoft_select.xdsoft_monthselect{right:-7px}.xdsoft_datetimepicker .xdsoft_label>.xdsoft_select.xdsoft_yearselect{right:2px}.xdsoft_datetimepicker .xdsoft_label>.xdsoft_select>div>.xdsoft_option:hover{color:#fff;background:#ff8000}.xdsoft_datetimepicker .xdsoft_label>.xdsoft_select>div>.xdsoft_option{padding:2px 10px 2px 5px;text-decoration:none !important}.xdsoft_datetimepicker .xdsoft_label>.xdsoft_select>div>.xdsoft_option.xdsoft_current{background:#3af;box-shadow:#178fe5 0 1px 3px 0 inset;color:#fff;font-weight:700}.xdsoft_datetimepicker .xdsoft_month{width:100px;text-align:right}.xdsoft_datetimepicker .xdsoft_calendar{clear:both}.xdsoft_datetimepicker .xdsoft_year{width:48px;margin-left:5px}.xdsoft_datetimepicker .xdsoft_calendar table{border-collapse:collapse;width:100%}.xdsoft_datetimepicker .xdsoft_calendar td>div{padding-right:5px}.xdsoft_datetimepicker .xdsoft_calendar th{height:25px}.xdsoft_datetimepicker .xdsoft_calendar td,.xdsoft_datetimepicker .xdsoft_calendar th{width:14.2857142%;background:#f5f5f5;border:1px solid #ddd;color:#666;font-size:12px;text-align:right;vertical-align:middle;padding:0;border-collapse:collapse;cursor:pointer;height:25px}.xdsoft_datetimepicker.xdsoft_showweeks .xdsoft_calendar td,.xdsoft_datetimepicker.xdsoft_showweeks .xdsoft_calendar th{width:12.5%}.xdsoft_datetimepicker .xdsoft_calendar th{background:#f1f1f1}.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_today{color:#3af}.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_highlighted_default{background:#ffe9d2;box-shadow:#ffb871 0 1px 4px 0 inset;color:#000}.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_highlighted_mint{background:#c1ffc9;box-shadow:#00dd1c 0 1px 4px 0 inset;color:#000}.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_default,.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current,.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box>div>div.xdsoft_current{background:#3af;box-shadow:#178fe5 0 1px 3px 0 inset;color:#fff;font-weight:700}.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_other_month,.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_disabled,.xdsoft_datetimepicker .xdsoft_time_box>div>div.xdsoft_disabled{opacity:.5;-ms-filter:"alpha(opacity=50)";cursor:default}.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_other_month.xdsoft_disabled{opacity:.2;-ms-filter:"alpha(opacity=20)"}.xdsoft_datetimepicker .xdsoft_calendar td:hover,.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box>div>div:hover{color:#fff !important;background:#ff8000 !important;box-shadow:none !important}.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current.xdsoft_disabled:hover,.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box>div>div.xdsoft_current.xdsoft_disabled:hover{background:#3af !important;box-shadow:#178fe5 0 1px 3px 0 inset !important;color:#fff !important}.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_disabled:hover,.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box>div>div.xdsoft_disabled:hover{color:inherit !important;background:inherit !important;box-shadow:inherit !important}.xdsoft_datetimepicker .xdsoft_calendar th{font-weight:700;text-align:center;color:#999;cursor:default}.xdsoft_datetimepicker .xdsoft_copyright{color:#ccc !important;font-size:10px;clear:both;float:none;margin-left:8px}.xdsoft_datetimepicker .xdsoft_copyright a{color:#eee !important}.xdsoft_datetimepicker .xdsoft_copyright a:hover{color:#aaa !important}.xdsoft_time_box{position:relative;border:1px solid #ccc}.xdsoft_scrollbar>.xdsoft_scroller{background:#ccc !important;height:20px;border-radius:3px}.xdsoft_scrollbar{position:absolute;width:7px;right:0;top:0;bottom:0;cursor:pointer}.xdsoft_datetimepicker.xdsoft_rtl .xdsoft_scrollbar{left:0;right:auto}.xdsoft_scroller_box{position:relative}.xdsoft_datetimepicker.xdsoft_dark{box-shadow:0 5px 15px -5px rgba(255,255,255,0.506);background:#000;border-bottom:1px solid #444;border-left:1px solid #333;border-right:1px solid #333;border-top:1px solid #333;color:#ccc}.xdsoft_datetimepicker.xdsoft_dark .xdsoft_timepicker .xdsoft_time_box{border-bottom:1px solid #222}.xdsoft_datetimepicker.xdsoft_dark .xdsoft_timepicker .xdsoft_time_box>div>div{background:#0a0a0a;border-top:1px solid #222;color:#999}.xdsoft_datetimepicker.xdsoft_dark .xdsoft_label{background-color:#000}.xdsoft_datetimepicker.xdsoft_dark .xdsoft_label>.xdsoft_select{border:1px solid #333;background:#000}.xdsoft_datetimepicker.xdsoft_dark .xdsoft_label>.xdsoft_select>div>.xdsoft_option:hover{color:#000;background:#007fff}.xdsoft_datetimepicker.xdsoft_dark .xdsoft_label>.xdsoft_select>div>.xdsoft_option.xdsoft_current{background:#c50;box-shadow:#b03e00 0 1px 3px 0 inset;color:#000}.xdsoft_datetimepicker.xdsoft_dark .xdsoft_label i,.xdsoft_datetimepicker.xdsoft_dark .xdsoft_prev,.xdsoft_datetimepicker.xdsoft_dark .xdsoft_next,.xdsoft_datetimepicker.xdsoft_dark .xdsoft_today_button{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAAeCAYAAADaW7vzAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6QUExQUUzOTA0M0UyMTFFNDlBM0FFQTJENTExRDVBODYiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6QUExQUUzOTE0M0UyMTFFNDlBM0FFQTJENTExRDVBODYiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpBQTFBRTM4RTQzRTIxMUU0OUEzQUVBMkQ1MTFENUE4NiIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpBQTFBRTM4RjQzRTIxMUU0OUEzQUVBMkQ1MTFENUE4NiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pp0VxGEAAAIASURBVHja7JrNSgMxEMebtgh+3MSLr1T1Xn2CHoSKB08+QmR8Bx9A8e7RixdB9CKCoNdexIugxFlJa7rNZneTbLIpM/CnNLsdMvNjM8l0mRCiQ9Ye61IKCAgZAUnH+mU3MMZaHYChBnJUDzWOFZdVfc5+ZFLbrWDeXPwbxIqrLLfaeS0hEBVGIRQCEiZoHQwtlGSByCCdYBl8g8egTTAWoKQMRBRBcZxYlhzhKegqMOageErsCHVkk3hXIFooDgHB1KkHIHVgzKB4ADJQ/A1jAFmAYhkQqA5TOBtocrKrgXwQA8gcFIuAIO8sQSA7hidvPwaQGZSaAYHOUWJABhWWw2EMIH9QagQERU4SArJXo0ZZL18uvaxejXt/Em8xjVBXmvFr1KVm/AJ10tRe2XnraNqaJvKE3KHuUbfK1E+VHB0q40/y3sdQSxY4FHWeKJCunP8UyDdqJZenT3ntVV5jIYCAh20vT7ioP8tpf6E2lfEMwERe+whV1MHjwZB7PBiCxcGQWwKZKD62lfGNnP/1poFAA60T7rF1UgcKd2id3KDeUS+oLWV8DfWAepOfq00CgQabi9zjcgJVYVD7PVzQUAUGAQkbNJTBICDhgwYTjDYD6XeW08ZKh+A4pYkzenOxXUbvZcWz7E8ykRMnIHGX1XPl+1m2vPYpL+2qdb8CDAARlKFEz/ZVkAAAAABJRU5ErkJggg==)}.xdsoft_datetimepicker.xdsoft_dark .xdsoft_calendar td,.xdsoft_datetimepicker.xdsoft_dark .xdsoft_calendar th{background:#0a0a0a;border:1px solid #222;color:#999}.xdsoft_datetimepicker.xdsoft_dark .xdsoft_calendar th{background:#0e0e0e}.xdsoft_datetimepicker.xdsoft_dark .xdsoft_calendar td.xdsoft_today{color:#c50}.xdsoft_datetimepicker.xdsoft_dark .xdsoft_calendar td.xdsoft_highlighted_default{background:#ffe9d2;box-shadow:#ffb871 0 1px 4px 0 inset;color:#000}.xdsoft_datetimepicker.xdsoft_dark .xdsoft_calendar td.xdsoft_highlighted_mint{background:#c1ffc9;box-shadow:#00dd1c 0 1px 4px 0 inset;color:#000}.xdsoft_datetimepicker.xdsoft_dark .xdsoft_calendar td.xdsoft_default,.xdsoft_datetimepicker.xdsoft_dark .xdsoft_calendar td.xdsoft_current,.xdsoft_datetimepicker.xdsoft_dark .xdsoft_timepicker .xdsoft_time_box>div>div.xdsoft_current{background:#c50;box-shadow:#b03e00 0 1px 3px 0 inset;color:#000}.xdsoft_datetimepicker.xdsoft_dark .xdsoft_calendar td:hover,.xdsoft_datetimepicker.xdsoft_dark .xdsoft_timepicker .xdsoft_time_box>div>div:hover{color:#000 !important;background:#007fff !important}.xdsoft_datetimepicker.xdsoft_dark .xdsoft_calendar th{color:#666}.xdsoft_datetimepicker.xdsoft_dark .xdsoft_copyright{color:#333 !important}.xdsoft_datetimepicker.xdsoft_dark .xdsoft_copyright a{color:#111 !important}.xdsoft_datetimepicker.xdsoft_dark .xdsoft_copyright a:hover{color:#555 !important}.xdsoft_dark .xdsoft_time_box{border:1px solid #333}.xdsoft_dark .xdsoft_scrollbar>.xdsoft_scroller{background:#333 !important}.xdsoft_datetimepicker .xdsoft_save_selected{display:block;border:1px solid #ddd !important;margin-top:5px;width:100%;color:#454551;font-size:13px}.xdsoft_datetimepicker .blue-gradient-button{font-family:"museo-sans","Book Antiqua",sans-serif;font-size:12px;font-weight:300;color:#82878c;height:28px;position:relative;padding:4px 17px 4px 33px;border:1px solid #d7d8da;background:-moz-linear-gradient(top,#fff 0,#f4f8fa 73%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#fff),color-stop(73%,#f4f8fa));background:-webkit-linear-gradient(top,#fff 0,#f4f8fa 73%);background:-o-linear-gradient(top,#fff 0,#f4f8fa 73%);background:-ms-linear-gradient(top,#fff 0,#f4f8fa 73%);background:linear-gradient(to bottom,#fff 0,#f4f8fa 73%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff',endColorstr='#f4f8fa',GradientType=0)}.xdsoft_datetimepicker .blue-gradient-button:hover,.xdsoft_datetimepicker .blue-gradient-button:focus,.xdsoft_datetimepicker .blue-gradient-button:hover span,.xdsoft_datetimepicker .blue-gradient-button:focus span{color:#454551;background:-moz-linear-gradient(top,#f4f8fa 0,#FFF 73%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#f4f8fa),color-stop(73%,#FFF));background:-webkit-linear-gradient(top,#f4f8fa 0,#FFF 73%);background:-o-linear-gradient(top,#f4f8fa 0,#FFF 73%);background:-ms-linear-gradient(top,#f4f8fa 0,#FFF 73%);background:linear-gradient(to bottom,#f4f8fa 0,#FFF 73%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#f4f8fa',endColorstr='#FFF',GradientType=0)} diff --git a/css/reservation.css b/css/reservation.css new file mode 100755 index 0000000..bc930aa --- /dev/null +++ b/css/reservation.css @@ -0,0 +1 @@ +.form-item-reservation-time{display: none} \ No newline at end of file diff --git a/css/reservations.css b/css/reservations.css new file mode 100755 index 0000000..89ee664 --- /dev/null +++ b/css/reservations.css @@ -0,0 +1,73 @@ +#edit-field-monday-from-wrapper, +#edit-field-monday-from-wrapper label, +#edit-field-monday-from-wrapper input, +#edit-field-monday-to-wrapper, +#edit-field-monday-to-wrapper label, +#edit-field-monday-to-wrapper input, +#edit-field-tuesday-from-wrapper, +#edit-field-tuesday-from-wrapper label, +#edit-field-tuesday-from-wrapper input, +#edit-field-tuesday-to-wrapper, +#edit-field-tuesday-to-wrapper label, +#edit-field-tuesday-to-wrapper input, +#edit-field-wednesday-from-wrapper, +#edit-field-wednesday-from-wrapper label, +#edit-field-wednesday-from-wrapper input, +#edit-field-wednesday-to-wrapper, +#edit-field-wednesday-to-wrapper label, +#edit-field-wednesday-to-wrapper input, +#edit-field-thursday-from-wrapper, +#edit-field-thursday-from-wrapper label, +#edit-field-thursday-from-wrapper input, +#edit-field-thursday-to-wrapper, +#edit-field-thursday-to-wrapper label, +#edit-field-thursday-to-wrapper input, +#edit-field-friday-from-wrapper, +#edit-field-friday-from-wrapper label, +#edit-field-friday-from-wrapper input, +#edit-field-friday-to-wrapper, +#edit-field-friday-to-wrapper label, +#edit-field-friday-to-wrapper input, +#edit-field-saturday-from-wrapper, +#edit-field-saturday-from-wrapper label, +#edit-field-saturday-from-wrapper input, +#edit-field-saturday-to-wrapper, +#edit-field-saturday-to-wrapper label, +#edit-field-saturday-to-wrapper input, +#edit-field-sunday-from-wrapper, +#edit-field-sunday-from-wrapper label, +#edit-field-sunday-from-wrapper input, +#edit-field-sunday-to-wrapper, +#edit-field-sunday-to-wrapper label, +#edit-field-sunday-to-wrapper input +{display: inline-block} + +#edit-field-monday-from-wrapper, +#edit-field-tuesday-from-wrapper, +#edit-field-wednesday-from-wrapper, +#edit-field-thursday-from-wrapper, +#edit-field-friday-from-wrapper, +#edit-field-saturday-from-wrapper, +#edit-field-sunday-from-wrapper{width: 20%} + +#edit-field-monday-to-wrapper, +#edit-field-tuesday-to-wrapper, +#edit-field-wednesday-to-wrapper, +#edit-field-thursday-to-wrapper, +#edit-field-friday-to-wrapper, +#edit-field-saturday-to-wrapper, +#edit-field-sunday-to-wrapper{width: 75%} + +#edit-field-monday-from-wrapper input, +#edit-field-tuesday-from-wrapper input, +#edit-field-wednesday-from-wrapper input, +#edit-field-thursday-from-wrapper input, +#edit-field-friday-from-wrapper input, +#edit-field-saturday-from-wrapper input, +#edit-field-sunday-from-wrapper input +{float:right;margin-top: -3px} + + +/*#edit-field-monday-from-wrapper:before{content: "Working hours"}*/ + + diff --git a/js/jquery.datetimepicker.full.min.js b/js/jquery.datetimepicker.full.min.js new file mode 100755 index 0000000..a55d541 --- /dev/null +++ b/js/jquery.datetimepicker.full.min.js @@ -0,0 +1,2 @@ +var DateFormatter;!function(){"use strict";var e,t,a,r,n,o;n=864e5,o=3600,e=function(e,t){return"string"==typeof e&&"string"==typeof t&&e.toLowerCase()===t.toLowerCase()},t=function(e,a,r){var n=r||"0",o=e.toString();return o.lengths?"20":"19")+i):4===f&&(y.year=s),h=!0;break;case"m":case"n":case"M":case"F":isNaN(i)?(d=p.monthsShort.indexOf(i),d>-1&&(y.month=d+1),d=p.months.indexOf(i),d>-1&&(y.month=d+1)):s>=1&&12>=s&&(y.month=s),h=!0;break;case"d":case"j":s>=1&&31>=s&&(y.day=s),h=!0;break;case"g":case"h":u=r.indexOf("a")>-1?r.indexOf("a"):r.indexOf("A")>-1?r.indexOf("A"):-1,c=n[u],u>-1?(l=e(c,p.meridiem[0])?0:e(c,p.meridiem[1])?12:-1,s>=1&&12>=s&&l>-1?y.hour=s+l:s>=0&&23>=s&&(y.hour=s)):s>=0&&23>=s&&(y.hour=s),g=!0;break;case"G":case"H":s>=0&&23>=s&&(y.hour=s),g=!0;break;case"i":s>=0&&59>=s&&(y.min=s),g=!0;break;case"s":s>=0&&59>=s&&(y.sec=s),g=!0}if(h===!0&&y.year&&y.month&&y.day)y.date=new Date(y.year,y.month-1,y.day,y.hour,y.min,y.sec,0);else{if(g!==!0)return!1;y.date=new Date(0,0,0,y.hour,y.min,y.sec,0)}return y.date},guessDate:function(e,t){if("string"!=typeof e)return e;var a,r,n,o,i=this,s=e.replace(i.separators,"\x00").split("\x00"),d=/^[djmn]/g,u=t.match(i.validParts),l=new Date,f=0;if(!d.test(u[0]))return e;for(r=0;r0&&s.splice(r+1,0,n.substr(f))}return l},parseFormat:function(e,a){var r,i=this,s=i.dateSettings,d=/\\?(.?)/gi,u=function(e,t){return r[e]?r[e]():t};return r={d:function(){return t(r.j(),2)},D:function(){return s.daysShort[r.w()]},j:function(){return a.getDate()},l:function(){return s.days[r.w()]},N:function(){return r.w()||7},w:function(){return a.getDay()},z:function(){var e=new Date(r.Y(),r.n()-1,r.j()),t=new Date(r.Y(),0,1);return Math.round((e-t)/n)},W:function(){var e=new Date(r.Y(),r.n()-1,r.j()-r.N()+3),a=new Date(e.getFullYear(),0,4);return t(1+Math.round((e-a)/n/7),2)},F:function(){return s.months[a.getMonth()]},m:function(){return t(r.n(),2)},M:function(){return s.monthsShort[a.getMonth()]},n:function(){return a.getMonth()+1},t:function(){return new Date(r.Y(),r.n(),0).getDate()},L:function(){var e=r.Y();return e%4===0&&e%100!==0||e%400===0?1:0},o:function(){var e=r.n(),t=r.W(),a=r.Y();return a+(12===e&&9>t?1:1===e&&t>9?-1:0)},Y:function(){return a.getFullYear()},y:function(){return r.Y().toString().slice(-2)},a:function(){return r.A().toLowerCase()},A:function(){var e=r.G()<12?0:1;return s.meridiem[e]},B:function(){var e=a.getUTCHours()*o,r=60*a.getUTCMinutes(),n=a.getUTCSeconds();return t(Math.floor((e+r+n+o)/86.4)%1e3,3)},g:function(){return r.G()%12||12},G:function(){return a.getHours()},h:function(){return t(r.g(),2)},H:function(){return t(r.G(),2)},i:function(){return t(a.getMinutes(),2)},s:function(){return t(a.getSeconds(),2)},u:function(){return t(1e3*a.getMilliseconds(),6)},e:function(){var e=/\((.*)\)/.exec(String(a))[1];return e||"Coordinated Universal Time"},T:function(){var e=(String(a).match(i.tzParts)||[""]).pop().replace(i.tzClip,"");return e||"UTC"},I:function(){var e=new Date(r.Y(),0),t=Date.UTC(r.Y(),0),a=new Date(r.Y(),6),n=Date.UTC(r.Y(),6);return e-t!==a-n?1:0},O:function(){var e=a.getTimezoneOffset(),r=Math.abs(e);return(e>0?"-":"+")+t(100*Math.floor(r/60)+r%60,4)},P:function(){var e=r.O();return e.substr(0,3)+":"+e.substr(3,2)},Z:function(){return 60*-a.getTimezoneOffset()},c:function(){return"Y-m-d\\TH:i:sP".replace(d,u)},r:function(){return"D, d M Y H:i:s O".replace(d,u)},U:function(){return a.getTime()/1e3||0}},u(e,e)},formatDate:function(e,t){var a,r,n,o,i,s=this,d="";if("string"==typeof e&&(e=s.parseDate(e,t),e===!1))return!1;if(e instanceof Date){for(n=t.length,a=0;n>a;a++)i=t.charAt(a),"S"!==i&&(o=s.parseFormat(i,e),a!==n-1&&s.intParts.test(i)&&"S"===t.charAt(a+1)&&(r=parseInt(o),o+=s.dateSettings.ordinal(r)),d+=o);return d}return""}}}(),function(e){"function"==typeof define&&define.amd?define(["jquery","jquery-mousewheel"],e):"object"==typeof exports?module.exports=e:e(jQuery)}(function(e){"use strict";function t(e,t,a){this.date=e,this.desc=t,this.style=a}var a={i18n:{ar:{months:["كانون الثاني","شباط","آذار","نيسان","مايو","حزيران","تموز","آب","أيلول","تشرين الأول","تشرين الثاني","كانون الأول"],dayOfWeekShort:["ن","ث","ع","خ","ج","س","ح"],dayOfWeek:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت","الأحد"]},ro:{months:["Ianuarie","Februarie","Martie","Aprilie","Mai","Iunie","Iulie","August","Septembrie","Octombrie","Noiembrie","Decembrie"],dayOfWeekShort:["Du","Lu","Ma","Mi","Jo","Vi","Sâ"],dayOfWeek:["Duminică","Luni","Marţi","Miercuri","Joi","Vineri","Sâmbătă"]},id:{months:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"],dayOfWeekShort:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],dayOfWeek:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"]},is:{months:["Janúar","Febrúar","Mars","Apríl","Maí","Júní","Júlí","Ágúst","September","Október","Nóvember","Desember"],dayOfWeekShort:["Sun","Mán","Þrið","Mið","Fim","Fös","Lau"],dayOfWeek:["Sunnudagur","Mánudagur","Þriðjudagur","Miðvikudagur","Fimmtudagur","Föstudagur","Laugardagur"]},bg:{months:["Януари","Февруари","Март","Април","Май","Юни","Юли","Август","Септември","Октомври","Ноември","Декември"],dayOfWeekShort:["Нд","Пн","Вт","Ср","Чт","Пт","Сб"],dayOfWeek:["Неделя","Понеделник","Вторник","Сряда","Четвъртък","Петък","Събота"]},fa:{months:["فروردین","اردیبهشت","خرداد","تیر","مرداد","شهریور","مهر","آبان","آذر","دی","بهمن","اسفند"],dayOfWeekShort:["یکشنبه","دوشنبه","سه شنبه","چهارشنبه","پنجشنبه","جمعه","شنبه"],dayOfWeek:["یک‌شنبه","دوشنبه","سه‌شنبه","چهارشنبه","پنج‌شنبه","جمعه","شنبه","یک‌شنبه"]},ru:{months:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],dayOfWeekShort:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],dayOfWeek:["Воскресенье","Понедельник","Вторник","Среда","Четверг","Пятница","Суббота"]},uk:{months:["Січень","Лютий","Березень","Квітень","Травень","Червень","Липень","Серпень","Вересень","Жовтень","Листопад","Грудень"],dayOfWeekShort:["Ндл","Пнд","Втр","Срд","Чтв","Птн","Сбт"],dayOfWeek:["Неділя","Понеділок","Вівторок","Середа","Четвер","П'ятниця","Субота"]},en:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],dayOfWeekShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},el:{months:["Ιανουάριος","Φεβρουάριος","Μάρτιος","Απρίλιος","Μάιος","Ιούνιος","Ιούλιος","Αύγουστος","Σεπτέμβριος","Οκτώβριος","Νοέμβριος","Δεκέμβριος"],dayOfWeekShort:["Κυρ","Δευ","Τρι","Τετ","Πεμ","Παρ","Σαβ"],dayOfWeek:["Κυριακή","Δευτέρα","Τρίτη","Τετάρτη","Πέμπτη","Παρασκευή","Σάββατο"]},de:{months:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],dayOfWeekShort:["So","Mo","Di","Mi","Do","Fr","Sa"],dayOfWeek:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},nl:{months:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],dayOfWeekShort:["zo","ma","di","wo","do","vr","za"],dayOfWeek:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},tr:{months:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],dayOfWeekShort:["Paz","Pts","Sal","Çar","Per","Cum","Cts"],dayOfWeek:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"]},fr:{months:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],dayOfWeekShort:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"],dayOfWeek:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},es:{months:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],dayOfWeekShort:["Dom","Lun","Mar","Mié","Jue","Vie","Sáb"],dayOfWeek:["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"]},th:{months:["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"],dayOfWeekShort:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],dayOfWeek:["อาทิตย์","จันทร์","อังคาร","พุธ","พฤหัส","ศุกร์","เสาร์","อาทิตย์"]},pl:{months:["styczeń","luty","marzec","kwiecień","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień"],dayOfWeekShort:["nd","pn","wt","śr","cz","pt","sb"],dayOfWeek:["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"]},pt:{months:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],dayOfWeekShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sab"],dayOfWeek:["Domingo","Segunda","Terça","Quarta","Quinta","Sexta","Sábado"]},ch:{months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],dayOfWeekShort:["日","一","二","三","四","五","六"]},se:{months:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],dayOfWeekShort:["Sön","Mån","Tis","Ons","Tor","Fre","Lör"]},kr:{months:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],dayOfWeekShort:["일","월","화","수","목","금","토"],dayOfWeek:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},it:{months:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],dayOfWeekShort:["Dom","Lun","Mar","Mer","Gio","Ven","Sab"],dayOfWeek:["Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato"]},da:{months:["January","Februar","Marts","April","Maj","Juni","July","August","September","Oktober","November","December"],dayOfWeekShort:["Søn","Man","Tir","Ons","Tor","Fre","Lør"],dayOfWeek:["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"]},no:{months:["Januar","Februar","Mars","April","Mai","Juni","Juli","August","September","Oktober","November","Desember"],dayOfWeekShort:["Søn","Man","Tir","Ons","Tor","Fre","Lør"],dayOfWeek:["Søndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag"]},ja:{months:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeekShort:["日","月","火","水","木","金","土"],dayOfWeek:["日曜","月曜","火曜","水曜","木曜","金曜","土曜"]},vi:{months:["Tháng 1","Tháng 2","Tháng 3","Tháng 4","Tháng 5","Tháng 6","Tháng 7","Tháng 8","Tháng 9","Tháng 10","Tháng 11","Tháng 12"],dayOfWeekShort:["CN","T2","T3","T4","T5","T6","T7"],dayOfWeek:["Chủ nhật","Thứ hai","Thứ ba","Thứ tư","Thứ năm","Thứ sáu","Thứ bảy"]},sl:{months:["Januar","Februar","Marec","April","Maj","Junij","Julij","Avgust","September","Oktober","November","December"],dayOfWeekShort:["Ned","Pon","Tor","Sre","Čet","Pet","Sob"],dayOfWeek:["Nedelja","Ponedeljek","Torek","Sreda","Četrtek","Petek","Sobota"]},cs:{months:["Leden","Únor","Březen","Duben","Květen","Červen","Červenec","Srpen","Září","Říjen","Listopad","Prosinec"],dayOfWeekShort:["Ne","Po","Út","St","Čt","Pá","So"]},hu:{months:["Január","Február","Március","Április","Május","Június","Július","Augusztus","Szeptember","Október","November","December"],dayOfWeekShort:["Va","Hé","Ke","Sze","Cs","Pé","Szo"],dayOfWeek:["vasárnap","hétfő","kedd","szerda","csütörtök","péntek","szombat"]},az:{months:["Yanvar","Fevral","Mart","Aprel","May","Iyun","Iyul","Avqust","Sentyabr","Oktyabr","Noyabr","Dekabr"],dayOfWeekShort:["B","Be","Ça","Ç","Ca","C","Ş"],dayOfWeek:["Bazar","Bazar ertəsi","Çərşənbə axşamı","Çərşənbə","Cümə axşamı","Cümə","Şənbə"]},bs:{months:["Januar","Februar","Mart","April","Maj","Jun","Jul","Avgust","Septembar","Oktobar","Novembar","Decembar"],dayOfWeekShort:["Ned","Pon","Uto","Sri","Čet","Pet","Sub"],dayOfWeek:["Nedjelja","Ponedjeljak","Utorak","Srijeda","Četvrtak","Petak","Subota"]},ca:{months:["Gener","Febrer","Març","Abril","Maig","Juny","Juliol","Agost","Setembre","Octubre","Novembre","Desembre"],dayOfWeekShort:["Dg","Dl","Dt","Dc","Dj","Dv","Ds"],dayOfWeek:["Diumenge","Dilluns","Dimarts","Dimecres","Dijous","Divendres","Dissabte"]},"en-GB":{months:["January","February","March","April","May","June","July","August","September","October","November","December"],dayOfWeekShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},et:{months:["Jaanuar","Veebruar","Märts","Aprill","Mai","Juuni","Juuli","August","September","Oktoober","November","Detsember"],dayOfWeekShort:["P","E","T","K","N","R","L"],dayOfWeek:["Pühapäev","Esmaspäev","Teisipäev","Kolmapäev","Neljapäev","Reede","Laupäev"]},eu:{months:["Urtarrila","Otsaila","Martxoa","Apirila","Maiatza","Ekaina","Uztaila","Abuztua","Iraila","Urria","Azaroa","Abendua"],dayOfWeekShort:["Ig.","Al.","Ar.","Az.","Og.","Or.","La."],dayOfWeek:["Igandea","Astelehena","Asteartea","Asteazkena","Osteguna","Ostirala","Larunbata"]},fi:{months:["Tammikuu","Helmikuu","Maaliskuu","Huhtikuu","Toukokuu","Kesäkuu","Heinäkuu","Elokuu","Syyskuu","Lokakuu","Marraskuu","Joulukuu"],dayOfWeekShort:["Su","Ma","Ti","Ke","To","Pe","La"],dayOfWeek:["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"]},gl:{months:["Xan","Feb","Maz","Abr","Mai","Xun","Xul","Ago","Set","Out","Nov","Dec"],dayOfWeekShort:["Dom","Lun","Mar","Mer","Xov","Ven","Sab"],dayOfWeek:["Domingo","Luns","Martes","Mércores","Xoves","Venres","Sábado"]},hr:{months:["Siječanj","Veljača","Ožujak","Travanj","Svibanj","Lipanj","Srpanj","Kolovoz","Rujan","Listopad","Studeni","Prosinac"],dayOfWeekShort:["Ned","Pon","Uto","Sri","Čet","Pet","Sub"],dayOfWeek:["Nedjelja","Ponedjeljak","Utorak","Srijeda","Četvrtak","Petak","Subota"]},ko:{months:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],dayOfWeekShort:["일","월","화","수","목","금","토"],dayOfWeek:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},lt:{months:["Sausio","Vasario","Kovo","Balandžio","Gegužės","Birželio","Liepos","Rugpjūčio","Rugsėjo","Spalio","Lapkričio","Gruodžio"],dayOfWeekShort:["Sek","Pir","Ant","Tre","Ket","Pen","Šeš"],dayOfWeek:["Sekmadienis","Pirmadienis","Antradienis","Trečiadienis","Ketvirtadienis","Penktadienis","Šeštadienis"]},lv:{months:["Janvāris","Februāris","Marts","Aprīlis ","Maijs","Jūnijs","Jūlijs","Augusts","Septembris","Oktobris","Novembris","Decembris"],dayOfWeekShort:["Sv","Pr","Ot","Tr","Ct","Pk","St"],dayOfWeek:["Svētdiena","Pirmdiena","Otrdiena","Trešdiena","Ceturtdiena","Piektdiena","Sestdiena"]},mk:{months:["јануари","февруари","март","април","мај","јуни","јули","август","септември","октомври","ноември","декември"],dayOfWeekShort:["нед","пон","вто","сре","чет","пет","саб"],dayOfWeek:["Недела","Понеделник","Вторник","Среда","Четврток","Петок","Сабота"]},mn:{months:["1-р сар","2-р сар","3-р сар","4-р сар","5-р сар","6-р сар","7-р сар","8-р сар","9-р сар","10-р сар","11-р сар","12-р сар"],dayOfWeekShort:["Дав","Мяг","Лха","Пүр","Бсн","Бям","Ням"],dayOfWeek:["Даваа","Мягмар","Лхагва","Пүрэв","Баасан","Бямба","Ням"]},"pt-BR":{months:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],dayOfWeekShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],dayOfWeek:["Domingo","Segunda","Terça","Quarta","Quinta","Sexta","Sábado"]},sk:{months:["Január","Február","Marec","Apríl","Máj","Jún","Júl","August","September","Október","November","December"],dayOfWeekShort:["Ne","Po","Ut","St","Št","Pi","So"],dayOfWeek:["Nedeľa","Pondelok","Utorok","Streda","Štvrtok","Piatok","Sobota"]},sq:{months:["Janar","Shkurt","Mars","Prill","Maj","Qershor","Korrik","Gusht","Shtator","Tetor","Nëntor","Dhjetor"],dayOfWeekShort:["Die","Hën","Mar","Mër","Enj","Pre","Shtu"],dayOfWeek:["E Diel","E Hënë","E Martē","E Mërkurë","E Enjte","E Premte","E Shtunë"]},"sr-YU":{months:["Januar","Februar","Mart","April","Maj","Jun","Jul","Avgust","Septembar","Oktobar","Novembar","Decembar"],dayOfWeekShort:["Ned","Pon","Uto","Sre","čet","Pet","Sub"],dayOfWeek:["Nedelja","Ponedeljak","Utorak","Sreda","Četvrtak","Petak","Subota"]},sr:{months:["јануар","фебруар","март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар"],dayOfWeekShort:["нед","пон","уто","сре","чет","пет","суб"],dayOfWeek:["Недеља","Понедељак","Уторак","Среда","Четвртак","Петак","Субота"]},sv:{months:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],dayOfWeekShort:["Sön","Mån","Tis","Ons","Tor","Fre","Lör"],dayOfWeek:["Söndag","Måndag","Tisdag","Onsdag","Torsdag","Fredag","Lördag"]},"zh-TW":{months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],dayOfWeekShort:["日","一","二","三","四","五","六"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},zh:{months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],dayOfWeekShort:["日","一","二","三","四","五","六"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},he:{months:["ינואר","פברואר","מרץ","אפריל","מאי","יוני","יולי","אוגוסט","ספטמבר","אוקטובר","נובמבר","דצמבר"],dayOfWeekShort:["א'","ב'","ג'","ד'","ה'","ו'","שבת"],dayOfWeek:["ראשון","שני","שלישי","רביעי","חמישי","שישי","שבת","ראשון"]},hy:{months:["Հունվար","Փետրվար","Մարտ","Ապրիլ","Մայիս","Հունիս","Հուլիս","Օգոստոս","Սեպտեմբեր","Հոկտեմբեր","Նոյեմբեր","Դեկտեմբեր"],dayOfWeekShort:["Կի","Երկ","Երք","Չոր","Հնգ","Ուրբ","Շբթ"],dayOfWeek:["Կիրակի","Երկուշաբթի","Երեքշաբթի","Չորեքշաբթի","Հինգշաբթի","Ուրբաթ","Շաբաթ"]},kg:{months:["Үчтүн айы","Бирдин айы","Жалган Куран","Чын Куран","Бугу","Кулжа","Теке","Баш Оона","Аяк Оона","Тогуздун айы","Жетинин айы","Бештин айы"],dayOfWeekShort:["Жек","Дүй","Шей","Шар","Бей","Жум","Ише"],dayOfWeek:["Жекшемб","Дүйшөмб","Шейшемб","Шаршемб","Бейшемби","Жума","Ишенб"]},rm:{months:["Schaner","Favrer","Mars","Avrigl","Matg","Zercladur","Fanadur","Avust","Settember","October","November","December"],dayOfWeekShort:["Du","Gli","Ma","Me","Gie","Ve","So"],dayOfWeek:["Dumengia","Glindesdi","Mardi","Mesemna","Gievgia","Venderdi","Sonda"]},ka:{months:["იანვარი","თებერვალი","მარტი","აპრილი","მაისი","ივნისი","ივლისი","აგვისტო","სექტემბერი","ოქტომბერი","ნოემბერი","დეკემბერი"],dayOfWeekShort:["კვ","ორშ","სამშ","ოთხ","ხუთ","პარ","შაბ"],dayOfWeek:["კვირა","ორშაბათი","სამშაბათი","ოთხშაბათი","ხუთშაბათი","პარასკევი","შაბათი"]}},value:"",rtl:!1,format:"Y/m/d H:i",formatTime:"H:i",formatDate:"Y/m/d",startDate:!1,step:60,monthChangeSpinner:!0,closeOnDateSelect:!1,closeOnTimeSelect:!0,closeOnWithoutClick:!0,closeOnInputClick:!0,timepicker:!0,datepicker:!0,weeks:!1,defaultTime:!1,defaultDate:!1,minDate:!1,maxDate:!1,minTime:!1,maxTime:!1,disabledMinTime:!1,disabledMaxTime:!1,allowTimes:[],opened:!1,initTime:!0,inline:!1,theme:"",onSelectDate:function(){},onSelectTime:function(){},onChangeMonth:function(){},onGetWeekOfYear:function(){},onChangeYear:function(){},onChangeDateTime:function(){},onShow:function(){},onClose:function(){},onGenerate:function(){},withoutCopyright:!0,inverseButton:!1,hours12:!1,next:"xdsoft_next",prev:"xdsoft_prev",dayOfWeekStart:0,parentID:"body",timeHeightInTimePicker:25,timepickerScrollbar:!0,todayButton:!0,prevButton:!0,nextButton:!0,defaultSelect:!0,scrollMonth:!0,scrollTime:!0,scrollInput:!0,lazyInit:!1,mask:!1,validateOnBlur:!0,allowBlank:!0,yearStart:1950,yearEnd:2050,monthStart:0,monthEnd:11,style:"",id:"",fixed:!1,roundTime:"round",className:"",weekends:[],highlightedDates:[],highlightedPeriods:[],allowDates:[],allowDateRe:null,disabledDates:[],disabledWeekDays:[],yearOffset:0,beforeShowDay:null,enterLikeTab:!0,showApplyButton:!1},r=null,n="en",o="en",i={meridiem:["AM","PM"]},s=function(){var t=a.i18n[o],n={days:t.dayOfWeek,daysShort:t.dayOfWeekShort,months:t.months,monthsShort:e.map(t.months,function(e){return e.substring(0,3)})};r=new DateFormatter({dateSettings:e.extend({},i,n)})};e.datetimepicker={setLocale:function(e){var t=a.i18n[e]?e:n;o!=t&&(o=t,s())},setDateFormatter:function(e){r=e},RFC_2822:"D, d M Y H:i:s O",ATOM:"Y-m-dTH:i:sP",ISO_8601:"Y-m-dTH:i:sO",RFC_822:"D, d M y H:i:s O",RFC_850:"l, d-M-y H:i:s T",RFC_1036:"D, d M y H:i:s O",RFC_1123:"D, d M Y H:i:s O",RSS:"D, d M Y H:i:s O",W3C:"Y-m-dTH:i:sP"},s(),window.getComputedStyle||(window.getComputedStyle=function(e){return this.el=e,this.getPropertyValue=function(t){var a=/(\-([a-z]){1})/g;return"float"===t&&(t="styleFloat"),a.test(t)&&(t=t.replace(a,function(e,t,a){return a.toUpperCase()})),e.currentStyle[t]||null},this}),Array.prototype.indexOf||(Array.prototype.indexOf=function(e,t){var a,r;for(a=t||0,r=this.length;r>a;a+=1)if(this[a]===e)return a;return-1}),Date.prototype.countDaysInMonth=function(){return new Date(this.getFullYear(),this.getMonth()+1,0).getDate()},e.fn.xdsoftScroller=function(t){return this.each(function(){var a,r,n,o,i,s=e(this),d=function(e){var t,a={x:0,y:0};return"touchstart"===e.type||"touchmove"===e.type||"touchend"===e.type||"touchcancel"===e.type?(t=e.originalEvent.touches[0]||e.originalEvent.changedTouches[0],a.x=t.clientX,a.y=t.clientY):("mousedown"===e.type||"mouseup"===e.type||"mousemove"===e.type||"mouseover"===e.type||"mouseout"===e.type||"mouseenter"===e.type||"mouseleave"===e.type)&&(a.x=e.clientX,a.y=e.clientY),a},u=100,l=!1,f=0,c=0,m=0,h=!1,g=0,p=function(){};return"hide"===t?void s.find(".xdsoft_scrollbar").hide():(e(this).hasClass("xdsoft_scroller_box")||(a=s.children().eq(0),r=s[0].clientHeight,n=a[0].offsetHeight,o=e('
'),i=e('
'),o.append(i),s.addClass("xdsoft_scroller_box").append(o),p=function(e){var t=d(e).y-f+g;0>t&&(t=0),t+i[0].offsetHeight>m&&(t=m-i[0].offsetHeight),s.trigger("scroll_element.xdsoft_scroller",[u?t/u:0])},i.on("touchstart.xdsoft_scroller mousedown.xdsoft_scroller",function(a){r||s.trigger("resize_scroll.xdsoft_scroller",[t]),f=d(a).y,g=parseInt(i.css("margin-top"),10),m=o[0].offsetHeight,"mousedown"===a.type||"touchstart"===a.type?(document&&e(document.body).addClass("xdsoft_noselect"),e([document.body,window]).on("touchend mouseup.xdsoft_scroller",function n(){e([document.body,window]).off("touchend mouseup.xdsoft_scroller",n).off("mousemove.xdsoft_scroller",p).removeClass("xdsoft_noselect")}),e(document.body).on("mousemove.xdsoft_scroller",p)):(h=!0,a.stopPropagation(),a.preventDefault())}).on("touchmove",function(e){h&&(e.preventDefault(),p(e))}).on("touchend touchcancel",function(){h=!1,g=0}),s.on("scroll_element.xdsoft_scroller",function(e,t){r||s.trigger("resize_scroll.xdsoft_scroller",[t,!0]),t=t>1?1:0>t||isNaN(t)?0:t,i.css("margin-top",u*t),setTimeout(function(){a.css("marginTop",-parseInt((a[0].offsetHeight-r)*t,10))},10)}).on("resize_scroll.xdsoft_scroller",function(e,t,d){var l,f;r=s[0].clientHeight,n=a[0].offsetHeight,l=r/n,f=l*o[0].offsetHeight,l>1?i.hide():(i.show(),i.css("height",parseInt(f>10?f:10,10)),u=o[0].offsetHeight-i[0].offsetHeight,d!==!0&&s.trigger("scroll_element.xdsoft_scroller",[t||Math.abs(parseInt(a.css("marginTop"),10))/(n-r)]))}),s.on("mousewheel",function(e){var t=Math.abs(parseInt(a.css("marginTop"),10));return t-=20*e.deltaY,0>t&&(t=0),s.trigger("scroll_element.xdsoft_scroller",[t/(n-r)]),e.stopPropagation(),!1}),s.on("touchstart",function(e){l=d(e),c=Math.abs(parseInt(a.css("marginTop"),10))}),s.on("touchmove",function(e){if(l){e.preventDefault();var t=d(e);s.trigger("scroll_element.xdsoft_scroller",[(c-(t.y-l.y))/(n-r)])}}),s.on("touchend touchcancel",function(){l=!1,c=0})),void s.trigger("resize_scroll.xdsoft_scroller",[t]))})},e.fn.datetimepicker=function(n,i){var s,d,u=this,l=48,f=57,c=96,m=105,h=17,g=46,p=13,y=27,v=8,b=37,D=38,k=39,x=40,T=9,S=116,w=65,O=67,M=86,_=90,W=89,F=!1,C=e.isPlainObject(n)||!n?e.extend(!0,{},a,n):e.extend(!0,{},a),P=0,A=function(e){e.on("open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart",function t(){e.is(":disabled")||e.data("xdsoft_datetimepicker")||(clearTimeout(P),P=setTimeout(function(){e.data("xdsoft_datetimepicker")||s(e),e.off("open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart",t).trigger("open.xdsoft")},100))})};return s=function(a){function i(){var e,t=!1;return C.startDate?t=j.strToDate(C.startDate):(t=C.value||(a&&a.val&&a.val()?a.val():""),t?t=j.strToDateTime(t):C.defaultDate&&(t=j.strToDateTime(C.defaultDate),C.defaultTime&&(e=j.strtotime(C.defaultTime),t.setHours(e.getHours()),t.setMinutes(e.getMinutes())))),t&&j.isValidDate(t)?J.data("changed",!0):t="",t||0}function s(t){var r=function(e,t){var a=e.replace(/([\[\]\/\{\}\(\)\-\.\+]{1})/g,"\\$1").replace(/_/g,"{digit+}").replace(/([0-9]{1})/g,"{digit$1}").replace(/\{digit([0-9]{1})\}/g,"[0-$1_]{1}").replace(/\{digit[\+]\}/g,"[0-9_]{1}");return new RegExp(a).test(t)},n=function(e){try{if(document.selection&&document.selection.createRange){var t=document.selection.createRange();return t.getBookmark().charCodeAt(2)-2}if(e.setSelectionRange)return e.selectionStart}catch(a){return 0}},o=function(e,t){if(e="string"==typeof e||e instanceof String?document.getElementById(e):e,!e)return!1;if(e.createTextRange){var a=e.createTextRange();return a.collapse(!0),a.moveEnd("character",t),a.moveStart("character",t),a.select(),!0}return e.setSelectionRange?(e.setSelectionRange(t,t),!0):!1};t.mask&&a.off("keydown.xdsoft"),t.mask===!0&&(t.mask="undefined"!=typeof moment?t.format.replace(/Y{4}/g,"9999").replace(/Y{2}/g,"99").replace(/M{2}/g,"19").replace(/D{2}/g,"39").replace(/H{2}/g,"29").replace(/m{2}/g,"59").replace(/s{2}/g,"59"):t.format.replace(/Y/g,"9999").replace(/F/g,"9999").replace(/m/g,"19").replace(/d/g,"39").replace(/H/g,"29").replace(/i/g,"59").replace(/s/g,"59")),"string"===e.type(t.mask)&&(r(t.mask,a.val())||(a.val(t.mask.replace(/[0-9]/g,"_")),o(a[0],0)),a.on("keydown.xdsoft",function(i){var s,d,u=this.value,C=i.which;if(C>=l&&f>=C||C>=c&&m>=C||C===v||C===g){for(s=n(this),d=C!==v&&C!==g?String.fromCharCode(C>=c&&m>=C?C-l:C):"_",C!==v&&C!==g||!s||(s-=1,d="_");/[^0-9_]/.test(t.mask.substr(s,1))&&s0;)s+=C===v||C===g?-1:1;if(u=u.substr(0,s)+d+u.substr(s+1),""===e.trim(u))u=t.mask.replace(/[0-9]/g,"_");else if(s===t.mask.length)return i.preventDefault(),!1;for(s+=C===v||C===g?0:1;/[^0-9_]/.test(t.mask.substr(s,1))&&s0;)s+=C===v||C===g?-1:1;r(t.mask,u)?(this.value=u,o(this,s)):""===e.trim(u)?this.value=t.mask.replace(/[0-9]/g,"_"):a.trigger("error_input.xdsoft")}else if(-1!==[w,O,M,_,W].indexOf(C)&&F||-1!==[y,D,x,b,k,S,h,T,p].indexOf(C))return!0;return i.preventDefault(),!1}))}var d,u,P,A,Y,j,H,J=e('
'),z=e(''),I=e('
'),N=e('
'),L=e('
'),E=e('
'),R=E.find(".xdsoft_time_box").eq(0),B=e('
'),V=e(''),G=e('
'),U=e('
'),q=!1,X=0;C.id&&J.attr("id",C.id),C.style&&J.attr("style",C.style),C.weeks&&J.addClass("xdsoft_showweeks"),C.rtl&&J.addClass("xdsoft_rtl"),J.addClass("xdsoft_"+C.theme),J.addClass(C.className),N.find(".xdsoft_month span").after(G),N.find(".xdsoft_year span").after(U),N.find(".xdsoft_month,.xdsoft_year").on("touchstart mousedown.xdsoft",function(t){var a,r,n=e(this).find(".xdsoft_select").eq(0),o=0,i=0,s=n.is(":visible");for(N.find(".xdsoft_select").hide(),j.currentTime&&(o=j.currentTime[e(this).hasClass("xdsoft_month")?"getMonth":"getFullYear"]()),n[s?"hide":"show"](),a=n.find("div.xdsoft_option"),r=0;r=i;)u=new t(i,d,c),l=r.formatDate(i,C.formatDate),i.setDate(i.getDate()+1),void 0!==o[l]?(f=o[l].desc,f&&f.length&&u.desc&&u.desc.length&&(o[l].desc=f+"\n"+u.desc)):o[l]=u}),C.highlightedDates=e.extend(!0,[],o)),n.disabledDates&&e.isArray(n.disabledDates)&&n.disabledDates.length&&(C.disabledDates=e.extend(!0,[],n.disabledDates)),n.disabledWeekDays&&e.isArray(n.disabledWeekDays)&&n.disabledWeekDays.length&&(C.disabledWeekDays=e.extend(!0,[],n.disabledWeekDays)),!C.open&&!C.opened||C.inline||a.trigger("open.xdsoft"),C.inline&&(q=!0,J.addClass("xdsoft_inline"),a.after(J).hide()),C.inverseButton&&(C.next="xdsoft_prev",C.prev="xdsoft_next"),C.datepicker?I.addClass("active"):I.removeClass("active"),C.timepicker?E.addClass("active"):E.removeClass("active"),C.value&&(j.setCurrentTime(C.value),a&&a.val&&a.val(j.str)),C.dayOfWeekStart=isNaN(C.dayOfWeekStart)?0:parseInt(C.dayOfWeekStart,10)%7,C.timepickerScrollbar||R.xdsoftScroller("hide"),C.minDate&&/^[\+\-](.*)$/.test(C.minDate)&&(C.minDate=r.formatDate(j.strToDateTime(C.minDate),C.formatDate)),C.maxDate&&/^[\+\-](.*)$/.test(C.maxDate)&&(C.maxDate=r.formatDate(j.strToDateTime(C.maxDate),C.formatDate)),V.toggle(C.showApplyButton),N.find(".xdsoft_today_button").css("visibility",C.todayButton?"visible":"hidden"),N.find("."+C.prev).css("visibility",C.prevButton?"visible":"hidden"),N.find("."+C.next).css("visibility",C.nextButton?"visible":"hidden"),s(C),C.validateOnBlur&&a.off("blur.xdsoft").on("blur.xdsoft",function(){if(C.allowBlank&&(!e.trim(e(this).val()).length||"string"==typeof C.mask&&e.trim(e(this).val())===C.mask.replace(/[0-9]/g,"_")))e(this).val(null),J.data("xdsoft_datetime").empty();else{var t=r.parseDate(e(this).val(),C.format);if(t)e(this).val(r.formatDate(t,C.format));else{var a=+[e(this).val()[0],e(this).val()[1]].join(""),n=+[e(this).val()[2],e(this).val()[3]].join("");e(this).val(!C.datepicker&&C.timepicker&&a>=0&&24>a&&n>=0&&60>n?[a,n].map(function(e){return e>9?e:"0"+e}).join(":"):r.formatDate(j.now(),C.format))}J.data("xdsoft_datetime").setCurrentTime(e(this).val())}J.trigger("changedatetime.xdsoft"),J.trigger("close.xdsoft")}),C.dayOfWeekStartPrev=0===C.dayOfWeekStart?6:C.dayOfWeekStart-1,J.trigger("xchange.xdsoft").trigger("afterOpen.xdsoft")},J.data("options",C).on("touchstart mousedown.xdsoft",function(e){return e.stopPropagation(),e.preventDefault(),U.hide(),G.hide(),!1}),R.append(B),R.xdsoftScroller(),J.on("afterOpen.xdsoft",function(){R.xdsoftScroller()}),J.append(I).append(E),C.withoutCopyright!==!0&&J.append(z),I.append(N).append(L).append(V),e(C.parentID).append(J),d=function(){var t=this;t.now=function(e){var a,r,n=new Date;return!e&&C.defaultDate&&(a=t.strToDateTime(C.defaultDate),n.setFullYear(a.getFullYear()),n.setMonth(a.getMonth()),n.setDate(a.getDate())),C.yearOffset&&n.setFullYear(n.getFullYear()+C.yearOffset),!e&&C.defaultTime&&(r=t.strtotime(C.defaultTime),n.setHours(r.getHours()),n.setMinutes(r.getMinutes())),n},t.isValidDate=function(e){return"[object Date]"!==Object.prototype.toString.call(e)?!1:!isNaN(e.getTime())},t.setCurrentTime=function(e,a){t.currentTime="string"==typeof e?t.strToDateTime(e):t.isValidDate(e)?e:e||a||!C.allowBlank?t.now():null,J.trigger("xchange.xdsoft")},t.empty=function(){t.currentTime=null},t.getCurrentTime=function(){return t.currentTime},t.nextMonth=function(){(void 0===t.currentTime||null===t.currentTime)&&(t.currentTime=t.now());var a,r=t.currentTime.getMonth()+1;return 12===r&&(t.currentTime.setFullYear(t.currentTime.getFullYear()+1),r=0),a=t.currentTime.getFullYear(),t.currentTime.setDate(Math.min(new Date(t.currentTime.getFullYear(),r+1,0).getDate(),t.currentTime.getDate())),t.currentTime.setMonth(r),C.onChangeMonth&&e.isFunction(C.onChangeMonth)&&C.onChangeMonth.call(J,j.currentTime,J.data("input")),a!==t.currentTime.getFullYear()&&e.isFunction(C.onChangeYear)&&C.onChangeYear.call(J,j.currentTime,J.data("input")),J.trigger("xchange.xdsoft"),r},t.prevMonth=function(){(void 0===t.currentTime||null===t.currentTime)&&(t.currentTime=t.now());var a=t.currentTime.getMonth()-1;return-1===a&&(t.currentTime.setFullYear(t.currentTime.getFullYear()-1),a=11),t.currentTime.setDate(Math.min(new Date(t.currentTime.getFullYear(),a+1,0).getDate(),t.currentTime.getDate())),t.currentTime.setMonth(a),C.onChangeMonth&&e.isFunction(C.onChangeMonth)&&C.onChangeMonth.call(J,j.currentTime,J.data("input")),J.trigger("xchange.xdsoft"),a},t.getWeekOfYear=function(t){if(C.onGetWeekOfYear&&e.isFunction(C.onGetWeekOfYear)){var a=C.onGetWeekOfYear.call(J,t);if("undefined"!=typeof a)return a}var r=new Date(t.getFullYear(),0,1);return 4!=r.getDay()&&r.setMonth(0,1+(4-r.getDay()+7)%7),Math.ceil(((t-r)/864e5+r.getDay()+1)/7)},t.strToDateTime=function(e){var a,n,o=[];return e&&e instanceof Date&&t.isValidDate(e)?e:(o=/^(\+|\-)(.*)$/.exec(e),o&&(o[2]=r.parseDate(o[2],C.formatDate)),o&&o[2]?(a=o[2].getTime()-6e4*o[2].getTimezoneOffset(),n=new Date(t.now(!0).getTime()+parseInt(o[1]+"1",10)*a)):n=e?r.parseDate(e,C.format):t.now(),t.isValidDate(n)||(n=t.now()),n)},t.strToDate=function(e){if(e&&e instanceof Date&&t.isValidDate(e))return e;var a=e?r.parseDate(e,C.formatDate):t.now(!0);return t.isValidDate(a)||(a=t.now(!0)),a},t.strtotime=function(e){if(e&&e instanceof Date&&t.isValidDate(e))return e;var a=e?r.parseDate(e,C.formatTime):t.now(!0);return t.isValidDate(a)||(a=t.now(!0)),a},t.str=function(){return r.formatDate(t.currentTime,C.format)},t.currentTime=this.now()},j=new d,V.on("touchend click",function(e){e.preventDefault(),J.data("changed",!0),j.setCurrentTime(i()),a.val(j.str()),J.trigger("close.xdsoft")}),N.find(".xdsoft_today_button").on("touchend mousedown.xdsoft",function(){J.data("changed",!0),j.setCurrentTime(0,!0),J.trigger("afterOpen.xdsoft")}).on("dblclick.xdsoft",function(){var e,t,r=j.getCurrentTime();r=new Date(r.getFullYear(),r.getMonth(),r.getDate()),e=j.strToDate(C.minDate),e=new Date(e.getFullYear(),e.getMonth(),e.getDate()),e>r||(t=j.strToDate(C.maxDate),t=new Date(t.getFullYear(),t.getMonth(),t.getDate()),r>t||(a.val(j.str()),a.trigger("change"),J.trigger("close.xdsoft")))}),N.find(".xdsoft_prev,.xdsoft_next").on("touchend mousedown.xdsoft",function(){var t=e(this),a=0,r=!1;!function n(e){t.hasClass(C.next)?j.nextMonth():t.hasClass(C.prev)&&j.prevMonth(),C.monthChangeSpinner&&(r||(a=setTimeout(n,e||100)))}(500),e([document.body,window]).on("touchend mouseup.xdsoft",function o(){clearTimeout(a),r=!0,e([document.body,window]).off("touchend mouseup.xdsoft",o)})}),E.find(".xdsoft_prev,.xdsoft_next").on("touchend mousedown.xdsoft",function(){var t=e(this),a=0,r=!1,n=110;!function o(e){var i=R[0].clientHeight,s=B[0].offsetHeight,d=Math.abs(parseInt(B.css("marginTop"),10));t.hasClass(C.next)&&s-i-C.timeHeightInTimePicker>=d?B.css("marginTop","-"+(d+C.timeHeightInTimePicker)+"px"):t.hasClass(C.prev)&&d-C.timeHeightInTimePicker>=0&&B.css("marginTop","-"+(d-C.timeHeightInTimePicker)+"px"),R.trigger("scroll_element.xdsoft_scroller",[Math.abs(parseInt(B[0].style.marginTop,10)/(s-i))]),n=n>10?10:n-10,r||(a=setTimeout(o,e||n))}(500),e([document.body,window]).on("touchend mouseup.xdsoft",function i(){clearTimeout(a),r=!0,e([document.body,window]).off("touchend mouseup.xdsoft",i)})}),u=0,J.on("xchange.xdsoft",function(t){clearTimeout(u),u=setTimeout(function(){if(void 0===j.currentTime||null===j.currentTime){if(C.allowBlank)return;j.currentTime=j.now()}for(var t,i,s,d,u,l,f,c,m,h,g="",p=new Date(j.currentTime.getFullYear(),j.currentTime.getMonth(),1,12,0,0),y=0,v=j.now(),b=!1,D=!1,k=[],x=!0,T="",S="";p.getDay()!==C.dayOfWeekStart;)p.setDate(p.getDate()-1);for(g+="",C.weeks&&(g+=""),t=0;7>t;t+=1)g+="";for(g+="",g+="",C.maxDate!==!1&&(b=j.strToDate(C.maxDate),b=new Date(b.getFullYear(),b.getMonth(),b.getDate(),23,59,59,999)),C.minDate!==!1&&(D=j.strToDate(C.minDate),D=new Date(D.getFullYear(),D.getMonth(),D.getDate()));y0?-1===C.allowDates.indexOf(r.formatDate(p,C.formatDate))&&k.push("xdsoft_disabled"):b!==!1&&p>b||D!==!1&&D>p||c&&c[0]===!1?k.push("xdsoft_disabled"):-1!==C.disabledDates.indexOf(r.formatDate(p,C.formatDate))?k.push("xdsoft_disabled"):-1!==C.disabledWeekDays.indexOf(s)?k.push("xdsoft_disabled"):a.is("[readonly]")&&k.push("xdsoft_disabled"),c&&""!==c[1]&&k.push(c[1]),j.currentTime.getMonth()!==l&&k.push("xdsoft_other_month"),(C.defaultSelect||J.data("changed"))&&r.formatDate(j.currentTime,C.formatDate)===r.formatDate(p,C.formatDate)&&k.push("xdsoft_current"),r.formatDate(v,C.formatDate)===r.formatDate(p,C.formatDate)&&k.push("xdsoft_today"),(0===p.getDay()||6===p.getDay()||-1!==C.weekends.indexOf(r.formatDate(p,C.formatDate)))&&k.push("xdsoft_weekend"),void 0!==C.highlightedDates[r.formatDate(p,C.formatDate)]&&(i=C.highlightedDates[r.formatDate(p,C.formatDate)],k.push(void 0===i.style?"xdsoft_highlighted_default":i.style),h=void 0===i.desc?"":i.desc),C.beforeShowDay&&e.isFunction(C.beforeShowDay)&&k.push(C.beforeShowDay(p)),x&&(g+="",x=!1,C.weeks&&(g+="")),g+='",p.getDay()===C.dayOfWeekStartPrev&&(g+="",x=!0),p.setDate(d+1);if(g+="
"+C.i18n[o].dayOfWeekShort[(t+C.dayOfWeekStart)%7]+"
"+f+"
'+d+"
",L.html(g),N.find(".xdsoft_label span").eq(0).text(C.i18n[o].months[j.currentTime.getMonth()]),N.find(".xdsoft_label span").eq(1).text(j.currentTime.getFullYear()),T="",S="",l="",m=function(t,n){var o,i,s=j.now(),d=C.allowTimes&&e.isArray(C.allowTimes)&&C.allowTimes.length;s.setHours(t),t=parseInt(s.getHours(),10),s.setMinutes(n),n=parseInt(s.getMinutes(),10),o=new Date(j.currentTime),o.setHours(t),o.setMinutes(n),k=[],C.minDateTime!==!1&&C.minDateTime>o||C.maxTime!==!1&&j.strtotime(C.maxTime).getTime()s.getTime()?k.push("xdsoft_disabled"):C.minDateTime!==!1&&C.minDateTime>o||C.disabledMinTime!==!1&&s.getTime()>j.strtotime(C.disabledMinTime).getTime()&&C.disabledMaxTime!==!1&&s.getTime()59||i.getMinutes()===parseInt(n,10))&&(C.defaultSelect||J.data("changed")?k.push("xdsoft_current"):C.initTime&&k.push("xdsoft_init_time")),parseInt(v.getHours(),10)===parseInt(t,10)&&parseInt(v.getMinutes(),10)===parseInt(n,10)&&k.push("xdsoft_today"),T+='
'+r.formatDate(s,C.formatTime)+"
"},C.allowTimes&&e.isArray(C.allowTimes)&&C.allowTimes.length)for(y=0;yt;t+=C.step)S=(10>y?"0":"")+y,l=(10>t?"0":"")+t,m(S,l);for(B.html(T),n="",y=0,y=parseInt(C.yearStart,10)+C.yearOffset;y<=parseInt(C.yearEnd,10)+C.yearOffset;y+=1)n+='
'+y+"
";for(U.children().eq(0).html(n),y=parseInt(C.monthStart,10),n="";y<=parseInt(C.monthEnd,10);y+=1)n+='
'+C.i18n[o].months[y]+"
";G.children().eq(0).html(n),e(J).trigger("generate.xdsoft")},10),t.stopPropagation()}).on("afterOpen.xdsoft",function(){if(C.timepicker){var e,t,a,r;B.find(".xdsoft_current").length?e=".xdsoft_current":B.find(".xdsoft_init_time").length&&(e=".xdsoft_init_time"),e?(t=R[0].clientHeight,a=B[0].offsetHeight,r=B.find(e).index()*C.timeHeightInTimePicker+1,r>a-t&&(r=a-t),R.trigger("scroll_element.xdsoft_scroller",[parseInt(r,10)/(a-t)])):R.trigger("scroll_element.xdsoft_scroller",[0])}}),P=0,L.on("touchend click.xdsoft","td",function(t){t.stopPropagation(),P+=1;var r=e(this),n=j.currentTime;return(void 0===n||null===n)&&(j.currentTime=j.now(),n=j.currentTime),r.hasClass("xdsoft_disabled")?!1:(n.setDate(1),n.setFullYear(r.data("year")),n.setMonth(r.data("month")),n.setDate(r.data("date")),J.trigger("select.xdsoft",[n]),a.val(j.str()),C.onSelectDate&&e.isFunction(C.onSelectDate)&&C.onSelectDate.call(J,j.currentTime,J.data("input"),t),J.data("changed",!0),J.trigger("xchange.xdsoft"),J.trigger("changedatetime.xdsoft"),(P>1||C.closeOnDateSelect===!0||C.closeOnDateSelect===!1&&!C.timepicker)&&!C.inline&&J.trigger("close.xdsoft"),void setTimeout(function(){P=0},200))}),B.on("touchend click.xdsoft","div",function(t){t.stopPropagation();var a=e(this),r=j.currentTime;return(void 0===r||null===r)&&(j.currentTime=j.now(),r=j.currentTime),a.hasClass("xdsoft_disabled")?!1:(r.setHours(a.data("hour")),r.setMinutes(a.data("minute")),J.trigger("select.xdsoft",[r]),J.data("input").val(j.str()),C.onSelectTime&&e.isFunction(C.onSelectTime)&&C.onSelectTime.call(J,j.currentTime,J.data("input"),t),J.data("changed",!0),J.trigger("xchange.xdsoft"),J.trigger("changedatetime.xdsoft"),void(C.inline!==!0&&C.closeOnTimeSelect===!0&&J.trigger("close.xdsoft")))}),I.on("mousewheel.xdsoft",function(e){return C.scrollMonth?(e.deltaY<0?j.nextMonth():j.prevMonth(),!1):!0}),a.on("mousewheel.xdsoft",function(e){return C.scrollInput?!C.datepicker&&C.timepicker?(A=B.find(".xdsoft_current").length?B.find(".xdsoft_current").eq(0).index():0,A+e.deltaY>=0&&A+e.deltaYc+m?(l="bottom",r=c+m-t.top):r-=m):r+a.offsetHeight>c+m&&(r=t.top-a.offsetHeight+1),0>r&&(r=0),n+a.offsetWidth>u&&(n=u-a.offsetWidth)),i=J[0],H(i,function(e){var t;return t=window.getComputedStyle(e).getPropertyValue("position"),"relative"===t&&u>=e.offsetWidth?(n-=(u-e.offsetWidth)/2,!1):void 0}),f={position:o,left:n,top:"",bottom:""},f[l]=r,J.css(f)},J.on("open.xdsoft",function(t){var a=!0;C.onShow&&e.isFunction(C.onShow)&&(a=C.onShow.call(J,j.currentTime,J.data("input"),t)),a!==!1&&(J.show(),Y(),e(window).off("resize.xdsoft",Y).on("resize.xdsoft",Y),C.closeOnWithoutClick&&e([document.body,window]).on("touchstart mousedown.xdsoft",function r(){J.trigger("close.xdsoft"),e([document.body,window]).off("touchstart mousedown.xdsoft",r)}))}).on("close.xdsoft",function(t){var a=!0;N.find(".xdsoft_month,.xdsoft_year").find(".xdsoft_select").hide(),C.onClose&&e.isFunction(C.onClose)&&(a=C.onClose.call(J,j.currentTime,J.data("input"),t)),a===!1||C.opened||C.inline||J.hide(),t.stopPropagation()}).on("toggle.xdsoft",function(){J.trigger(J.is(":visible")?"close.xdsoft":"open.xdsoft")}).data("input",a),X=0,J.data("xdsoft_datetime",j),J.setOptions(C),j.setCurrentTime(i()),a.data("xdsoft_datetimepicker",J).on("open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart",function(){a.is(":disabled")||a.data("xdsoft_datetimepicker").is(":visible")&&C.closeOnInputClick||(clearTimeout(X),X=setTimeout(function(){a.is(":disabled")||(q=!0,j.setCurrentTime(i(),!0),C.mask&&s(C),J.trigger("open.xdsoft"))},100))}).on("keydown.xdsoft",function(t){var a,r=t.which;return-1!==[p].indexOf(r)&&C.enterLikeTab?(a=e("input:visible,textarea:visible,button:visible,a:visible"),J.trigger("close.xdsoft"),a.eq(a.index(this)+1).focus(),!1):-1!==[T].indexOf(r)?(J.trigger("close.xdsoft"),!0):void 0}).on("blur.xdsoft",function(){J.trigger("close.xdsoft")})},d=function(t){var a=t.data("xdsoft_datetimepicker");a&&(a.data("xdsoft_datetime",null),a.remove(),t.data("xdsoft_datetimepicker",null).off(".xdsoft"),e(window).off("resize.xdsoft"),e([window,document.body]).off("mousedown.xdsoft touchstart"),t.unmousewheel&&t.unmousewheel())},e(document).off("keydown.xdsoftctrl keyup.xdsoftctrl").on("keydown.xdsoftctrl",function(e){e.keyCode===h&&(F=!0)}).on("keyup.xdsoftctrl",function(e){e.keyCode===h&&(F=!1)}),this.each(function(){var t,a=e(this).data("xdsoft_datetimepicker");if(a){if("string"===e.type(n))switch(n){case"show":e(this).select().focus(),a.trigger("open.xdsoft");break;case"hide":a.trigger("close.xdsoft");break;case"toggle":a.trigger("toggle.xdsoft");break;case"destroy":d(e(this));break;case"reset":this.value=this.defaultValue,this.value&&a.data("xdsoft_datetime").isValidDate(r.parseDate(this.value,C.format))||a.data("changed",!1),a.data("xdsoft_datetime").setCurrentTime(this.value);break;case"validate":t=a.data("input"),t.trigger("blur.xdsoft");break;default:a[n]&&e.isFunction(a[n])&&(u=a[n](i))}else a.setOptions(n);return 0}"string"!==e.type(n)&&(!C.lazyInit||C.open||C.inline?s(e(this)):A(e(this)))}),u},e.fn.datetimepicker.defaults=a}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e:e(jQuery)}(function(e){function t(t){var i=t||window.event,s=d.call(arguments,1),u=0,f=0,c=0,m=0,h=0,g=0;if(t=e.event.fix(i),t.type="mousewheel","detail"in i&&(c=-1*i.detail),"wheelDelta"in i&&(c=i.wheelDelta),"wheelDeltaY"in i&&(c=i.wheelDeltaY),"wheelDeltaX"in i&&(f=-1*i.wheelDeltaX),"axis"in i&&i.axis===i.HORIZONTAL_AXIS&&(f=-1*c,c=0),u=0===c?f:c,"deltaY"in i&&(c=-1*i.deltaY,u=c),"deltaX"in i&&(f=i.deltaX,0===c&&(u=-1*f)),0!==c||0!==f){if(1===i.deltaMode){var p=e.data(this,"mousewheel-line-height");u*=p,c*=p,f*=p}else if(2===i.deltaMode){var y=e.data(this,"mousewheel-page-height");u*=y,c*=y,f*=y}if(m=Math.max(Math.abs(c),Math.abs(f)),(!o||o>m)&&(o=m,r(i,m)&&(o/=40)),r(i,m)&&(u/=40,f/=40,c/=40),u=Math[u>=1?"floor":"ceil"](u/o),f=Math[f>=1?"floor":"ceil"](f/o),c=Math[c>=1?"floor":"ceil"](c/o),l.settings.normalizeOffset&&this.getBoundingClientRect){var v=this.getBoundingClientRect();h=t.clientX-v.left,g=t.clientY-v.top}return t.deltaX=f,t.deltaY=c,t.deltaFactor=o,t.offsetX=h,t.offsetY=g,t.deltaMode=0,s.unshift(t,u,f,c),n&&clearTimeout(n),n=setTimeout(a,200),(e.event.dispatch||e.event.handle).apply(this,s)}}function a(){o=null}function r(e,t){return l.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120===0}var n,o,i=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],s="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],d=Array.prototype.slice;if(e.event.fixHooks)for(var u=i.length;u;)e.event.fixHooks[i[--u]]=e.event.mouseHooks;var l=e.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var a=s.length;a;)this.addEventListener(s[--a],t,!1);else this.onmousewheel=t;e.data(this,"mousewheel-line-height",l.getLineHeight(this)),e.data(this,"mousewheel-page-height",l.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var a=s.length;a;)this.removeEventListener(s[--a],t,!1);else this.onmousewheel=null;e.removeData(this,"mousewheel-line-height"),e.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var a=e(t),r=a["offsetParent"in e.fn?"offsetParent":"parent"]();return r.length||(r=e("body")),parseInt(r.css("fontSize"),10)||parseInt(a.css("fontSize"),10)||16},getPageHeight:function(t){return e(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})}); diff --git a/js/reservation.js b/js/reservation.js new file mode 100755 index 0000000..3144df0 --- /dev/null +++ b/js/reservation.js @@ -0,0 +1,115 @@ +//jQuery(document).ready(function ($) { +(function ($, drupalSettings) { + + 'use strict'; + var allowedHours = drupalSettings.reservations.reservation_add.allowedHours; + var reservationsObj = drupalSettings.reservations.reservation_add.reservations; + var reservations =reservationsObj; +// for(var x in reservationsObj){ +//// console.log(x); +// console.log(reservationsObj[x]); +// reservations[x]=reservationsObj[x]; +// } + var currentdate = new Date(); + console.log(allowedHours); + function getAllowedHours(currentDateTime) { + var selected_court = $('#court').val(); + if(!selected_court){ + return []; + } + selected_court = "'"+selected_court + "'"; + var week_day = currentDateTime.getDay(); + week_day = "'"+week_day+"'"; + var curr_day = currentDateTime.getDate(); + console.log((""+curr_day).length); + curr_day = ((""+curr_day).length>1)?curr_day:"0"+curr_day; + var curr_month = currentDateTime.getMonth() + 1; + curr_month = ((""+curr_month).length>1)?curr_month:"0"+curr_month; + var curr_year = currentDateTime.getFullYear(); + var curr_date = "'" + curr_day + '.' + curr_month + '.' + curr_year + "'"; + var _array = []; +// console.log(reservations); +// console.log(reservations[curr_date]); +// console.log(curr_date); + console.log(curr_date); + // + // // change array if saturday(different working hours) + _array = allowedHours[selected_court][week_day]; +// if (week_day == 6) { +// remove_hours = ['09:30', '09:45', '18:00', '18:15', '18:30', '18:45']; +// _array = allowedHours.filter(function (i) { +// return !(remove_hours.indexOf(i) > -1); +// }) +// } else { +// _array = allowedHours; +// } +// z console.log(curr_date); +// _array = JSON.parse("[" + _array + "]") + console.log(_array); + _array = _array.split(','); + console.log(reservations[selected_court]); + if (typeof reservations[selected_court] != "undefined" && typeof reservations[selected_court][curr_date] != "undefined") { + _array = _array.filter(function (i) { + return !(reservations[selected_court][curr_date].indexOf(i) > -1); + }); + } + console.log(_array); + console.log("aaaa"); +// console.log(_array); + return _array; + } +// var datetimepicker ; +// function setObject(ct){ +// console.log(datetimepicker); +// datetimepicker = this; +// } + function reloadHours(currentDateTime, $input) { + var new_arr = getAllowedHours(currentDateTime); +//console.log(new_arr); +//console.log(["10:00", "15:00"]); +// console.log(currentDateTime.getMonth()); +// console.log(currentDateTime.getDay()); +// console.log(currentDateTime.getDate()); + jQuery('#datetimepicker').datetimepicker({allowTimes: new_arr}); + +// $.datetimepicker.setOptions({ +// allowTimes: new_arr +// }); + } + + jQuery('#datetimepicker').datetimepicker({ + format: 'd.m.Y H:i', + inline: true, + lang: 'bg', +// onShow: setObject, +// onShow: function(ct){/*datetimepicker = this;*/alert('aaaaa')}, +// disabledWeekDays: [0], + minDate: 0, +// minTime: '12:00', + allowTimes: getAllowedHours(currentdate), +// allowTimes: [ +// '09:00', +// '11:15', +// '12:00', +// '15:00', +// '21:00' +// ], + step: 60, + defaultDate: new Date(), + dayOfWeekStart: 1, + onSelectDate: reloadHours +// theme:'dark' + }); + $.datetimepicker.setLocale('bg'); + + $('#court').change(function(){ + if($(this).val()){ + $('#datetimepicker').parent().css("display", "block"); + reloadHours(currentdate); + }else{ + $('#datetimepicker').parent().css("display", "none"); + } + }) + +})(jQuery, drupalSettings); + diff --git a/reservations.info.yml b/reservations.info.yml new file mode 100755 index 0000000..e78ba7d --- /dev/null +++ b/reservations.info.yml @@ -0,0 +1,10 @@ +name: Reservations +description: Reservations module. Make possible creation of reservation system on your website. +#package: Other +type: module +core: 8.x +dependencies: + - drupal:node + - drupal:path + - drupal:text + diff --git a/reservations.libraries.yml b/reservations.libraries.yml new file mode 100755 index 0000000..c178898 --- /dev/null +++ b/reservations.libraries.yml @@ -0,0 +1,35 @@ +# A simple script using jquery ui accordion. +reservation_add: + # Add css file. + css: + component: + css/jquery.datetimepicker.min.css: {} + css/reservation.css: {} + js: + js/jquery.datetimepicker.full.min.js: {} + js/reservation.js: {} + # Build up our dependencies for this page as a library. Our accordion script + # needs jquery.ui.accordion. You can find the core scripts under core/assets/. + dependencies: + - core/jquery + - core/drupalSettings + +# Show how weights work. +reservation_admin: + # Add css file. + css: + component: + css/reservations.css: {} +# # Add js files. +# js: +# # weight is used as example attribute, but please avoid it and instead use +# # dependencies for order loading. +# js/red.js: { weight: -4 } +# js/blue.js: { weight: -2 } +# js/green.js: { weight: -1 } +# js/brown.js: { weight: -2 } +# js/black.js: { weight: -1 } +# js/purple.js: { weight: -5 } +# dependencies: +# - core/jquery +# - core/drupalSettings diff --git a/reservations.module b/reservations.module new file mode 100755 index 0000000..86cbfb3 --- /dev/null +++ b/reservations.module @@ -0,0 +1,31 @@ + array( +// 'template' => 'reservations.reservation_add', +// 'variables' => array('title' => NULL), +// ), +// ); +//} + +/* Implements hook_form_FORM_ID_alter() */ +function reservations_form_node_courts_form_alter(&$form, &$form_state, $form_id) { + $form['#after_build'][] = 'reservations_add_css_in_admin_part'; +} +function reservations_form_node_courts_edit_form_alter(&$form, &$form_state, $form_id) { + $form['#after_build'][] = 'reservations_add_css_in_admin_part'; +} + +function reservations_add_css_in_admin_part($form, &$form_state) { +// $style_path = drupal_get_path('module','reservations') . '/css/reservations.css'; +// dpm($form); + // drupal_add_css('file', $style_path); + $form['#attached']['library'][] = 'reservations/reservation_admin'; + return $form; +} + diff --git a/reservations.routing.yml b/reservations.routing.yml new file mode 100755 index 0000000..c710935 --- /dev/null +++ b/reservations.routing.yml @@ -0,0 +1,7 @@ +reservations.reservation_add: + path: 'reservation' + defaults: + _title: 'Make reservation' + _form: '\Drupal\reservations\Form\ReservationAddForm' + requirements: + _permission: 'access content' diff --git a/src/Form/ReservationAddForm.php b/src/Form/ReservationAddForm.php new file mode 100755 index 0000000..f8eeaf3 --- /dev/null +++ b/src/Form/ReservationAddForm.php @@ -0,0 +1,240 @@ +condition('status', 1); + $query->condition('type', 'courts'); + $courtsIds = $query->execute(); + $courts = \Drupal::entityTypeManager()->getStorage('node')->loadMultiple($courtsIds); + $courtsLst = array(); + $allowedHours = array(); + $i=0; + foreach ($courts as $court) { + $courtsLst[$court->nid->value] = $court->title->value; + $allowedHours["'".$court->nid->value."'"] = $this->makeAllowedHours($court); + } + + $query2 = \Drupal::entityQuery('node'); + $query2->condition('status', 1); + $query2->condition('type', 'reservations'); + $query2->condition('field_reservation_time', time(), '>'); + $reservationIds = $query2->execute(); + $reservations = \Drupal::entityTypeManager()->getStorage('node')->loadMultiple($reservationIds); + $reservationsLst = array(); +// dpm($reservation->field_reservation_time->value); + foreach ($reservations as $reservation) { + $court = $reservation->field_court->target_id; +// $reservationsLst[date("j.m.Y", $reservation->field_reservation_time->value)][] = date("H:i", $reservation->field_reservation_time->value); + $reservationsLst[$court][date("d.m.Y", strtotime($reservation->field_reservation_time->value))][] = date("H:i", strtotime($reservation->field_reservation_time->value)); + } + $reservationArr = array(); + foreach ($reservationsLst as $court => $reservations) { + $court_reservations = array(); + foreach ($reservations as $key => $value) { + $court_reservations["'".$key."'"] = $value; + + } + foreach ($court_reservations as $date => $arr) { +// dpm($arr); + $reservationArr["'".$court."'"][$date] = "['" . implode("','", $arr). "']"; + + } +// echo'reservations["' . $key . '"]=["' . implode('","', $value) . '"];'; + } +//dpm($reservationArr); + $form['message'] = array( + '#markup' => $this->t('Make your reservation.'), + ); + + $form['add'] = array( + '#type' => 'fieldset', + '#title' => t('Your information'), + ); + $form['add']['pname'] = array( + '#type' => 'textfield', + '#title' => t('Your name') . ":", + '#size' => 30, + '#required' => TRUE + ); + $form['add']['pemail'] = array( + '#type' => 'email', + '#title' => t('E-mail') . ":", + '#size' => 15, + '#required' => TRUE + ); + $form['add']['phone'] = array( + '#type' => 'tel', + '#title' => t('Your phone') . ":", + '#size' => 15, + '#required' => TRUE + // '#description' => t("Values greater than 127 will cause an exception. Try it - it's a great example why exception handling is needed with DTBNG."), + ); + $form['court'] = array( + '#type' => 'select', + '#title' => t('Court') . ":", + '#options' => $courtsLst, + '#required' => TRUE, + '#attributes' => array('id' => 'court'), +// '#options' => [ +// '1' => $this->t('One'), +// '2' => $this->t('Two'), +// //'2' => [ +// //'2.1' => $this->t('Two point one'), +// //'2.2' => $this->t('Two point two'), +// //], +// '3' => $this->t('Three'), +// ] + //'#size' => 15, + //'#attributes' => array('id'=>'datetimepicker', 'class' => array('datetimepicker')), + ); + $form['reservation_time'] = array( + '#type' => 'textfield', + '#title' => t('Reserve on') . ":", + '#size' => 15, + '#attributes' => array('id' => 'datetimepicker', 'class' => array('datetimepicker')), + '#required' => TRUE + ); + $form['note'] = array( + '#type' => 'textarea', + '#title' => t('Note') . ":", + '#rows' => 5, + '#cols' => 80, + '#resizable' => 'none', + '#description' => t("You can leave your note here."), + ); + $form['submit'] = array( + '#type' => 'submit', + '#value' => t('Add'), + ); + $form['#attached']['library'][] = 'reservations/reservation_add'; + $form['#attached']['drupalSettings']['reservations']['reservation_add']['reservations'] = $reservationArr; + $form['#attached']['drupalSettings']['reservations']['reservation_add']['allowedHours'] = $allowedHours; + + return $form; + } + + /** + * {@inheritdoc} + */ + public function validateForm(array &$form, FormStateInterface $form_state) { + // Confirm that age is numeric. +// if (empty($form_state->getValue('pname'))) { +// $form_state->setErrorByName('pname', $this->t('Please fill your name.')); +// } + if (empty($form_state->getValue('pemail'))) { + $form_state->setErrorByName('pemail', $this->t('Please fill your e-mail.')); + } + if (empty($form_state->getValue('phone'))) { + $form_state->setErrorByName('phone', $this->t('Please fill your phone.')); + } + if (empty($form_state->getValue('reservation_time'))) { + $form_state->setErrorByName('reservation_time', $this->t('Please fill the time for your reservation.')); + } + if (!intval($form_state->getValue('court')) || $form_state->getValue('court') <= 0) { + $form_state->setErrorByName('court', $this->t('Please select court.')); + } + } + + /** + * {@inheritdoc} + */ + public function submitForm(array &$form, FormStateInterface $form_state) { + // Gather the current user so the new record has ownership. +// $account = $this->currentUser(); +// // Save the submitted entry. +// $entry = array( +// 'name' => $form_state->getValue('name'), +// 'surname' => $form_state->getValue('surname'), +// 'age' => $form_state->getValue('age'), +// 'uid' => $account->id(), +// ); +// $return = DbtngExampleStorage::insert($entry); +// if ($return) { +// drupal_set_message(t('Created entry @entry', array('@entry' => print_r($entry, TRUE)))); +// } + //Get vlaues from the form + $pname = $form_state->getValue('pname'); + $pemail = $form_state->getValue('pemail'); + $phone = $form_state->getValue('phone'); + $court = $form_state->getValue('court'); + $reservation_time = $form_state->getValue('reservation_time'); + $note = $form_state->getValue('note'); + +// $user = $this->currentUser(); +// drupal_set_message(print_r($courts)); + //Create an Entity. + $entry = entity_create('node', array('type' => 'reservations')); + + //Specify the author. + $entry->uid = \Drupal::currentUser()->id(); + // Perform some kind of data manipulation + $entry->title->value = $pname; + $entry->field_person_name->value = $pname; + $entry->field_person_phone->value = $phone; + $entry->field_person_e_mail->value = $pemail; + $entry->field_court->target_id = $court; +// $entry->field_reservation_time->value = \Drupal::service('date.formatter')->format(time(), 'html_datetime'); + $entry->field_reservation_time->value = date(DATETIME_DATETIME_STORAGE_FORMAT, strtotime($reservation_time)); + $entry->field_note->value = $note; + $entry->save(); + drupal_set_message(t('Your reservation has been created.')); + drupal_set_message(t('We will see you on @date at @hour', array( + '@date' => date('d.m.Y', strtotime($reservation_time)), + '@hour' => date('H:i', strtotime($reservation_time)) + ) + ) + ); + } + + private function makeAllowedHours($court=null){ + if(!$court){ + return ""; + } + $allowedHours = array(); + $workingHours[0] = array($court->field_sunday_from->value, $court->field_sunday_to->value); + $workingHours[1] = array($court->field_monday_from->value, $court->field_monday_to->value); + $workingHours[2] = array($court->field_tuesday_from->value, $court->field_tuesday_to->value); + $workingHours[3] = array($court->field_wednesday_from->value, $court->field_wednesday_to->value); + $workingHours[4] = array($court->field_thursday_from->value, $court->field_thursday_to->value); + $workingHours[5] = array($court->field_friday_from->value, $court->field_friday_to->value); + $workingHours[6] = array($court->field_saturday_from->value, $court->field_saturday_to->value); + foreach ($workingHours as $key => $value) { + $start= explode(':', $value[0]); + $start= (int)$start[0]; + $end= explode(':', $value[1]); + $end= (int)$end[0]; + $allowedHoursTmp = array(); + for($i=$start;$i<=$end;$i++){ + $allowedHoursTmp[]=str_pad($i, 2, '0', STR_PAD_LEFT).":00"; + } + $allowedHours["'".$key."'"] = implode(",", $allowedHoursTmp); + } +// dpm($allowedHours); + + return $allowedHours; + } + +}