Commit 9a09ca68 authored by droces's avatar droces

A bunch of small improvements

parent d95f9eda
......@@ -85,11 +85,11 @@ label.form-required {
/* Loading indicator */
.loader {
border: 16px solid #515151; /* Dark grey */
border-top: 16px solid #4caf50; /* Material green */
border: 12px solid #515151; /* Dark grey */
border-top: 12px solid #1e95bc; /* Material green */
border-radius: 50%;
width: 80px;
height: 80px;
width: 60px;
height: 60px;
animation: spin 1s linear infinite;
position: fixed;
left: calc(50% - 40px);
......@@ -196,8 +196,8 @@ label.form-required {
background-color: rgba(30, 149, 188, 0.3); /* blue */
}
.fc-unthemed td.fc-today {
/*background: rgba(255, 212, 0, 0.14); */ /* yellow */
background: rgba(105, 197, 255, 0.16);
/*background: rgba(105, 197, 255, 0.16);*/ /* pale blue */
background: none;
}
.fc .fc-view-container {
height: auto !important;
......
......@@ -196,6 +196,8 @@ function add_field_listeners() {
});
arrival_field.change(function() {
date_arrive = moment(arrival_field.val());
calendar.fullCalendar('gotoDate', date_arrive);
refresh_main_info();
});
departure_field.change(function() {
......@@ -511,7 +513,7 @@ function save_booking(data_object, type, success_callbacks, always_callbacks) {
.find('[class*="messages"]').remove();
var message_text = '<div><p>Thank you for booking with us! '
+ 'We have sent you an email with your prvisional booking information.</p>'
+ 'We have sent you an email with your provisional booking information.</p>'
+ '<p>Your reference number is <strong>' + data.nid + '</strong></p></div>';
var message = $(message_text)
.appendTo(booking_info_container.find('.message_container'))
......
......@@ -103,6 +103,8 @@ function booking_form_alter(&$form, FormStateInterface $form_state, $form_id) {
// Form for creating new booking nodes
case 'node_booking_form':
$form['actions']['publish']['#value'] = t('Place Booking');
if (in_array("/book", $build_info_args)) {
// kint('is front-end booking form');
fe_booking_form_alter($form, $form_state, $form_id);
......@@ -370,8 +372,6 @@ function fe_booking_form_alter(&$form, FormStateInterface $form_state, $form_id)
$form['actions']['preview']['#access'] = FALSE;
$form['actions']['delete']['#access'] = FALSE;
unset($form['actions']['publish']['#dropbutton']);
$form['actions']['publish']['#value'] = t('Place Booking');
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment