Added select box for the date format option in the settings page.
This commit is contained in:
parent
e71392ba3f
commit
ff1ebbe2c7
23 changed files with 83 additions and 1 deletions
|
@ -269,3 +269,6 @@ $lang['any_provider'] = 'Any Provider';
|
|||
$lang['requested_hour_is_unavailable'] = 'The requested appointment is unfornately not available. Please select a different hour for your appointment.';
|
||||
$lang['customer_notifications'] = 'Customer Notifications';
|
||||
$lang['customer_notifications_hint'] = 'Defines whether the customer will receive email notifications whenever there is a schedule change on one of his appointments.';
|
||||
$lang['date_format'] = 'Date Format';
|
||||
$lang['date_format_hint'] = 'Change the date display format (D - Date, M - Month, Y - Year).';
|
||||
$lang['google_analytics_code_hint'] = 'Add your Google Analytics ID to be included in the booking page.';
|
||||
|
|
|
@ -269,3 +269,6 @@ $lang['any_provider'] = 'Any Provider';
|
|||
$lang['requested_hour_is_unavailable'] = 'The requested appointment is unfornately not available. Please select a different hour for your appointment.';
|
||||
$lang['customer_notifications'] = 'Customer Notifications';
|
||||
$lang['customer_notifications_hint'] = 'Defines whether the customer will receive email notifications whenever there is a schedule change on one of his appointments.';
|
||||
$lang['date_format'] = 'Date Format';
|
||||
$lang['date_format_hint'] = 'Change the date display format (D - Date, M - Month, Y - Year).';
|
||||
$lang['google_analytics_code_hint'] = 'Add your Google Analytics ID to be included in the booking page.';
|
||||
|
|
|
@ -269,3 +269,6 @@ $lang['any_provider'] = 'Any Provider';
|
|||
$lang['requested_hour_is_unavailable'] = 'The requested appointment is unfornately not available. Please select a different hour for your appointment.';
|
||||
$lang['customer_notifications'] = 'Customer Notifications';
|
||||
$lang['customer_notifications_hint'] = 'Defines whether the customer will receive email notifications whenever there is a schedule change on one of his appointments.';
|
||||
$lang['date_format'] = 'Date Format';
|
||||
$lang['date_format_hint'] = 'Change the date display format (D - Date, M - Month, Y - Year).';
|
||||
$lang['google_analytics_code_hint'] = 'Add your Google Analytics ID to be included in the booking page.';
|
||||
|
|
|
@ -269,3 +269,6 @@ $lang['any_provider'] = 'Any Provider';
|
|||
$lang['requested_hour_is_unavailable'] = 'The requested appointment is unfornately not available. Please select a different hour for your appointment.';
|
||||
$lang['customer_notifications'] = 'Customer Notifications';
|
||||
$lang['customer_notifications_hint'] = 'Defines whether the customer will receive email notifications whenever there is a schedule change on one of his appointments.';
|
||||
$lang['date_format'] = 'Date Format';
|
||||
$lang['date_format_hint'] = 'Change the date display format (D - Date, M - Month, Y - Year).';
|
||||
$lang['google_analytics_code_hint'] = 'Add your Google Analytics ID to be included in the booking page.';
|
||||
|
|
|
@ -269,3 +269,6 @@ $lang['any_provider'] = 'Any Provider';
|
|||
$lang['requested_hour_is_unavailable'] = 'The requested appointment is unfornately not available. Please select a different hour for your appointment.';
|
||||
$lang['customer_notifications'] = 'Customer Notifications';
|
||||
$lang['customer_notifications_hint'] = 'Defines whether the customer will receive email notifications whenever there is a schedule change on one of his appointments.';
|
||||
$lang['date_format'] = 'Date Format';
|
||||
$lang['date_format_hint'] = 'Change the date display format (D - Date, M - Month, Y - Year).';
|
||||
$lang['google_analytics_code_hint'] = 'Add your Google Analytics ID to be included in the booking page.';
|
||||
|
|
|
@ -269,3 +269,6 @@ $lang['any_provider'] = 'Any Provider';
|
|||
$lang['requested_hour_is_unavailable'] = 'The requested appointment is unfornately not available. Please select a different hour for your appointment.';
|
||||
$lang['customer_notifications'] = 'Customer Notifications';
|
||||
$lang['customer_notifications_hint'] = 'Defines whether the customer will receive email notifications whenever there is a schedule change on one of his appointments.';
|
||||
$lang['date_format'] = 'Date Format';
|
||||
$lang['date_format_hint'] = 'Change the date display format (D - Date, M - Month, Y - Year).';
|
||||
$lang['google_analytics_code_hint'] = 'Add your Google Analytics ID to be included in the booking page.';
|
||||
|
|
|
@ -269,3 +269,6 @@ $lang['any_provider'] = 'Jeder Anbieter';
|
|||
$lang['requested_hour_is_unavailable'] = 'The requested appointment is unfornately not available. Please select a different hour for your appointment.';
|
||||
$lang['customer_notifications'] = 'Customer Notifications';
|
||||
$lang['customer_notifications_hint'] = 'Defines whether the customer will receive email notifications whenever there is a schedule change on one of his appointments.';
|
||||
$lang['date_format'] = 'Datumsformat';
|
||||
$lang['date_format_hint'] = 'Ändern Sie das Datumsanzeigeformat (D - Datum, M - Monat, Y - Jahr).';
|
||||
$lang['google_analytics_code_hint'] = 'Fügen Sie Ihre Google Analytics-ID hinzu, das auf der Buchungsseite enthalten wird.';
|
||||
|
|
|
@ -269,3 +269,6 @@ $lang['any_provider'] = 'Οποιοσδήποτε Πάροχος';
|
|||
$lang['requested_hour_is_unavailable'] = 'Το απαιτούμενο ραντεβού δεν είναι δυστυχώς διαθέσιμο. Παρακαλώ επιλέξτε κάποια άλλη ώρα για το ραντεβού σας.';
|
||||
$lang['customer_notifications'] = 'Customer Notifications';
|
||||
$lang['customer_notifications_hint'] = 'Defines whether the customer will receive email notifications whenever there is a schedule change on one of his appointments.';
|
||||
$lang['date_format'] = 'Μορφή Ημερομηνίας';
|
||||
$lang['date_format_hint'] = 'Αλλάξτε την μορφή ημερομηνίας (D - Ημέρα, M - Μήνας, Y - Χρόνος).';
|
||||
$lang['google_analytics_code_hint'] = 'Προσθέστε τον Google Analytics ID σας το οποίο θα συμπεριληφθεί στην σελίδα κράτησης.';
|
||||
|
|
|
@ -269,3 +269,6 @@ $lang['any_provider'] = 'Any Provider';
|
|||
$lang['requested_hour_is_unavailable'] = 'The requested appointment is unfornately not available. Please select a different hour for your appointment.';
|
||||
$lang['customer_notifications'] = 'Customer Notifications';
|
||||
$lang['customer_notifications_hint'] = 'Defines whether the customer will receive email notifications whenever there is a schedule change on one of his appointments.';
|
||||
$lang['date_format'] = 'Date Format';
|
||||
$lang['date_format_hint'] = 'Change the date display format (D - Date, M - Month, Y - Year).';
|
||||
$lang['google_analytics_code_hint'] = 'Add your Google Analytics ID to be included in the booking page.';
|
||||
|
|
|
@ -269,3 +269,6 @@ $lang['any_provider'] = 'Any Provider';
|
|||
$lang['requested_hour_is_unavailable'] = 'The requested appointment is unfornately not available. Please select a different hour for your appointment.';
|
||||
$lang['customer_notifications'] = 'Customer Notifications';
|
||||
$lang['customer_notifications_hint'] = 'Defines whether the customer will receive email notifications whenever there is a schedule change on one of his appointments.';
|
||||
$lang['date_format'] = 'Date Format';
|
||||
$lang['date_format_hint'] = 'Change the date display format (D - Date, M - Month, Y - Year).';
|
||||
$lang['google_analytics_code_hint'] = 'Add your Google Analytics ID to be included in the booking page.';
|
||||
|
|
|
@ -275,3 +275,6 @@ $lang['any_provider'] = 'Any Provider';
|
|||
$lang['requested_hour_is_unavailable'] = 'The requested appointment is unfornately not available. Please select a different hour for your appointment.';
|
||||
$lang['customer_notifications'] = 'Customer Notifications';
|
||||
$lang['customer_notifications_hint'] = 'Defines whether the customer will receive email notifications whenever there is a schedule change on one of his appointments.';
|
||||
$lang['date_format'] = 'Date Format';
|
||||
$lang['date_format_hint'] = 'Change the date display format (D - Date, M - Month, Y - Year).';
|
||||
$lang['google_analytics_code_hint'] = 'Add your Google Analytics ID to be included in the booking page.';
|
||||
|
|
|
@ -269,3 +269,6 @@ $lang['any_provider'] = 'Any Provider';
|
|||
$lang['requested_hour_is_unavailable'] = 'The requested appointment is unfornately not available. Please select a different hour for your appointment.';
|
||||
$lang['customer_notifications'] = 'Customer Notifications';
|
||||
$lang['customer_notifications_hint'] = 'Defines whether the customer will receive email notifications whenever there is a schedule change on one of his appointments.';
|
||||
$lang['date_format'] = 'Date Format';
|
||||
$lang['date_format_hint'] = 'Change the date display format (D - Date, M - Month, Y - Year).';
|
||||
$lang['google_analytics_code_hint'] = 'Add your Google Analytics ID to be included in the booking page.';
|
||||
|
|
|
@ -269,3 +269,6 @@ $lang['any_provider'] = 'Any Provider';
|
|||
$lang['requested_hour_is_unavailable'] = 'The requested appointment is unfornately not available. Please select a different hour for your appointment.';
|
||||
$lang['customer_notifications'] = 'Customer Notifications';
|
||||
$lang['customer_notifications_hint'] = 'Defines whether the customer will receive email notifications whenever there is a schedule change on one of his appointments.';
|
||||
$lang['date_format'] = 'Date Format';
|
||||
$lang['date_format_hint'] = 'Change the date display format (D - Date, M - Month, Y - Year).';
|
||||
$lang['google_analytics_code_hint'] = 'Add your Google Analytics ID to be included in the booking page.';
|
||||
|
|
|
@ -269,3 +269,6 @@ $lang['any_provider'] = 'Any Provider';
|
|||
$lang['requested_hour_is_unavailable'] = 'The requested appointment is unfornately not available. Please select a different hour for your appointment.';
|
||||
$lang['customer_notifications'] = 'Customer Notifications';
|
||||
$lang['customer_notifications_hint'] = 'Defines whether the customer will receive email notifications whenever there is a schedule change on one of his appointments.';
|
||||
$lang['date_format'] = 'Date Format';
|
||||
$lang['date_format_hint'] = 'Change the date display format (D - Date, M - Month, Y - Year).';
|
||||
$lang['google_analytics_code_hint'] = 'Add your Google Analytics ID to be included in the booking page.';
|
||||
|
|
|
@ -269,3 +269,6 @@ $lang['any_provider'] = 'Any Provider';
|
|||
$lang['requested_hour_is_unavailable'] = 'The requested appointment is unfornately not available. Please select a different hour for your appointment.';
|
||||
$lang['customer_notifications'] = 'Customer Notifications';
|
||||
$lang['customer_notifications_hint'] = 'Defines whether the customer will receive email notifications whenever there is a schedule change on one of his appointments.';
|
||||
$lang['date_format'] = 'Date Format';
|
||||
$lang['date_format_hint'] = 'Change the date display format (D - Date, M - Month, Y - Year).';
|
||||
$lang['google_analytics_code_hint'] = 'Add your Google Analytics ID to be included in the booking page.';
|
||||
|
|
|
@ -269,3 +269,6 @@ $lang['any_provider'] = 'Any Provider';
|
|||
$lang['requested_hour_is_unavailable'] = 'The requested appointment is unfornately not available. Please select a different hour for your appointment.';
|
||||
$lang['customer_notifications'] = 'Customer Notifications';
|
||||
$lang['customer_notifications_hint'] = 'Defines whether the customer will receive email notifications whenever there is a schedule change on one of his appointments.';
|
||||
$lang['date_format'] = 'Date Format';
|
||||
$lang['date_format_hint'] = 'Change the date display format (D - Date, M - Month, Y - Year).';
|
||||
$lang['google_analytics_code_hint'] = 'Add your Google Analytics ID to be included in the booking page.';
|
||||
|
|
|
@ -275,3 +275,6 @@ $lang['any_provider'] = 'Any Provider';
|
|||
$lang['requested_hour_is_unavailable'] = 'The requested appointment is unfornately not available. Please select a different hour for your appointment.';
|
||||
$lang['customer_notifications'] = 'Customer Notifications';
|
||||
$lang['customer_notifications_hint'] = 'Defines whether the customer will receive email notifications whenever there is a schedule change on one of his appointments.';
|
||||
$lang['date_format'] = 'Date Format';
|
||||
$lang['date_format_hint'] = 'Change the date display format (D - Date, M - Month, Y - Year).';
|
||||
$lang['google_analytics_code_hint'] = 'Add your Google Analytics ID to be included in the booking page.';
|
||||
|
|
|
@ -269,3 +269,6 @@ $lang['any_provider'] = 'Any Provider';
|
|||
$lang['requested_hour_is_unavailable'] = 'The requested appointment is unfornately not available. Please select a different hour for your appointment.';
|
||||
$lang['customer_notifications'] = 'Customer Notifications';
|
||||
$lang['customer_notifications_hint'] = 'Defines whether the customer will receive email notifications whenever there is a schedule change on one of his appointments.';
|
||||
$lang['date_format'] = 'Date Format';
|
||||
$lang['date_format_hint'] = 'Change the date display format (D - Date, M - Month, Y - Year).';
|
||||
$lang['google_analytics_code_hint'] = 'Add your Google Analytics ID to be included in the booking page.';
|
||||
|
|
|
@ -269,3 +269,6 @@ $lang['any_provider'] = 'Any Provider';
|
|||
$lang['requested_hour_is_unavailable'] = 'The requested appointment is unfornately not available. Please select a different hour for your appointment.';
|
||||
$lang['customer_notifications'] = 'Customer Notifications';
|
||||
$lang['customer_notifications_hint'] = 'Defines whether the customer will receive email notifications whenever there is a schedule change on one of his appointments.';
|
||||
$lang['date_format'] = 'Date Format';
|
||||
$lang['date_format_hint'] = 'Change the date display format (D - Date, M - Month, Y - Year).';
|
||||
$lang['google_analytics_code_hint'] = 'Add your Google Analytics ID to be included in the booking page.';
|
||||
|
|
|
@ -269,3 +269,6 @@ $lang['any_provider'] = 'Any Provider';
|
|||
$lang['requested_hour_is_unavailable'] = 'The requested appointment is unfornately not available. Please select a different hour for your appointment.';
|
||||
$lang['customer_notifications'] = 'Customer Notifications';
|
||||
$lang['customer_notifications_hint'] = 'Defines whether the customer will receive email notifications whenever there is a schedule change on one of his appointments.';
|
||||
$lang['date_format'] = 'Date Format';
|
||||
$lang['date_format_hint'] = 'Change the date display format (D - Date, M - Month, Y - Year).';
|
||||
$lang['google_analytics_code_hint'] = 'Add your Google Analytics ID to be included in the booking page.';
|
||||
|
|
|
@ -269,3 +269,6 @@ $lang['any_provider'] = 'Any Provider';
|
|||
$lang['requested_hour_is_unavailable'] = 'The requested appointment is unfornately not available. Please select a different hour for your appointment.';
|
||||
$lang['customer_notifications'] = 'Customer Notifications';
|
||||
$lang['customer_notifications_hint'] = 'Defines whether the customer will receive email notifications whenever there is a schedule change on one of his appointments.';
|
||||
$lang['date_format'] = 'Date Format';
|
||||
$lang['date_format_hint'] = 'Change the date display format (D - Date, M - Month, Y - Year).';
|
||||
$lang['google_analytics_code_hint'] = 'Add your Google Analytics ID to be included in the booking page.';
|
||||
|
|
|
@ -105,6 +105,24 @@
|
|||
Google Analytics ID</label>
|
||||
<input type="text" id="google-analytics-code" placeholder="UA-XXXXXXXX-X"
|
||||
data-field="google_analytics_code" class="form-control">
|
||||
<span class="help-block">
|
||||
<?php echo $this->lang->line('google_analytics_code_hint'); ?>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label for="date-format">
|
||||
<?php echo $this->lang->line('date_format'); ?>
|
||||
</label>
|
||||
<select class="form-control" id="date-format" data-field="date_format">
|
||||
<option value="DMY">DMY</option>
|
||||
<option value="MDY">MDY</option>
|
||||
<option value="YMD">YMD</option>
|
||||
</select>
|
||||
<span class="help-block">
|
||||
<?php echo $this->lang->line('date_format_hint'); ?>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -46,6 +46,7 @@ var BackendSettings = {
|
|||
// Apply setting values from database.
|
||||
$.each(GlobalVariables.settings.system, function(index, setting) {
|
||||
$('input[data-field="' + setting.name + '"]').val(setting.value);
|
||||
$('select[data-field="' + setting.name + '"]').val(setting.value);
|
||||
});
|
||||
|
||||
var workingPlan = {};
|
||||
|
@ -259,7 +260,7 @@ SystemSettings.prototype.get = function() {
|
|||
var settings = [];
|
||||
|
||||
// General Settings Tab
|
||||
$('#general input').each(function() {
|
||||
$('#general').find('input, select').each(function() {
|
||||
settings.push({
|
||||
'name': $(this).attr('data-field'),
|
||||
'value': $(this).val()
|
||||
|
|
Loading…
Reference in a new issue