mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-12-22 06:32:24 +03:00
Translated backend calendar, services and users pages.
This commit is contained in:
parent
0ea56d143c
commit
ec6b0678ca
30 changed files with 594 additions and 434 deletions
Binary file not shown.
|
@ -44,7 +44,6 @@ class Appointments extends CI_Controller {
|
|||
. 'assets/images/error.png',
|
||||
'company_name' => $company_name
|
||||
);
|
||||
$view['ea_lang'] = $this->lang->language;
|
||||
$this->load->view('appointments/message', $view);
|
||||
return;
|
||||
}
|
||||
|
@ -77,7 +76,6 @@ class Appointments extends CI_Controller {
|
|||
$view['exceptions'][] = $exc;
|
||||
}
|
||||
|
||||
$view['ea_lang'] = $this->lang->language;
|
||||
$this->load->view('appointments/book', $view);
|
||||
|
||||
} else {
|
||||
|
@ -195,7 +193,6 @@ class Appointments extends CI_Controller {
|
|||
$view['exceptions'][] = $exc;
|
||||
}
|
||||
|
||||
$view['ea_lang'] = $this->lang->language;
|
||||
$this->load->view('appointments/book_success', $view);
|
||||
}
|
||||
}
|
||||
|
@ -291,7 +288,6 @@ class Appointments extends CI_Controller {
|
|||
$view['exceptions'] = $exceptions;
|
||||
}
|
||||
|
||||
$view['ea_lang'] = $this->lang->language;
|
||||
$this->load->view('appointments/cancel', $view);
|
||||
}
|
||||
|
||||
|
|
|
@ -21,7 +21,6 @@ class User extends CI_Controller {
|
|||
}
|
||||
|
||||
$view['company_name'] = $this->settings_model->get_setting('company_name');
|
||||
$view['ea_lang'] = $this->lang->language;
|
||||
$this->load->view('user/login', $view);
|
||||
}
|
||||
|
||||
|
@ -36,7 +35,6 @@ class User extends CI_Controller {
|
|||
|
||||
$view['base_url'] = $this->config->item('base_url');
|
||||
$view['company_name'] = $this->settings_model->get_setting('company_name');
|
||||
$view['ea_lang'] = $this->lang->language;
|
||||
$this->load->view('user/logout', $view);
|
||||
}
|
||||
|
||||
|
@ -44,7 +42,6 @@ class User extends CI_Controller {
|
|||
$this->load->model('settings_model');
|
||||
$view['base_url'] = $this->config->item('base_url');
|
||||
$view['company_name'] = $this->settings_model->get_setting('company_name');
|
||||
$view['ea_lang'] = $this->lang->language;
|
||||
$this->load->view('user/forgot_password', $view);
|
||||
}
|
||||
|
||||
|
@ -52,7 +49,6 @@ class User extends CI_Controller {
|
|||
$this->load->model('settings_model');
|
||||
$view['base_url'] = $this->config->item('base_url');
|
||||
$view['company_name'] = $this->settings_model->get_setting('company_name');
|
||||
$view['ea_lang'] = $this->lang->language;
|
||||
$this->load->view('user/no_privileges', $view);
|
||||
}
|
||||
|
||||
|
|
|
@ -44,9 +44,11 @@ $lang['be_appointment_details_changed'] = 'Appointment details have changed.';
|
|||
$lang['be_appointment_changes_saved'] = 'Appointment changes have been successfully saved!';
|
||||
$lang['be_save'] = 'Save';
|
||||
$lang['be_new'] = 'New';
|
||||
$lang['be_selected'] = 'Select';
|
||||
$lang['be_select'] = 'Select';
|
||||
$lang['be_hide'] = 'Hide';
|
||||
$lang['be_type_to_filter_customers'] = 'Type to filter customers.';
|
||||
$lang['be_clear_fields_add_existing_customer_hint'] = 'Clear the fields and enter a new customer.';
|
||||
$lang['be_pick_existing_customer_hint'] = 'Pick an existing customer.';
|
||||
$lang['be_new_appointment_title'] = 'New Appointment';
|
||||
$lang['be_edit_appointment_title'] = 'Edit Appointment';
|
||||
$lang['be_delete_appointment_title'] = 'Delete Appointment';
|
||||
|
@ -54,12 +56,12 @@ $lang['be_write_appointment_removal_reason'] = 'Please take a minute to write th
|
|||
$lang['be_appointment_saved'] = 'Appointment saved successfully!';
|
||||
$lang['be_new_unavailable_title'] = 'New Unavailable Period';
|
||||
$lang['be_edit_unavailable_title'] = 'Edit Unavailable Period';
|
||||
$lang['be_unavailabled_saved'] = 'Unavailable period saved successfully!';
|
||||
$lang['be_unavailable_saved'] = 'Unavailable period saved successfully!';
|
||||
$lang['be_start_date_before_end_error'] = 'Start date value is bigger than end date!';
|
||||
$lang['be_invalid_email'] = 'Invalid email address!';
|
||||
$lang['be_customers'] = 'Customers';
|
||||
$lang['be_details'] = 'Details';
|
||||
$lang['be_no_record_found'] = 'No records found...';
|
||||
$lang['be_no_records_found'] = 'No records found...';
|
||||
$lang['be_services'] = 'Services';
|
||||
$lang['be_duration_minutes'] = 'Duration (Minutes)';
|
||||
$lang['be_currency'] = 'Currency';
|
||||
|
@ -157,9 +159,27 @@ $lang['be_delete_secretary'] = 'Delete Secretary';
|
|||
$lang['be_delete_appointment'] = 'Delete Appointment';
|
||||
$lang['be_delete_unavailable'] = 'Delete Unavailable Period';
|
||||
$lang['be_delete'] = 'Delete';
|
||||
$lang['be_unexpected_issues'] = 'Unexpected Issues';
|
||||
$lang['be_unexpected_issues'] = 'Unexpected Isasues';
|
||||
$lang['be_unexpected_issues_message'] = 'The operation could not complete due to unexpected issues.';
|
||||
$lang['be_close'] = 'Close';
|
||||
$lang['be_page_not_found'] = 'Page Not Found';
|
||||
$lang['be_page_not_found_message'] = 'Unfortunately the page you requested does not exist. Please check your browser URL or head to another location using the buttons below.';
|
||||
$lang['be_error'] = 'Error';
|
||||
$lang['be_error'] = 'Error';
|
||||
$lang['be_no_privileges'] = 'No Privileges';
|
||||
$lang['be_no_provileges_message'] = 'You do not have the required privileges to view this page. Please navigate to a different section.';
|
||||
$lang['be_backend_calendar'] = 'Backend Calendar';
|
||||
$lang['be_start_date_time'] = 'Start Date / Time';
|
||||
$lang['be_end_date_time'] = 'End Date / Time';
|
||||
$lang['be_licensed_under'] = 'Licensed Under';
|
||||
$lang['be_unexpected_issues_occurred'] = 'Unexpected issues occured!';
|
||||
$lang['be_service_communication_error'] = 'A server communication error occurred, please try again.';
|
||||
$lang['be_no_privileges_edit_appointments'] = 'You do not have the required privileges to edit appointments.';
|
||||
$lang['be_unavailable_updated'] = 'Unavailable time period updated successfully!';
|
||||
$lang['be_appointments'] = 'Appointments';
|
||||
$lang['be_unexpected_warnings'] = 'Unexpected Warnings';
|
||||
$lang['be_unexpected_warnings_message'] = 'The operation completed but some warnings appeared.';
|
||||
$lang['be_filter'] = 'Filter';
|
||||
$lang['be_clear'] = 'Clear';
|
||||
$lang['be_uncategorized'] = 'Uncategorized';
|
||||
$lang['be_username_already_exists'] = 'Username already exists.';
|
||||
$lang['be_password_length_notice'] = 'Password must be at least $number characters long.';
|
|
@ -41,6 +41,7 @@ $lang['fe_appointment_details_title'] = 'Appointment Details';
|
|||
$lang['fe_customer_details_title'] = 'Customer Details';
|
||||
$lang['fe_service'] = 'Service';
|
||||
$lang['fe_provider'] = 'Provider';
|
||||
$lang['fe_customer'] = 'Customer';
|
||||
$lang['fe_start'] = 'Start';
|
||||
$lang['fe_end'] = 'End';
|
||||
$lang['fe_name'] = 'Name';
|
||||
|
|
|
@ -44,9 +44,11 @@ $lang['be_appointment_details_changed'] = 'Die Termindetails haben sich geänder
|
|||
$lang['be_appointment_changes_saved'] = 'Die Terminänderungen sind erfolgreich gespeichert worden!';
|
||||
$lang['be_save'] = 'Speichern';
|
||||
$lang['be_new'] = 'Neu';
|
||||
$lang['be_selected'] = 'Auswahl';
|
||||
$lang['be_select'] = 'Auswahl';
|
||||
$lang['be_hide'] = 'Verbergen';
|
||||
$lang['be_type_to_filter_customers'] = 'Eingeben um Kunden zu filtern.';
|
||||
$lang['be_clear_fields_add_existing_customer_hint'] = 'Deaktivieren Sie die Felder und geben Sie einen neuen Kunden.';
|
||||
$lang['be_pick_existing_customer_hint'] = 'Wählen Sie einen vorhandenen Kunden.';
|
||||
$lang['be_new_appointment_title'] = 'Neuer Termin';
|
||||
$lang['be_edit_appointment_title'] = 'Termin bearbeiten';
|
||||
$lang['be_delete_appointment_title'] = 'Termin löschen';
|
||||
|
@ -54,12 +56,12 @@ $lang['be_write_appointment_removal_reason'] = 'Bitte nehmen Sie sich eine Minut
|
|||
$lang['be_appointment_saved'] = 'Termin erfolgreich gespeichert!';
|
||||
$lang['be_new_unavailable_title'] = 'Neuer nicht zur Verfügung stehender Zeitraum';
|
||||
$lang['be_edit_unavailable_title'] = 'Nicht zur Verfügung stehenden Zeitraum bearbeiten';
|
||||
$lang['be_unavailabled_saved'] = 'Nicht zur Verfügung stehender Zeitraum erfolgreich gespeichert!';
|
||||
$lang['be_unavailable_saved'] = 'Nicht zur Verfügung stehender Zeitraum erfolgreich gespeichert!';
|
||||
$lang['be_start_date_before_end_error'] = 'Das Startdatum ist größer als das Enddatum!';
|
||||
$lang['be_invalid_email'] = 'Ungültige E-Mail-Adresse!';
|
||||
$lang['be_customers'] = 'Kunden';
|
||||
$lang['be_details'] = 'Details';
|
||||
$lang['be_no_record_found'] = 'Keine Einträge gefunden ...';
|
||||
$lang['be_no_records_found'] = 'Keine Einträge gefunden ...';
|
||||
$lang['be_services'] = 'Dienstleistungen';
|
||||
$lang['be_duration_minutes'] = 'Dauer (Minuten)';
|
||||
$lang['be_currency'] = 'Währung';
|
||||
|
@ -162,4 +164,22 @@ $lang['be_unexpected_issues_message'] = 'Dieser Vorgang konnte aufgrund unvorges
|
|||
$lang['be_close'] = 'Schließen';
|
||||
$lang['be_page_not_found'] = 'Seite Nicht Gefunden';
|
||||
$lang['be_page_not_found_message'] = 'Leider ist die von Ihnen angeforderte Seite existiert nicht. Bitte überprüfen Sie Ihre Browser-URL oder navigieren Sie zu einem anderen Ort mit den Tasten unten.';
|
||||
$lang['be_error'] = 'Fehler';
|
||||
$lang['be_error'] = 'Fehler';
|
||||
$lang['be_no_privileges'] = 'Unzureichende Berechtigungen';
|
||||
$lang['be_no_provileges_message'] = 'Sie haben nicht die Berechtigung, diese Seite zu sehen. Bitte wechseln Sie zu einem anderen Abschnitt.';
|
||||
$lang['be_backend_calendar'] = 'Backend Kalender';
|
||||
$lang['be_start_date_time'] = 'Start Datum / Zeit';
|
||||
$lang['be_end_date_time'] = 'Ende Datum / Zeit';
|
||||
$lang['be_licensed_under'] = 'Lizenzierte Unter';
|
||||
$lang['be_unexpected_issues_occured'] = 'Unerwartete Probleme aufgetreten!';
|
||||
$lang['be_service_communication_error'] = 'Während der Kommunikation mit dem Server ist ein Fehler aufgetreten, bitte versuchen Sie es erneut.';
|
||||
$lang['be_no_privileges_edit_appointments'] = 'Sie haben nicht die Berechtigung, um Termine zu bearbeiten.';
|
||||
$lang['be_unavailable_updated'] = 'Nicht zur Verfügung stehender Zeitraum erfolgreich erneuert worden!';
|
||||
$lang['be_appointments'] = 'Terminen';
|
||||
$lang['be_unexpected_warnings'] = 'Unerwartete Warnungen';
|
||||
$lang['be_unexpected_warnings_message'] = 'Der Vorgang wurde abgeschlossen, aber einige Warnungen erscheint.';
|
||||
$lang['be_filter'] = 'Filtern';
|
||||
$lang['be_clear'] = 'Deaktivieren';
|
||||
$lang['be_uncategorized'] = 'Nicht Zugeordnet';
|
||||
$lang['be_username_already_exists'] = 'Benutzername ist bereits vorhanden.';
|
||||
$lang['be_password_length_notice'] = 'Das Passwort muss mindestens $number Zeichen lang sein.';
|
|
@ -41,6 +41,7 @@ $lang['fe_appointment_details_title'] = 'Termindaten';
|
|||
$lang['fe_customer_details_title'] = 'Kundendaten';
|
||||
$lang['fe_service'] = 'Dienstleistung';
|
||||
$lang['fe_provider'] = 'Anbieter';
|
||||
$lang['fe_customer'] = 'Kunde';
|
||||
$lang['fe_start'] = 'Beginn';
|
||||
$lang['fe_end'] = 'Ende';
|
||||
$lang['fe_name'] = 'Name';
|
||||
|
|
|
@ -21,9 +21,9 @@ $lang['be_today'] = 'Σήμερα';
|
|||
$lang['be_not_working'] = 'Μη Εργάσιμη';
|
||||
$lang['be_break'] = 'Διάλειμμα';
|
||||
$lang['be_add'] = 'Προσθήκη';
|
||||
$lang['be_edit'] = 'Επεξεργασίαc';
|
||||
$lang['be_edit'] = 'Επεξεργασία';
|
||||
$lang['be_delete'] = 'Διαγραφή';
|
||||
$lang['be_hello'] = 'Γειά';
|
||||
$lang['be_hello'] = 'Χαίρετε';
|
||||
$lang['be_all_day'] = 'Ολοήμερο';
|
||||
$lang['be_manage_appointment_record_hint'] = 'Διαχειριστείτε όλες τις εγγραφές ραντεβού των διαθέσιμων πάροχων και υπηρεσιών.';
|
||||
$lang['be_select_filter_item_hint'] = 'Επιλέξτε τον πάροχο ή την υπηρεσία και δείτε τα ραντεβού στο ημερολόγιο.';
|
||||
|
@ -44,9 +44,11 @@ $lang['be_appointment_details_changed'] = 'Τα στοιχεία του ραντ
|
|||
$lang['be_appointment_changes_saved'] = 'Οι αλλαγές του ραντεβού αποθηκεύτηκαν επιτυχώς.';
|
||||
$lang['be_save'] = 'Αποθήκευση';
|
||||
$lang['be_new'] = 'Νέο';
|
||||
$lang['be_selected'] = 'Επιλογή';
|
||||
$lang['be_select'] = 'Επιλογή';
|
||||
$lang['be_hide'] = 'Απόκρυψη';
|
||||
$lang['be_type_to_filter_customers'] = 'Πληκτρολογήστε για να φιλτράρετε τους πελάτες.';
|
||||
$lang['be_clear_fields_add_existing_customer_hint'] = 'Καθαρισμός των πεδίων και εισαγωγή νέου πελάτη.';
|
||||
$lang['be_pick_existing_customer_hint'] = 'Επιλογή ενός υπάρχων πελάτη.';
|
||||
$lang['be_new_appointment_title'] = 'Νέο Ραντεβού';
|
||||
$lang['be_edit_appointment_title'] = 'Επεξεργασία Ραντεβού';
|
||||
$lang['be_delete_appointment_title'] = 'Διαγραφή Ραντεβού';
|
||||
|
@ -54,12 +56,12 @@ $lang['be_write_appointment_removal_reason'] = 'Παρακαλώ πάρτε λί
|
|||
$lang['be_appointment_saved'] = 'Το ραντεβού αποθηκεύτηκε επιτυχώς!';
|
||||
$lang['be_new_unavailable_title'] = 'Νέα Μη Διαθέσιμη Περίοδος';
|
||||
$lang['be_edit_unavailable_title'] = 'Επεξεργασία Μη Διαθέσιμης Περιόδου';
|
||||
$lang['be_unavailabled_saved'] = 'Η μη διαθέσιμη περίοδος αποθηκεύτηκε επιτυχώς!';
|
||||
$lang['be_unavailable_saved'] = 'Η μη διαθέσιμη περίοδος αποθηκεύτηκε επιτυχώς!';
|
||||
$lang['be_start_date_before_end_error'] = 'Η ημερομηνία εκκίνησης είναι μεγαλύτερα από την ημερομηνία λήξης.';
|
||||
$lang['be_invalid_email'] = 'Λανθασμένη διεύθυνση email!';
|
||||
$lang['be_customers'] = 'Πελάτες';
|
||||
$lang['be_details'] = 'Λεπτομέρειες';
|
||||
$lang['be_no_record_found'] = 'Δεν βρέθηκαν εγγραφές ...';
|
||||
$lang['be_no_records_found'] = 'Δεν βρέθηκαν εγγραφές ...';
|
||||
$lang['be_services'] = 'Υπηρεσίες';
|
||||
$lang['be_duration_minutes'] = 'Διάρκεια (Λεπτά)';
|
||||
$lang['be_currency'] = 'Νομισματική Μονάδα';
|
||||
|
@ -162,4 +164,22 @@ $lang['be_unexpected_issues_message'] = 'Η διαδικασία δεν μπόρ
|
|||
$lang['be_close'] = 'Κλείσιμο';
|
||||
$lang['be_page_not_found'] = 'Η Σελίδα Δεν Βρέθηκε';
|
||||
$lang['be_page_not_found_message'] = 'Δυστυχώς η σελίδα που ζητήσατε δεν υπάρχει. Παρακαλώ ελέγξτε την διεύθυνση του περιηγητή σας ή πηγαίνετε σε κάποια από τις παρακάτω τοποθεσίες.';
|
||||
$lang['be_error'] = 'Σφάλμα';
|
||||
$lang['be_error'] = 'Σφάλμα';
|
||||
$lang['be_no_privileges'] = 'Ανεπαρκή Δικαιώματα';
|
||||
$lang['be_no_provileges_message'] = 'Δεν έχετε τα απαραίτητα δικαιώματα για να δείτε αυτήν την σελίδα. Παρακαλώ πλοηγηθείτε σε κάποιο άλλο τμήμα.';
|
||||
$lang['be_backend_calendar'] = 'Ημερολόγιο Backend';
|
||||
$lang['be_start_date_time'] = 'Ημ. / Ώρα Έναρξης';
|
||||
$lang['be_end_date_time'] = 'Ημ. / Ώρα Λήξης';
|
||||
$lang['be_licensed_under'] = 'Σύμφωνα Με Την Άδεια';
|
||||
$lang['be_unexpected_issues_occured'] = 'Παρουσιάστηκαν απροσδόκητα προβλήματα!';
|
||||
$lang['be_service_communication_error'] = 'Παρουσιάστηκε σφάλμα κατά την επικοινωνία με τον διακομιστή, παρακαλώ προσπαθήστε ξανά.';
|
||||
$lang['be_no_privileges_edit_appointments'] = 'Δεν έχετε τα απαραίτητα δικαιώματα για να επεξεργαστείτε ραντεβού.';
|
||||
$lang['be_unavailable_updated'] = 'Η μη διαθέσιμη περίοδος ενημερώθηκε επιτυχώς!';
|
||||
$lang['be_appointments'] = 'Ραντεβού';
|
||||
$lang['be_unexpected_warnings'] = 'Απροσδόκητες Προειδοποιήσεις';
|
||||
$lang['be_unexpected_warnings_message'] = 'Η διαδικασία ολοκληρώθηκε αλλά εμφανίστηκαν κάποιες προειδοποιήσειες.';
|
||||
$lang['be_filter'] = 'Φιλτράρισμα';
|
||||
$lang['be_clear'] = 'Καθαρισμός';
|
||||
$lang['be_uncategorized'] = 'Χωρίς Κατηγορία';
|
||||
$lang['be_username_already_exists'] = 'Το όνομα χρήστη υπάρχει ήδη.';
|
||||
$lang['be_password_length_notice'] = 'Ο κωδικός θα πρέπει να είναι τουλάχιστον $number χαρακτήρες.';
|
|
@ -41,6 +41,7 @@ $lang['fe_appointment_details_title'] = 'Λεπτομέρειες Ραντεβο
|
|||
$lang['fe_customer_details_title'] = 'Λεπτομέρειες Πελάτη';
|
||||
$lang['fe_service'] = 'Υπηρεσία';
|
||||
$lang['fe_provider'] = 'Πάροχος';
|
||||
$lang['fe_customer'] = 'Πελάτης';
|
||||
$lang['fe_start'] = 'Έναρξη';
|
||||
$lang['fe_end'] = 'Λήξη';
|
||||
$lang['fe_name'] = 'Όνομα';
|
||||
|
|
|
@ -168,7 +168,6 @@ class Notifications {
|
|||
'Phone' => $this->ci->lang->line('fe_phone'),
|
||||
'Address' => $this->ci->lang->line('fe_address'),
|
||||
'Reason' => $this->ci->lang->line('fe_reason')
|
||||
|
||||
);
|
||||
|
||||
$email_html = file_get_contents(dirname(dirname(__FILE__))
|
||||
|
|
|
@ -55,9 +55,6 @@
|
|||
<script
|
||||
type="text/javascript"
|
||||
src="<?php echo $this->config->base_url(); ?>assets/js/frontend_book.js"></script>
|
||||
<script
|
||||
type="text/javascript"
|
||||
src="<?php echo $this->config->base_url(); ?>assets/js/general_functions.js"></script>
|
||||
|
||||
<?php
|
||||
// ------------------------------------------------------------
|
||||
|
@ -83,7 +80,7 @@
|
|||
customerData : <?php echo json_encode($customer_data); ?>,
|
||||
};
|
||||
|
||||
var EALang = <?php echo json_encode($ea_lang); ?>;
|
||||
var EALang = <?php echo json_encode($this->lang->language); ?>;
|
||||
|
||||
$(document).ready(function() {
|
||||
FrontendBook.initialize(true, GlobalVariables.manageMode);
|
||||
|
@ -374,5 +371,8 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script
|
||||
type="text/javascript"
|
||||
src="<?php echo $this->config->base_url(); ?>assets/js/general_functions.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -65,7 +65,7 @@
|
|||
'googleApiScope' : 'https://www.googleapis.com/auth/calendar'
|
||||
};
|
||||
|
||||
var EALang = <?php echo json_encode($ea_lang); ?>;
|
||||
var EALang = <?php echo json_encode($this->lang->language); ?>;
|
||||
|
||||
$(document).ready(function() {
|
||||
/**
|
||||
|
|
|
@ -27,6 +27,8 @@
|
|||
}
|
||||
};
|
||||
|
||||
var EALang = <?php echo json_encode($this->lang->language); ?>;
|
||||
|
||||
$(document).ready(function() {
|
||||
BackendCalendar.initialize(true);
|
||||
});
|
||||
|
@ -35,8 +37,12 @@
|
|||
<div id="calendar-page">
|
||||
<div id="calendar-toolbar">
|
||||
<div id="calendar-filter">
|
||||
<label for="select-filter-item">Display Calendar</label>
|
||||
<select id="select-filter-item" title="Select a provider or a service and view the appointments on the calendar."></select>
|
||||
<label for="select-filter-item">
|
||||
<?php echo $this->lang->line('be_display_calendar'); ?>
|
||||
</label>
|
||||
<select id="select-filter-item"
|
||||
title="<?php echo $this->lang->line('be_select_filter_item_hint'); ?>">
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div id="calendar-actions">
|
||||
|
@ -45,36 +51,37 @@
|
|||
<?php if (($role_slug == DB_SLUG_ADMIN || $role_slug == DB_SLUG_PROVIDER)
|
||||
&& $this->config->item('ea_google_sync_feature') == TRUE) { ?>
|
||||
<button id="google-sync" class="btn btn-primary"
|
||||
title="Trigger the Google Calendar synchronization process.">
|
||||
title="<?php echo $this->lang->line('be_trigger_google_sync_hint'); ?>">
|
||||
<i class="icon-refresh icon-white"></i>
|
||||
<span>Synchronize</span>
|
||||
<span><?php echo $this->lang->line('be_synchronize'); ?></span>
|
||||
</button>
|
||||
|
||||
<button id="enable-sync" class="btn" data-toggle="button"
|
||||
title="Enable appointment synchronization with provider's Google Calendar account.">
|
||||
title="<?php echo $this->lang->line('be_enable_appointment_sync_hint'); ?>">
|
||||
<i class="icon-calendar"></i>
|
||||
<span>Enable Sync</span>
|
||||
<span><?php echo $this->lang->line('be_enable_sync'); ?></span>
|
||||
</button>
|
||||
<?php } ?>
|
||||
|
||||
<button id="reload-appointments" class="btn" title="Reload calendar appointments.">
|
||||
<button id="reload-appointments" class="btn"
|
||||
title="<?php echo $this->lang->line('be_reload_appointments_hint'); ?>">
|
||||
<i class="icon-repeat"></i>
|
||||
<span>Reload</span>
|
||||
<span><?php echo $this->lang->line('be_reload'); ?></span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<?php if ($privileges[PRIV_APPOINTMENTS]['add'] == TRUE) { ?>
|
||||
<div class="btn-group">
|
||||
<button id="insert-appointment" class="btn btn-info"
|
||||
title="Create a new appointment and store it into the database.">
|
||||
title="<?php echo $this->lang->line('be_new_appointment_hint'); ?>">
|
||||
<i class="icon-plus icon-white"></i>
|
||||
<span>Appointment</span>
|
||||
<span><?php echo $this->lang->line('be_appointment'); ?></span>
|
||||
</button>
|
||||
|
||||
<button id="insert-unavailable" class="btn"
|
||||
title="During unavailable periods the provider won't accept new appointments.">
|
||||
title="<?php echo $this->lang->line('be_unavailable_periods_hint'); ?>">
|
||||
<i class="icon-plus"></i>
|
||||
<span>Unavailable</span>
|
||||
<span><?php echo $this->lang->line('be_unavailable'); ?></span>
|
||||
</button>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
@ -95,7 +102,7 @@
|
|||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal"
|
||||
aria-hidden="true">×</button>
|
||||
<h3>Edit Appointment</h3>
|
||||
<h3><?php echo $this->lang->line('be_edit_appointment_title'); ?></h3>
|
||||
</div>
|
||||
|
||||
<div class="modal-body">
|
||||
|
@ -103,12 +110,12 @@
|
|||
|
||||
<form class="form-horizontal">
|
||||
<fieldset>
|
||||
<legend>Appointment Details</legend>
|
||||
<legend><?php echo $this->lang->line('fe_appointment_details_title'); ?></legend>
|
||||
|
||||
<input id="appointment-id" type="hidden" />
|
||||
|
||||
<div class="control-group">
|
||||
<label for="select-service" class="control-label">Service *</label>
|
||||
<label for="select-service" class="control-label"><?php echo $this->lang->line('fe_service'); ?> *</label>
|
||||
<div class="controls">
|
||||
<select id="select-service" class="required span4">
|
||||
<?php
|
||||
|
@ -168,28 +175,28 @@
|
|||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label for="select-provider" class="control-label">Provider *</label>
|
||||
<label for="select-provider" class="control-label"><?php echo $this->lang->line('fe_provider'); ?> *</label>
|
||||
<div class="controls">
|
||||
<select id="select-provider" class="required span4"></select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label for="start-datetime" class="control-label">Start Date/Time</label>
|
||||
<label for="start-datetime" class="control-label"><?php echo $this->lang->line('be_start_date_time'); ?></label>
|
||||
<div class="controls">
|
||||
<input type="text" id="start-datetime" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label for="end-datetime" class="control-label">End Date/Time</label>
|
||||
<label for="end-datetime" class="control-label"><?php echo $this->lang->line('be_start_date_time'); ?></label>
|
||||
<div class="controls">
|
||||
<input type="text" id="end-datetime" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label for="notes" class="control-label">Notes</label>
|
||||
<label for="notes" class="control-label"><?php echo $this->lang->line('fe_notes'); ?></label>
|
||||
<div class="controls">
|
||||
<textarea id="appointment-notes" class="span4" rows="3"></textarea>
|
||||
</div>
|
||||
|
@ -198,12 +205,17 @@
|
|||
|
||||
<fieldset class="row-fluid">
|
||||
<legend>
|
||||
Customer Details
|
||||
<button id="new-customer" class="btn btn-mini" title="Clear the fields and enter a new customer."
|
||||
type="button">New</button>
|
||||
<?php echo $this->lang->line('fe_customer_details_title'); ?>
|
||||
<button id="new-customer" class="btn btn-mini"
|
||||
title="<?php echo $this->lang->line('be_clear_fields_add_existing_customer_hint'); ?>"
|
||||
type="button"><?php echo $this->lang->line('be_new'); ?>
|
||||
</button>
|
||||
<button id="select-customer" class="btn btn-primary btn-mini"
|
||||
title="Pick an existing customer." type="button">Select</button>
|
||||
<input type="text" id="filter-existing-customers" placeholder="Type to filter customers."
|
||||
title="<?php echo $this->lang->line('be_pick_existing_customer_hint'); ?>"
|
||||
type="button"><?php echo $this->lang->line('be_select'); ?>
|
||||
</button>
|
||||
<input type="text" id="filter-existing-customers"
|
||||
placeholder="<?php echo $this->lang->line('be_type_to_filter_customers'); ?>"
|
||||
style="display: none;" class="input-medium"/>
|
||||
<div id="existing-customers-list" style="display: none;"></div>
|
||||
</legend>
|
||||
|
@ -212,28 +224,32 @@
|
|||
|
||||
<div class="span5">
|
||||
<div class="control-group">
|
||||
<label for="first-name" class="control-label">First Name *</label>
|
||||
<label for="first-name" class="control-label">
|
||||
<?php echo $this->lang->line('fe_first_name'); ?> *</label>
|
||||
<div class="controls">
|
||||
<input type="text" id="first-name" class="required" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label for="last-name" class="control-label">Last Name *</label>
|
||||
<label for="last-name" class="control-label">
|
||||
<?php echo $this->lang->line('fe_last_name'); ?>*</label>
|
||||
<div class="controls">
|
||||
<input type="text" id="last-name" class="required" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label for="email" class="control-label">Email *</label>
|
||||
<label for="email" class="control-label">
|
||||
<?php echo $this->lang->line('fe_email'); ?>*</label>
|
||||
<div class="controls">
|
||||
<input type="text" id="email" class="required" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label for="phone-number" class="control-label">Phone Number *</label>
|
||||
<label for="phone-number" class="control-label">
|
||||
<?php echo $this->lang->line('fe_phone_number'); ?>*</label>
|
||||
<div class="controls">
|
||||
<input type="text" id="phone-number" class="required" />
|
||||
</div>
|
||||
|
@ -241,28 +257,35 @@
|
|||
</div>
|
||||
<div class="span6">
|
||||
<div class="control-group">
|
||||
<label for="address" class="control-label">Address</label>
|
||||
<label for="address" class="control-label">
|
||||
<?php echo $this->lang->line('fe_address'); ?>
|
||||
</label>
|
||||
<div class="controls">
|
||||
<input type="text" id="address" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label for="city" class="control-label">City</label>
|
||||
<label for="city" class="control-label">
|
||||
<?php echo $this->lang->line('fe_city'); ?>
|
||||
</label>
|
||||
<div class="controls">
|
||||
<input type="text" id="city" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label for="zip-code" class="control-label">Zip Code</label>
|
||||
<label for="zip-code" class="control-label">
|
||||
<?php echo $this->lang->line('fe_zip_code'); ?>
|
||||
</label>
|
||||
<div class="controls">
|
||||
<input type="text" id="zip-code" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label for="notes" class="control-label">Notes</label>
|
||||
<label for="notes" class="control-label">
|
||||
<?php echo $this->lang->line('fe_notes'); ?></label>
|
||||
<div class="controls">
|
||||
<textarea id="customer-notes" rows="3"></textarea>
|
||||
</div>
|
||||
|
@ -273,8 +296,12 @@
|
|||
</div>
|
||||
|
||||
<div class="modal-footer">
|
||||
<button id="save-appointment" class="btn btn-primary">Save</button>
|
||||
<button id="cancel-appointment" class="btn">Cancel</button>
|
||||
<button id="save-appointment" class="btn btn-primary">
|
||||
<?php echo $this->lang->line('be_save'); ?>
|
||||
</button>
|
||||
<button id="cancel-appointment" class="btn">
|
||||
<?php echo $this->lang->line('fe_cancel'); ?>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -289,7 +316,7 @@
|
|||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal"
|
||||
aria-hidden="true">×</button>
|
||||
<h3>Add Unavailable Period</h3>
|
||||
<h3><?php echo $this->lang->line('be_new_unavailable_title'); ?></h3>
|
||||
|
||||
</div>
|
||||
|
||||
|
@ -301,21 +328,27 @@
|
|||
<input id="unavailable-id" type="hidden" />
|
||||
|
||||
<div class="control-group">
|
||||
<label for="unavailable-start" class="control-label">Start</label>
|
||||
<label for="unavailable-start" class="control-label">
|
||||
<?php echo $this->lang->line('fe_start'); ?>
|
||||
</label>
|
||||
<div class="controls">
|
||||
<input type="text" id="unavailable-start" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label for="unavailable-end" class="control-label">End</label>
|
||||
<label for="unavailable-end" class="control-label">
|
||||
<?php echo $this->lang->line('fe_end'); ?>
|
||||
</label>
|
||||
<div class="controls">
|
||||
<input type="text" id="unavailable-end" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label for="unavailable-notes" class="control-label">Notes</label>
|
||||
<label for="unavailable-notes" class="control-label">
|
||||
<?php echo $this->lang->line('fe_notes'); ?>
|
||||
</label>
|
||||
<div class="controls">
|
||||
<textarea id="unavailable-notes" rows="3" class="span3"></textarea>
|
||||
</div>
|
||||
|
@ -325,7 +358,11 @@
|
|||
</div>
|
||||
|
||||
<div class="modal-footer">
|
||||
<button id="save-unavailable" class="btn btn-primary">Save</button>
|
||||
<button id="cancel-unavailable" class="btn">Cancel</button>
|
||||
<button id="save-unavailable" class="btn btn-primary">
|
||||
<?php echo $this->lang->line('be_save'); ?>
|
||||
</button>
|
||||
<button id="cancel-unavailable" class="btn">
|
||||
<?php echo $this->lang->line('fe_cancel'); ?>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
|
@ -18,6 +18,8 @@
|
|||
}
|
||||
};
|
||||
|
||||
var EALang = <?php echo json_encode($this->lang->language); ?>
|
||||
|
||||
$(document).ready(function() {
|
||||
BackendCustomers.initialize(true);
|
||||
});
|
||||
|
@ -27,15 +29,15 @@
|
|||
<div id="filter-customers" class="filter-records column span4">
|
||||
<form class="input-append">
|
||||
<input class="key span12" type="text" />
|
||||
<button class="filter btn" type="submit" title="Filter">
|
||||
<button class="filter btn" type="submit" title="<?php echo $this->lang->line('be_filter'); ?>">
|
||||
<i class="icon-search"></i>
|
||||
</button>
|
||||
<button class="clear btn" type="button" title="Clear">
|
||||
<button class="clear btn" type="button" title="<?php echo $this->lang->line('be_clear'); ?>">
|
||||
<i class="icon-repeat"></i>
|
||||
</button>
|
||||
</form>
|
||||
|
||||
<h2>Customers</h2>
|
||||
<h2><?php echo $this->lang->line('be_customers'); ?></h2>
|
||||
<div class="results"></div>
|
||||
</div>
|
||||
|
||||
|
@ -45,68 +47,74 @@
|
|||
<?php if ($privileges[PRIV_CUSTOMERS]['add'] == TRUE) { ?>
|
||||
<button id="add-customer" class="btn btn-primary">
|
||||
<i class="icon-plus icon-white"></i>
|
||||
Add</button>
|
||||
<?php echo $this->lang->line('be_add'); ?>
|
||||
</button>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($privileges[PRIV_CUSTOMERS]['edit'] == TRUE) { ?>
|
||||
<button id="edit-customer" class="btn" disabled="disabled">
|
||||
<i class="icon-pencil"></i>
|
||||
Edit</button>
|
||||
<?php echo $this->lang->line('be_edit'); ?>
|
||||
</button>
|
||||
<?php }?>
|
||||
|
||||
<?php if ($privileges[PRIV_CUSTOMERS]['delete'] == TRUE) { ?>
|
||||
<button id="delete-customer" class="btn" disabled="disabled">
|
||||
<i class="icon-remove"></i>
|
||||
Delete</button>
|
||||
<?php echo $this->lang->line('be_delete'); ?>
|
||||
</button>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<div id="save-cancel-group" class="btn-group" style="display:none;">
|
||||
<button id="save-customer" class="btn btn-primary">
|
||||
<i class="icon-ok icon-white"></i>
|
||||
Save</button>
|
||||
<?php echo $this->lang->line('be_save'); ?>
|
||||
</button>
|
||||
<button id="cancel-customer" class="btn">
|
||||
<i class="icon-ban-circle"></i>
|
||||
Cancel</button>
|
||||
<?php echo $this->lang->line('be_cancel'); ?>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<input id="customer-id" type="hidden" />
|
||||
|
||||
<div class="span6" style="margin-left: 0;">
|
||||
<h2>Details</h2>
|
||||
<h2><?php echo $this->lang->line('be_details'); ?></h2>
|
||||
<div id="form-message" class="alert" style="display:none;"></div>
|
||||
|
||||
<label for="first-name">First Name *</label>
|
||||
<label for="first-name"><?php echo $this->lang->line('fe_first_name'); ?> *</label>
|
||||
<input type="text" id="first-name" class="span11 required" />
|
||||
|
||||
<label for="last-name">Last Name *</label>
|
||||
<label for="last-name"><?php echo $this->lang->line('fe_last_name'); ?> *</label>
|
||||
<input type="text" id="last-name" class="span11 required" />
|
||||
|
||||
<label for="email">Email *</label>
|
||||
<label for="email"><?php echo $this->lang->line('fe_email'); ?> *</label>
|
||||
<input type="text" id="email" class="span11 required" />
|
||||
|
||||
<label for="phone-number">Phone Number *</label>
|
||||
<label for="phone-number"><?php echo $this->lang->line('fe_phone_number'); ?> *</label>
|
||||
<input type="text" id="phone-number" class="span11 required" />
|
||||
|
||||
<label for="address">Address</label>
|
||||
<label for="address"><?php echo $this->lang->line('fe_address'); ?></label>
|
||||
<input type="text" id="address" class="span11" />
|
||||
|
||||
<label for="city">City</label>
|
||||
<label for="city"><?php echo $this->lang->line('fe_city'); ?></label>
|
||||
<input type="text" id="city" class="span11" />
|
||||
|
||||
<label for="zip-code">Zip Code</label>
|
||||
<label for="zip-code"><?php echo $this->lang->line('fe_zip_code'); ?></label>
|
||||
<input type="text" id="zip-code" class="span11" />
|
||||
|
||||
<label for="notes">Notes</label>
|
||||
<label for="notes"><?php echo $this->lang->line('fe_notes'); ?></label>
|
||||
<textarea id="notes" rows="4" class="span11"></textarea>
|
||||
|
||||
<br/><br/>
|
||||
<center><em id="form-message" class="text-error">Fields with * are required!</em></center>
|
||||
<center><em id="form-message" class="text-error">
|
||||
<?php echo $this->lang->line('fe_fields_are_required'); ?></em></center>
|
||||
</div>
|
||||
|
||||
<div class="span5">
|
||||
<h2>Appointments</h2>
|
||||
<h2><?php echo $this->lang->line('be_appointments'); ?></h2>
|
||||
<div id="customer-appointments"></div>
|
||||
<div id="appointment-details"></div>
|
||||
</div>
|
||||
|
|
|
@ -12,12 +12,19 @@
|
|||
}
|
||||
?>
|
||||
</a> |
|
||||
Licensed Under GPLv3
|
||||
<?php echo $this->lang->line('be_licensed_under'); ?> GPLv3
|
||||
</div>
|
||||
|
||||
<div id="footer-user-display-name">
|
||||
Hello, <?php echo $user_display_name; ?>!
|
||||
<?php echo $this->lang->line('be_hello') . ', ' . $user_display_name; ?>!
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script
|
||||
type="text/javascript"
|
||||
src="<?php echo $base_url; ?>assets/js/backend.js"></script>
|
||||
<script
|
||||
type="text/javascript"
|
||||
src="<?php echo $base_url; ?>assets/js/general_functions.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -39,7 +39,6 @@
|
|||
rel="stylesheet"
|
||||
type="text/css"
|
||||
href="<?php echo $base_url; ?>assets/css/libs/jquery/jquery.jscrollpane.css">
|
||||
|
||||
<?php
|
||||
// ------------------------------------------------------------
|
||||
// INCLUDE JAVASCRIPT FILES
|
||||
|
@ -59,12 +58,6 @@
|
|||
<script
|
||||
type="text/javascript"
|
||||
src="<?php echo $base_url; ?>assets/js/libs/date.js"></script>
|
||||
<script
|
||||
type="text/javascript"
|
||||
src="<?php echo $base_url; ?>assets/js/general_functions.js"></script>
|
||||
<script
|
||||
type="text/javascript"
|
||||
src="<?php echo $base_url; ?>assets/js/backend.js"></script>
|
||||
<script
|
||||
type="text/javascript"
|
||||
src="<?php echo $base_url; ?>assets/js/libs/jquery/jquery.jscrollpane.min.js"></script>
|
||||
|
@ -86,8 +79,8 @@
|
|||
<?php $hidden = ($privileges[PRIV_APPOINTMENTS]['view'] == TRUE) ? '' : 'hidden'; ?>
|
||||
<?php $active = ($active_menu == PRIV_APPOINTMENTS) ? 'active' : ''; ?>
|
||||
<a href="<?php echo $base_url; ?>backend" class="menu-item <?php echo $hidden; ?><?php echo $active; ?>"
|
||||
title="Manage all the appointment records of the available providers and services.">
|
||||
Calendar
|
||||
title="<?php echo $this->lang->line('be_manage_appointment_record_hint'); ?>">
|
||||
<?php echo $this->lang->line('be_calendar'); ?>
|
||||
</a>
|
||||
|
||||
<?php // CUSTOMERS MENU ITEM
|
||||
|
@ -95,8 +88,8 @@
|
|||
<?php $hidden = ($privileges[PRIV_CUSTOMERS]['view'] == TRUE) ? '' : 'hidden'; ?>
|
||||
<?php $active = ($active_menu == PRIV_CUSTOMERS) ? 'active' : ''; ?>
|
||||
<a href="<?php echo $base_url; ?>backend/customers" class="menu-item <?php echo $hidden; ?><?php echo $active; ?>"
|
||||
title="Manage the registered customers and view their booking history.">
|
||||
Customers
|
||||
title="<?php echo $this->lang->line('be_manage_customers_hint'); ?>">
|
||||
<?php echo $this->lang->line('be_customers'); ?>
|
||||
</a>
|
||||
|
||||
<?php // SERVICES MENU ITEM
|
||||
|
@ -104,8 +97,8 @@
|
|||
<?php $hidden = ($privileges[PRIV_SERVICES]['view'] == TRUE) ? '' : 'hidden'; ?>
|
||||
<?php $active = ($active_menu == PRIV_SERVICES) ? 'active' : ''; ?>
|
||||
<a href="<?php echo $base_url; ?>backend/services" class="menu-item <?php echo $hidden; ?><?php echo $active; ?>"
|
||||
title="Manage the available services and categories of the system.">
|
||||
Services
|
||||
title="<?php echo $this->lang->line('be_manage_services_hint'); ?>">
|
||||
<?php echo $this->lang->line('be_services'); ?>
|
||||
</a>
|
||||
|
||||
<?php // USERS MENU ITEM
|
||||
|
@ -113,8 +106,8 @@
|
|||
<?php $hidden = ($privileges[PRIV_USERS]['view'] == TRUE) ? '' : 'hidden'; ?>
|
||||
<?php $active = ($active_menu == PRIV_USERS) ? 'active' : ''; ?>
|
||||
<a href="<?php echo $base_url; ?>backend/users" class="menu-item <?php echo $hidden; ?><?php echo $active; ?>"
|
||||
title="Manage the backend users (admins, providers, secretaries).">
|
||||
Users
|
||||
title="<?php echo $this->lang->line('be_manage_users_hint'); ?>">
|
||||
<?php echo $this->lang->line('be_users'); ?>
|
||||
</a>
|
||||
|
||||
<?php // SETTINGS MENU ITEM
|
||||
|
@ -123,15 +116,15 @@
|
|||
|| $privileges[PRIV_USER_SETTINGS]['view'] == TRUE) ? '' : 'hidden'; ?>
|
||||
<?php $active = ($active_menu == PRIV_SYSTEM_SETTINGS) ? 'active' : ''; ?>
|
||||
<a href="<?php echo $base_url; ?>backend/settings" class="menu-item <?php echo $hidden; ?><?php echo $active; ?>"
|
||||
title="Set system and user settings.">
|
||||
Settings
|
||||
title="<?php echo $this->lang->line('be_settings_hint'); ?>">
|
||||
<?php echo $this->lang->line('be_settings'); ?>
|
||||
</a>
|
||||
|
||||
<?php // LOGOUT MENU ITEM
|
||||
// ------------------------------------------------------ ?>
|
||||
<a href="<?php echo $base_url; ?>user/logout" class="menu-item"
|
||||
title="Log out of the system.">
|
||||
Log Out
|
||||
title="<?php echo $this->lang->line('be_log_out_hint'); ?>">
|
||||
<?php echo $this->lang->line('be_log_out'); ?>
|
||||
</a>
|
||||
|
||||
</div>
|
||||
|
|
|
@ -14,6 +14,8 @@
|
|||
}
|
||||
};
|
||||
|
||||
var EALang = <?php echo json_encode($this->lang->language); ?>;
|
||||
|
||||
$(document).ready(function() {
|
||||
BackendServices.initialize(true);
|
||||
});
|
||||
|
@ -21,8 +23,8 @@
|
|||
|
||||
<div id="services-page" class="row-fluid">
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="services-tab tab active"><a>Services</a></li>
|
||||
<li class="categories-tab tab"><a>Categories</a></li>
|
||||
<li class="services-tab tab active"><a><?php echo $this->lang->line('be_services'); ?></a></li>
|
||||
<li class="categories-tab tab"><a><?php echo $this->lang->line('be_categories'); ?></a></li>
|
||||
</ul>
|
||||
|
||||
<?php
|
||||
|
@ -37,15 +39,15 @@
|
|||
<div id="filter-services" class="filter-records column span4">
|
||||
<form class="input-append">
|
||||
<input class="key span12" type="text" />
|
||||
<button class="filter btn" type="submit" title="Filter">
|
||||
<button class="filter btn" type="submit" title="<?php echo $this->lang->line('be_filter'); ?>">
|
||||
<i class="icon-search"></i>
|
||||
</button>
|
||||
<button class="clear btn" type="button" title="Clear">
|
||||
<button class="clear btn" type="button" title="<?php echo $this->lang->line('be_clear'); ?>">
|
||||
<i class="icon-repeat"></i>
|
||||
</button>
|
||||
</form>
|
||||
|
||||
<h2>Services</h2>
|
||||
<h2><?php echo $this->lang->line('be_services'); ?></h2>
|
||||
<div class="results"></div>
|
||||
</div>
|
||||
|
||||
|
@ -54,50 +56,56 @@
|
|||
<div class="add-edit-delete-group btn-group">
|
||||
<button id="add-service" class="btn btn-primary">
|
||||
<i class="icon-plus icon-white"></i>
|
||||
Add</button>
|
||||
<?php echo $this->lang->line('be_add'); ?>
|
||||
</button>
|
||||
<button id="edit-service" class="btn" disabled="disabled">
|
||||
<i class="icon-pencil"></i>
|
||||
Edit</button>
|
||||
<?php echo $this->lang->line('be_edit'); ?>
|
||||
</button>
|
||||
<button id="delete-service" class="btn" disabled="disabled">
|
||||
<i class="icon-remove"></i>
|
||||
Delete</button>
|
||||
<?php echo $this->lang->line('be_delete'); ?>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="save-cancel-group btn-group" style="display:none;">
|
||||
<button id="save-service" class="btn btn-primary">
|
||||
<i class="icon-ok icon-white"></i>
|
||||
Save</button>
|
||||
<?php echo $this->lang->line('be_save'); ?>
|
||||
</button>
|
||||
<button id="cancel-service" class="btn">
|
||||
<i class="icon-ban-circle"></i>
|
||||
Cancel</button>
|
||||
<?php echo $this->lang->line('be_cancel'); ?>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h2>Details</h2>
|
||||
<h2><?php echo $this->lang->line('be_details'); ?></h2>
|
||||
<div class="form-message alert" style="display:none;"></div>
|
||||
|
||||
<input type="hidden" id="service-id" />
|
||||
|
||||
<label for="service-name">Name *</label>
|
||||
<label for="service-name"><?php echo $this->lang->line('fe_name'); ?> *</label>
|
||||
<input type="text" id="service-name" class="span12 required" />
|
||||
|
||||
<label for="service-duration">Duration (Minutes) *</label>
|
||||
<label for="service-duration"><?php echo $this->lang->line('be_duration_minutes'); ?> *</label>
|
||||
<input type="text" id="service-duration" class="required" />
|
||||
|
||||
<label for="service-price">Price *</label>
|
||||
<label for="service-price"><?php echo $this->lang->line('fe_price'); ?> *</label>
|
||||
<input type="text" id="service-price" class="span12 required" />
|
||||
|
||||
<label for="service-currency">Currency</label>
|
||||
<label for="service-currency"><?php echo $this->lang->line('be_currency'); ?></label>
|
||||
<input type="text" id="service-currency" class="span12" />
|
||||
|
||||
<label for="service-category">Category</label>
|
||||
<label for="service-category"><?php echo $this->lang->line('be_category'); ?></label>
|
||||
<select id="service-category" class="span12"></select>
|
||||
|
||||
<label for="service-description">Description</label>
|
||||
<label for="service-description"><?php echo $this->lang->line('be_description'); ?></label>
|
||||
<textarea id="service-description" rows="4" class="span12"></textarea>
|
||||
|
||||
<br/><br/>
|
||||
<em id="form-message" class="text-error">Fields with * are required!</em>
|
||||
<em id="form-message" class="text-error">
|
||||
<?php echo $this->lang->line('fe_fields_are_required'); ?></em>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -112,15 +120,15 @@
|
|||
<div id="filter-categories" class="filter-records column span4">
|
||||
<form class="input-append">
|
||||
<input class="key span12" type="text" />
|
||||
<button class="filter btn" type="submit" title="Filter">
|
||||
<button class="filter btn" type="submit" title="<?php echo $this->lang->line('be_filter'); ?>">
|
||||
<i class="icon-search"></i>
|
||||
</button>
|
||||
<button class="clear btn" type="button" title="Clear">
|
||||
<button class="clear btn" type="button" title="<?php echo $this->lang->line('be_clear'); ?>">
|
||||
<i class="icon-repeat"></i>
|
||||
</button>
|
||||
</form>
|
||||
|
||||
<h2>Categories</h2>
|
||||
<h2><?php echo $this->lang->line('be_categories'); ?></h2>
|
||||
<div class="results"></div>
|
||||
</div>
|
||||
|
||||
|
@ -129,34 +137,39 @@
|
|||
<div class="add-edit-delete-group btn-group">
|
||||
<button id="add-category" class="btn btn-primary">
|
||||
<i class="icon-plus icon-white"></i>
|
||||
Add</button>
|
||||
<?php echo $this->lang->line('be_add'); ?>
|
||||
</button>
|
||||
<button id="edit-category" class="btn" disabled="disabled">
|
||||
<i class="icon-pencil"></i>
|
||||
Edit</button>
|
||||
<?php echo $this->lang->line('be_edit'); ?>
|
||||
</button>
|
||||
<button id="delete-category" class="btn" disabled="disabled">
|
||||
<i class="icon-remove"></i>
|
||||
Delete</button>
|
||||
<?php echo $this->lang->line('be_delete'); ?>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="save-cancel-group btn-group" style="display:none;">
|
||||
<button id="save-category" class="btn btn-primary">
|
||||
<i class="icon-ok icon-white"></i>
|
||||
Save</button>
|
||||
<?php echo $this->lang->line('be_save'); ?>
|
||||
</button>
|
||||
<button id="cancel-category" class="btn">
|
||||
<i class="icon-ban-circle"></i>
|
||||
Cancel</button>
|
||||
<?php echo $this->lang->line('be_cancel'); ?>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h2>Details</h2>
|
||||
<h2><?php echo $this->lang->line('be_details'); ?></h2>
|
||||
<div class="form-message alert" style="display:none;"></div>
|
||||
|
||||
<input type="hidden" id="category-id" />
|
||||
|
||||
<label for="category-name">Name *</label>
|
||||
<label for="category-name"><?php echo $this->lang->line('fe_name'); ?> *</label>
|
||||
<input type="text" id="category-name" class="span12 required" />
|
||||
|
||||
<label for="category-description">Description</label>
|
||||
<label for="category-description"><?php echo $this->lang->line('be_description'); ?></label>
|
||||
<textarea id="category-description" rows="4" class="span12"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -31,6 +31,8 @@
|
|||
'privileges': <?php echo json_encode($privileges); ?>
|
||||
}
|
||||
};
|
||||
|
||||
var EALang = <?php echo json_encode($this->lang->language); ?>;
|
||||
|
||||
$(document).ready(function() {
|
||||
BackendUsers.initialize(true);
|
||||
|
@ -47,9 +49,9 @@
|
|||
// ---------------------------------------------------------------------
|
||||
?>
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="admins-tab tab active"><a>Admins</a></li>
|
||||
<li class="providers-tab tab"><a>Providers</a></li>
|
||||
<li class="secretaries-tab tab"><a>Secretaries</a></li>
|
||||
<li class="admins-tab tab active"><a><?php echo $this->lang->line('be_admins'); ?></a></li>
|
||||
<li class="providers-tab tab"><a><?php echo $this->lang->line('be_providers'); ?></a></li>
|
||||
<li class="secretaries-tab tab"><a><?php echo $this->lang->line('be_secretaries'); ?></a></li>
|
||||
</ul>
|
||||
|
||||
<?php
|
||||
|
@ -63,15 +65,15 @@
|
|||
<div id="filter-admins" class="filter-records column span4">
|
||||
<form class="input-append">
|
||||
<input class="key span12" type="text" />
|
||||
<button class="filter btn" type="submit" title="Filter">
|
||||
<button class="filter btn" type="submit" title="<?php echo $this->lang->line('be_filter'); ?>">
|
||||
<i class="icon-search"></i>
|
||||
</button>
|
||||
<button class="clear btn" type="button" title="Clear">
|
||||
<button class="clear btn" type="button" title="<?php echo $this->lang->line('be_clear'); ?>">
|
||||
<i class="icon-repeat"></i>
|
||||
</button>
|
||||
</form>
|
||||
|
||||
<h2>Admins</h2>
|
||||
<h2><?php echo $this->lang->line('be_admins'); ?></h2>
|
||||
<div class="results"></div>
|
||||
</div>
|
||||
|
||||
|
@ -80,26 +82,31 @@
|
|||
<div class="add-edit-delete-group btn-group">
|
||||
<button id="add-admin" class="btn btn-primary">
|
||||
<i class="icon-plus icon-white"></i>
|
||||
Add</button>
|
||||
<?php echo $this->lang->line('be_add'); ?>
|
||||
</button>
|
||||
<button id="edit-admin" class="btn" disabled="disabled">
|
||||
<i class="icon-pencil"></i>
|
||||
Edit</button>
|
||||
<?php echo $this->lang->line('be_edit'); ?>
|
||||
</button>
|
||||
<button id="delete-admin" class="btn" disabled="disabled">
|
||||
<i class="icon-remove"></i>
|
||||
Delete</button>
|
||||
<?php echo $this->lang->line('be_delete'); ?>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="save-cancel-group btn-group" style="display:none;">
|
||||
<button id="save-admin" class="btn btn-primary">
|
||||
<i class="icon-ok icon-white"></i>
|
||||
Save</button>
|
||||
<?php echo $this->lang->line('be_save'); ?>
|
||||
</button>
|
||||
<button id="cancel-admin" class="btn">
|
||||
<i class="icon-ban-circle"></i>
|
||||
Cancel</button>
|
||||
<?php echo $this->lang->line('be_cancel'); ?>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h2>Details</h2>
|
||||
<h2><?php echo $this->lang->line('be_details'); ?></h2>
|
||||
|
||||
<div class="form-message alert" style="display:none;"></div>
|
||||
|
||||
|
@ -107,51 +114,51 @@
|
|||
|
||||
<div class="row-fluid">
|
||||
<div class="admin-details span6">
|
||||
<label for="first-name">First Name *</label>
|
||||
<label for="first-name"><?php echo $this->lang->line('fe_first_name'); ?> *</label>
|
||||
<input type="text" id="admin-first-name" class="span11 required" />
|
||||
|
||||
<label for="admin-last-name">Last Name *</label>
|
||||
<label for="admin-last-name"><?php echo $this->lang->line('fe_last_name'); ?> *</label>
|
||||
<input type="text" id="admin-last-name" class="span11 required" />
|
||||
|
||||
<label for="admin-email">Email *</label>
|
||||
<label for="admin-email"><?php echo $this->lang->line('fe_email'); ?> *</label>
|
||||
<input type="text" id="admin-email" class="span11 required" />
|
||||
|
||||
<label for="admin-mobile-number">Mobile Number</label>
|
||||
<label for="admin-mobile-number"><?php echo $this->lang->line('be_mobile_number'); ?></label>
|
||||
<input type="text" id="admin-mobile-number" class="span11" />
|
||||
|
||||
<label for="admin-phone-number">Phone Number *</label>
|
||||
<label for="admin-phone-number"><?php echo $this->lang->line('fe_phone_number'); ?> *</label>
|
||||
<input type="text" id="admin-phone-number" class="span11 required" />
|
||||
|
||||
<label for="admin-address">Address</label>
|
||||
<label for="admin-address"><?php echo $this->lang->line('fe_address'); ?></label>
|
||||
<input type="text" id="admin-address" class="span11" />
|
||||
|
||||
<label for="admin-city">City</label>
|
||||
<label for="admin-city"><?php echo $this->lang->line('fe_city'); ?></label>
|
||||
<input type="text" id="admin-city" class="span11" />
|
||||
|
||||
<label for="admin-state">State</label>
|
||||
<label for="admin-state"><?php echo $this->lang->line('be_state'); ?></label>
|
||||
<input type="text" id="admin-state" class="span11" />
|
||||
|
||||
<label for="admin-zip-code">Zip Code</label>
|
||||
<label for="admin-zip-code"><?php echo $this->lang->line('fe_zip_code'); ?></label>
|
||||
<input type="text" id="admin-zip-code" class="span11" />
|
||||
|
||||
<label for="admin-notes">Notes</label>
|
||||
<label for="admin-notes"><?php echo $this->lang->line('fe_notes'); ?></label>
|
||||
<textarea id="admin-notes" class="span11" rows="3"></textarea>
|
||||
</div>
|
||||
<div class="admin-settings span6">
|
||||
<label for="admin-username">Username *</label>
|
||||
<label for="admin-username"><?php echo $this->lang->line('be_username'); ?> *</label>
|
||||
<input type="text" id="admin-username" class="span9 required" />
|
||||
|
||||
<label for="admin-password">Password *</label>
|
||||
<label for="admin-password"><?php echo $this->lang->line('be_password'); ?> *</label>
|
||||
<input type="password" id="admin-password" class="span9 required"/>
|
||||
|
||||
<label for="admin-password-confirm">Retype Password *</label>
|
||||
<label for="admin-password-confirm"><?php echo $this->lang->line('be_retype_password'); ?> *</label>
|
||||
<input type="password" id="admin-password-confirm" class="span9 required" />
|
||||
|
||||
<br>
|
||||
|
||||
<button type="button" id="admin-notifications" class="btn" data-toggle="button">
|
||||
<i class="icon-envelope"></i>
|
||||
<span>Receive Notifications</span>
|
||||
<span><?php echo $this->lang->line('be_receive_notifications'); ?></span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -169,15 +176,15 @@
|
|||
<div id="filter-providers" class="filter-records column span4">
|
||||
<form class="input-append">
|
||||
<input class="key span12" type="text" />
|
||||
<button class="filter btn" type="submit" title="Filter">
|
||||
<button class="filter btn" type="submit" title="<?php echo $this->lang->line('be_filter'); ?>">
|
||||
<i class="icon-search"></i>
|
||||
</button>
|
||||
<button class="clear btn" type="button" title="Clear">
|
||||
<button class="clear btn" type="button" title="<?php echo $this->lang->line('be_clear'); ?>">
|
||||
<i class="icon-repeat"></i>
|
||||
</button>
|
||||
</form>
|
||||
|
||||
<h2>Providers</h2>
|
||||
<h2><?php echo $this->lang->line('be_providers'); ?></h2>
|
||||
<div class="results"></div>
|
||||
</div>
|
||||
|
||||
|
@ -186,29 +193,34 @@
|
|||
<div class="add-edit-delete-group btn-group">
|
||||
<button id="add-provider" class="btn btn-primary">
|
||||
<i class="icon-plus icon-white"></i>
|
||||
Add</button>
|
||||
<?php echo $this->lang->line('be_add'); ?>
|
||||
</button>
|
||||
<button id="edit-provider" class="btn" disabled="disabled">
|
||||
<i class="icon-pencil"></i>
|
||||
Edit</button>
|
||||
<?php echo $this->lang->line('be_edit'); ?>
|
||||
</button>
|
||||
<button id="delete-provider" class="btn" disabled="disabled">
|
||||
<i class="icon-remove"></i>
|
||||
Delete</button>
|
||||
<?php echo $this->lang->line('be_delete'); ?>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="save-cancel-group btn-group" style="display:none;">
|
||||
<button id="save-provider" class="btn btn-primary">
|
||||
<i class="icon-ok icon-white"></i>
|
||||
Save</button>
|
||||
<?php echo $this->lang->line('be_save'); ?>
|
||||
</button>
|
||||
<button id="cancel-provider" class="btn">
|
||||
<i class="icon-ban-circle"></i>
|
||||
Cancel</button>
|
||||
<?php echo $this->lang->line('be_cancel'); ?>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="switch-view pull-right">
|
||||
<strong>Current View</strong>
|
||||
<div class="display-details current">Details</div>
|
||||
<div class="display-working-plan">Working Plan</div>
|
||||
<strong><?php echo $this->lang->line('be_current_view'); ?></strong>
|
||||
<div class="display-details current"><?php echo $this->lang->line('be_details'); ?></div>
|
||||
<div class="display-working-plan"><?php echo $this->lang->line('be_working_plan'); ?></div>
|
||||
</div>
|
||||
|
||||
<?php // This form message is outside the details view, so that it can be
|
||||
|
@ -216,114 +228,121 @@
|
|||
<div class="form-message alert" style="display:none;"></div>
|
||||
|
||||
<div class="details-view provider-view">
|
||||
<h2>Details</h2>
|
||||
<h2><?php echo $this->lang->line('be_details'); ?></h2>
|
||||
|
||||
<input type="hidden" id="provider-id" class="record-id" />
|
||||
|
||||
<div class="row-fluid">
|
||||
<div class="provider-details span6">
|
||||
<label for="provider-first-name">First Name *</label>
|
||||
<label for="provider-first-name"><?php echo $this->lang->line('fe_first_name'); ?> *</label>
|
||||
<input type="text" id="provider-first-name" class="span11 required" />
|
||||
|
||||
<label for="provider-last-name">Last Name *</label>
|
||||
<label for="provider-last-name"><?php echo $this->lang->line('fe_last_name'); ?> *</label>
|
||||
<input type="text" id="provider-last-name" class="span11 required" />
|
||||
|
||||
<label for="provider-email">Email *</label>
|
||||
<label for="provider-email"><?php echo $this->lang->line('fe_email'); ?> *</label>
|
||||
<input type="text" id="provider-email" class="span11 required" />
|
||||
|
||||
<label for="provider-mobile-number">Mobile Number</label>
|
||||
<label for="provider-mobile-number"><?php echo $this->lang->line('be_mobile_number'); ?></label>
|
||||
<input type="text" id="provider-mobile-number" class="span11" />
|
||||
|
||||
<label for="provider-phone-number">Phone Number *</label>
|
||||
<label for="provider-phone-number"><?php echo $this->lang->line('fe_phone_number'); ?> *</label>
|
||||
<input type="text" id="provider-phone-number" class="span11 required" />
|
||||
|
||||
<label for="provider-address">Address</label>
|
||||
<label for="provider-address"><?php echo $this->lang->line('fe_address'); ?></label>
|
||||
<input type="text" id="provider-address" class="span11" />
|
||||
|
||||
<label for="provider-city">City</label>
|
||||
<label for="provider-city"><?php echo $this->lang->line('fe_city'); ?></label>
|
||||
<input type="text" id="provider-city" class="span11" />
|
||||
|
||||
<label for="provider-state">State</label>
|
||||
<label for="provider-state"><?php echo $this->lang->line('be_state'); ?></label>
|
||||
<input type="text" id="provider-state" class="span11" />
|
||||
|
||||
<label for="provider-zip-code">Zip Code</label>
|
||||
<label for="provider-zip-code"><?php echo $this->lang->line('fe_zip_code'); ?></label>
|
||||
<input type="text" id="provider-zip-code" class="span11" />
|
||||
|
||||
<label for="provider-notes">Notes</label>
|
||||
<label for="provider-notes"><?php echo $this->lang->line('fe_notes'); ?></label>
|
||||
<textarea id="provider-notes" class="span11" rows="3"></textarea>
|
||||
</div>
|
||||
<div class="provider-settings span6">
|
||||
<label for="provider-username">Username *</label>
|
||||
<label for="provider-username"><?php echo $this->lang->line('be_username'); ?> *</label>
|
||||
<input type="text" id="provider-username" class="span9 required" />
|
||||
|
||||
<label for="provider-password">Password *</label>
|
||||
<label for="provider-password"><?php echo $this->lang->line('be_password'); ?> *</label>
|
||||
<input type="password" id="provider-password" class="span9 required"/>
|
||||
|
||||
<label for="provider-password-confirm">Retype Password *</label>
|
||||
<label for="provider-password-confirm"><?php echo $this->lang->line('be_retype_password'); ?> *</label>
|
||||
<input type="password" id="provider-password-confirm" class="span9 required" />
|
||||
|
||||
<br>
|
||||
|
||||
<button type="button" id="provider-notifications" class="btn" data-toggle="button">
|
||||
<i class="icon-envelope"></i>
|
||||
<span>Receive Notifications</span>
|
||||
<span><?php echo $this->lang->line('be_receive_notifications'); ?></span>
|
||||
</button>
|
||||
|
||||
<br><br>
|
||||
|
||||
<h4>Services</h4>
|
||||
<h4><?php echo $this->lang->line('be_services'); ?></h4>
|
||||
<div id="provider-services"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="working-plan-view provider-view" style="display: none;">
|
||||
<h2>Working Plan</h2>
|
||||
<h2><?php echo $this->lang->line('be_working_plan'); ?></h2>
|
||||
<button id="reset-working-plan" class="btn btn-primary"
|
||||
title="Reset the working plan back to the default values.">
|
||||
<i class="icon-repeat icon-white"></i>
|
||||
Reset Plan</button>
|
||||
<?php echo $this->lang->line('be_reset_plan'); ?></button>
|
||||
<table class="working-plan table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Day</th>
|
||||
<th>Start</th>
|
||||
<th>End</th>
|
||||
<th><?php echo $this->lang->line('be_day'); ?></th>
|
||||
<th><?php echo $this->lang->line('fe_start'); ?></th>
|
||||
<th><?php echo $this->lang->line('fe_end'); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><label class="checkbox"><input type="checkbox" id="monday" />Monday</label></td>
|
||||
<td><label class="checkbox"><input type="checkbox" id="monday" />
|
||||
<?php echo $this->lang->line('be_monday'); ?></label></td>
|
||||
<td><input type="text" id="monday-start" class="work-start" /></td>
|
||||
<td><input type="text" id="monday-end" class="work-end" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label class="checkbox"><input type="checkbox" id="tuesday" />Tuesday</label></td>
|
||||
<td><label class="checkbox"><input type="checkbox" id="tuesday" />
|
||||
<?php echo $this->lang->line('be_tuesday'); ?></label></td>
|
||||
<td><input type="text" id="tuesday-start" class="work-start" /></td>
|
||||
<td><input type="text" id="tuesday-end" class="work-end" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label class="checkbox"><input type="checkbox" id="wednesday" />Wednesday</label></td>
|
||||
<td><label class="checkbox"><input type="checkbox" id="wednesday" />
|
||||
<?php echo $this->lang->line('be_wednesday'); ?></label></td>
|
||||
<td><input type="text" id="wednesday-start" class="work-start" /></td>
|
||||
<td><input type="text" id="wednesday-end" class="work-end" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label class="checkbox"><input type="checkbox" id="thursday" />Thursday</label></td>
|
||||
<td><label class="checkbox"><input type="checkbox" id="thursday" />
|
||||
<?php echo $this->lang->line('be_tuesday'); ?></label></td>
|
||||
<td><input type="text" id="thursday-start" class="work-start" /></td>
|
||||
<td><input type="text" id="thursday-end" class="work-end" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label class="checkbox"><input type="checkbox" id="friday" />Friday</label></td>
|
||||
<td><label class="checkbox"><input type="checkbox" id="friday" />
|
||||
<?php echo $this->lang->line('be_friday'); ?></label></td>
|
||||
<td><input type="text" id="friday-start" class="work-start" /></td>
|
||||
<td><input type="text" id="friday-end" class="work-end" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label class="checkbox"><input type="checkbox" id="saturday" />Saturday</label></td>
|
||||
<td><label class="checkbox"><input type="checkbox" id="saturday" />
|
||||
<?php echo $this->lang->line('be_saturday'); ?></label></td>
|
||||
<td><input type="text" id="saturday-start" class="work-start" /></td>
|
||||
<td><input type="text" id="saturday-end" class="work-end" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label class="checkbox"><input type="checkbox" id="sunday" />Sunday</label></td>
|
||||
<td><label class="checkbox"><input type="checkbox" id="sunday" />
|
||||
<?php echo $this->lang->line('be_sunday'); ?></label></td>
|
||||
<td><input type="text" id="sunday-start" class="work-start" /></td>
|
||||
<td><input type="text" id="sunday-end" class="work-end" /></td>
|
||||
</tr>
|
||||
|
@ -332,17 +351,17 @@
|
|||
|
||||
<br>
|
||||
|
||||
<h2>Breaks</h2>
|
||||
<h2><?php echo $this->lang->line('be_breaks');?></h2>
|
||||
|
||||
<span class="help-block">
|
||||
Add the working breaks during each day. During breaks the provider will
|
||||
not accept any appointments.
|
||||
<?php echo $this->lang->line('be_add_breaks_during_each_day');?>
|
||||
</span>
|
||||
|
||||
<div>
|
||||
<button type="button" class="add-break btn btn-primary">
|
||||
<i class="icon-white icon-plus"></i>
|
||||
Add Break
|
||||
<?php echo $this->lang->line('be_add');?>
|
||||
<?php echo $this->lang->line('be_break');?>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
|
@ -351,10 +370,10 @@
|
|||
<table class="breaks table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Day</th>
|
||||
<th>Start</th>
|
||||
<th>End</th>
|
||||
<th>Actions</th>
|
||||
<th><?php echo $this->lang->line('be_day');?></th>
|
||||
<th><?php echo $this->lang->line('fe_start');?></th>
|
||||
<th><?php echo $this->lang->line('fe_end');?></th>
|
||||
<th><?php echo $this->lang->line('be_actions');?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
@ -375,15 +394,15 @@
|
|||
<div id="filter-secretaries" class="filter-records column span4">
|
||||
<form class="input-append">
|
||||
<input class="key span12" type="text" />
|
||||
<button class="filter btn" type="submit" title="Filter">
|
||||
<button class="filter btn" type="submit" title="<?php echo $this->lang->line('be_filter');?>">
|
||||
<i class="icon-search"></i>
|
||||
</button>
|
||||
<button class="clear btn" type="button" title="Clear">
|
||||
<button class="clear btn" type="button" title="<?php echo $this->lang->line('be_clear');?>">
|
||||
<i class="icon-repeat"></i>
|
||||
</button>
|
||||
</form>
|
||||
|
||||
<h2>Secretaries</h2>
|
||||
<h2><?php echo $this->lang->line('be_secretaries');?></h2>
|
||||
<div class="results"></div>
|
||||
</div>
|
||||
|
||||
|
@ -392,26 +411,31 @@
|
|||
<div class="add-edit-delete-group btn-group">
|
||||
<button id="add-secretary" class="btn btn-primary">
|
||||
<i class="icon-plus icon-white"></i>
|
||||
Add</button>
|
||||
<?php echo $this->lang->line('be_add');?>
|
||||
</button>
|
||||
<button id="edit-secretary" class="btn" disabled="disabled">
|
||||
<i class="icon-pencil"></i>
|
||||
Edit</button>
|
||||
<?php echo $this->lang->line('be_edit');?>
|
||||
</button>
|
||||
<button id="delete-secretary" class="btn" disabled="disabled">
|
||||
<i class="icon-remove"></i>
|
||||
Delete</button>
|
||||
<?php echo $this->lang->line('be_delete');?>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="save-cancel-group btn-group" style="display:none;">
|
||||
<button id="save-secretary" class="btn btn-primary">
|
||||
<i class="icon-ok icon-white"></i>
|
||||
Save</button>
|
||||
<?php echo $this->lang->line('be_save');?>
|
||||
</button>
|
||||
<button id="cancel-secretary" class="btn">
|
||||
<i class="icon-ban-circle"></i>
|
||||
Cancel</button>
|
||||
<?php echo $this->lang->line('be_cancel');?>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h2>Details</h2>
|
||||
<h2><?php echo $this->lang->line('be_details');?></h2>
|
||||
|
||||
<div class="form-message alert" style="display:none;"></div>
|
||||
|
||||
|
@ -419,56 +443,56 @@
|
|||
|
||||
<div class="row-fluid">
|
||||
<div class="secretary-details span6">
|
||||
<label for="secretary-first-name">First Name *</label>
|
||||
<label for="secretary-first-name"><?php echo $this->lang->line('fe_first_name');?> *</label>
|
||||
<input type="text" id="secretary-first-name" class="span11 required" />
|
||||
|
||||
<label for="secretary-last-name">Last Name *</label>
|
||||
<label for="secretary-last-name"><?php echo $this->lang->line('fe_last_name');?> *</label>
|
||||
<input type="text" id="secretary-last-name" class="span11 required" />
|
||||
|
||||
<label for="secretary-email">Email *</label>
|
||||
<label for="secretary-email"><?php echo $this->lang->line('fe_email');?> *</label>
|
||||
<input type="text" id="secretary-email" class="span11 required" />
|
||||
|
||||
<label for="secretary-mobile-number">Mobile Number</label>
|
||||
<label for="secretary-mobile-number"><?php echo $this->lang->line('be_mobile_number');?></label>
|
||||
<input type="text" id="secretary-mobile-number" class="span11" />
|
||||
|
||||
<label for="secretary-phone-number">Phone Number *</label>
|
||||
<label for="secretary-phone-number"><?php echo $this->lang->line('fe_phone_number');?> *</label>
|
||||
<input type="text" id="secretary-phone-number" class="span11 required" />
|
||||
|
||||
<label for="secretary-address">Address</label>
|
||||
<label for="secretary-address"><?php echo $this->lang->line('fe_address');?></label>
|
||||
<input type="text" id="secretary-address" class="span11" />
|
||||
|
||||
<label for="secretary-city">City</label>
|
||||
<label for="secretary-city"><?php echo $this->lang->line('fe_city');?></label>
|
||||
<input type="text" id="secretary-city" class="span11" />
|
||||
|
||||
<label for="secretary-state">State</label>
|
||||
<label for="secretary-state"><?php echo $this->lang->line('be_state');?></label>
|
||||
<input type="text" id="secretary-state" class="span11" />
|
||||
|
||||
<label for="secretary-zip-code">Zip Code</label>
|
||||
<label for="secretary-zip-code"><?php echo $this->lang->line('fe_zip_code');?></label>
|
||||
<input type="text" id="secretary-zip-code" class="span11" />
|
||||
|
||||
<label for="secretary-notes">Notes</label>
|
||||
<label for="secretary-notes"><?php echo $this->lang->line('fe_notes');?></label>
|
||||
<textarea id="secretary-notes" class="span11" rows="3"></textarea>
|
||||
</div>
|
||||
<div class="secretary-settings span6">
|
||||
<label for="secretary-username">Username *</label>
|
||||
<label for="secretary-username"><?php echo $this->lang->line('be_username');?> *</label>
|
||||
<input type="text" id="secretary-username" class="span9 required" />
|
||||
|
||||
<label for="secretary-password">Password *</label>
|
||||
<label for="secretary-password"><?php echo $this->lang->line('be_password');?> *</label>
|
||||
<input type="password" id="secretary-password" class="span9 required"/>
|
||||
|
||||
<label for="secretary-password-confirm">Retype Password *</label>
|
||||
<label for="secretary-password-confirm"><?php echo $this->lang->line('be_retype_password');?> *</label>
|
||||
<input type="password" id="secretary-password-confirm" class="span9 required" />
|
||||
|
||||
<br>
|
||||
|
||||
<button type="button" id="secretary-notifications" class="btn" data-toggle="button">
|
||||
<i class="icon-envelope"></i>
|
||||
<span>Receive Notifications</span>
|
||||
<span><?php echo $this->lang->line('be_receive_notifications');?></span>
|
||||
</button>
|
||||
|
||||
<br><br>
|
||||
|
||||
<h4>Providers</h4>
|
||||
<h4><?php echo $this->lang->line('be_providers');?></h4>
|
||||
<div id="secretary-providers"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -14,9 +14,10 @@
|
|||
<script
|
||||
type="text/javascript"
|
||||
src="<?php echo $this->config->base_url(); ?>assets/js/libs/date.js"></script>
|
||||
<script
|
||||
type="text/javascript"
|
||||
src="<?php echo $this->config->base_url(); ?>assets/js/general_functions.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
var EALang = <?php echo json_encode($this->lang->language); ?>;
|
||||
</script>
|
||||
|
||||
<?php // INCLUDE CSS FILES ?>
|
||||
<link
|
||||
|
@ -64,7 +65,7 @@
|
|||
'AJAX_FAILURE': 'FAILURE'
|
||||
};
|
||||
|
||||
var EALang = <?php echo json_encode($ea_lang); ?>;
|
||||
var EALang = <?php echo json_encode($this->lang->language); ?>;
|
||||
|
||||
/**
|
||||
* Event: Login Button "Click"
|
||||
|
@ -129,5 +130,8 @@
|
|||
</a>
|
||||
</form>
|
||||
</div>
|
||||
<script
|
||||
type="text/javascript"
|
||||
src="<?php echo $this->config->base_url(); ?>assets/js/general_functions.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -14,9 +14,6 @@
|
|||
<script
|
||||
type="text/javascript"
|
||||
src="<?php echo $this->config->base_url(); ?>assets/js/libs/date.js"></script>
|
||||
<script
|
||||
type="text/javascript"
|
||||
src="<?php echo $this->config->base_url(); ?>assets/js/general_functions.js"></script>
|
||||
|
||||
<?php // INCLUDE CSS FILES ?>
|
||||
<link
|
||||
|
@ -62,16 +59,16 @@
|
|||
</style>
|
||||
|
||||
<script type="text/javascript">
|
||||
var GlobalVariables = {
|
||||
'baseUrl': <?php echo '"' . $base_url . '"'; ?>,
|
||||
'destUrl': <?php echo '"' . $dest_url . '"'; ?>,
|
||||
'AJAX_SUCCESS': 'SUCCESS',
|
||||
'AJAX_FAILURE': 'FAILURE'
|
||||
};
|
||||
|
||||
var EALang = <?php echo json_encode($this->lang->language); ?>;
|
||||
|
||||
$(document).ready(function() {
|
||||
var GlobalVariables = {
|
||||
'baseUrl': <?php echo '"' . $base_url . '"'; ?>,
|
||||
'destUrl': <?php echo '"' . $dest_url . '"'; ?>,
|
||||
'AJAX_SUCCESS': 'SUCCESS',
|
||||
'AJAX_FAILURE': 'FAILURE'
|
||||
};
|
||||
|
||||
var EALang = <?php echo json_encode($ea_lang); ?>;
|
||||
|
||||
/**
|
||||
* Event: Login Button "Click"
|
||||
*
|
||||
|
@ -127,5 +124,9 @@
|
|||
<a href="<?php echo $base_url; ?>user/forgot_password" class="forgot-password"><?php echo $this->lang->line('be_forgot_your_password'); ?></a>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<script
|
||||
type="text/javascript"
|
||||
src="<?php echo $this->config->base_url(); ?>assets/js/general_functions.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -11,6 +11,10 @@
|
|||
<script
|
||||
type="text/javascript"
|
||||
src="<?php echo $this->config->base_url(); ?>assets/js/libs/bootstrap/bootstrap.min.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
var EALang = <?php echo json_encode($this->lang->language); ?>;
|
||||
</script>
|
||||
|
||||
<?php // INCLUDE CSS FILES ?>
|
||||
<link
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title><?php echo $this->lang->line('be_no_privileges') . ' - ' . $company_name; ?></title>
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||||
|
||||
<?php // INCLUDE JS FILES ?>
|
||||
|
@ -56,17 +57,16 @@
|
|||
</head>
|
||||
<body>
|
||||
<div id="no-priv-frame" class="frame-container">
|
||||
<h3>No Privileges</h3>
|
||||
<h3><?php echo $this->lang->line('be_no_privileges'); ?></h3>
|
||||
<p>
|
||||
You do not have the required privileges to view this page. Please navigate to a
|
||||
different section.
|
||||
<?php echo $this->lang->line('be_no_provileges_message'); ?>
|
||||
</p>
|
||||
|
||||
<br>
|
||||
|
||||
<a href="<?php echo $this->config->base_url(); ?>backend" class="btn btn-danger btn-large">
|
||||
<i class="icon-wrench icon-white"></i>
|
||||
Backend Calendar
|
||||
<a href="<?php echo $this->config->base_url(); ?>backend" class="btn btn-success btn-large">
|
||||
<i class="icon-calendar icon-white"></i>
|
||||
<?php echo $this->lang->line('be_backend_calendar'); ?>
|
||||
</a>
|
||||
</div>
|
||||
</body>
|
||||
|
|
|
@ -32,7 +32,7 @@ var BackendCalendar = {
|
|||
'snapMinutes': 15,
|
||||
'axisFormat': 'HH:mm',
|
||||
'timeFormat': 'HH:mm{ - HH:mm}',
|
||||
'allDayText': 'All Day',
|
||||
'allDayText': EALang['be_all_day'],
|
||||
'columnFormat': {
|
||||
'month': 'ddd',
|
||||
'week': 'ddd d/M',
|
||||
|
@ -142,7 +142,7 @@ var BackendCalendar = {
|
|||
var appointment = GlobalVariables.editAppointment;
|
||||
BackendCalendar.resetAppointmentDialog();
|
||||
|
||||
$dialog.find('.modal-header h3').text('Edit Appointment');
|
||||
$dialog.find('.modal-header h3').text(EALang['be_edit_appointment_title']);
|
||||
$dialog.find('#appointment-id').val(appointment['id']);
|
||||
$dialog.find('#select-service').val(appointment['id_services']).change();
|
||||
$dialog.find('#select-provider').val(appointment['id_users_provider']);
|
||||
|
@ -236,12 +236,12 @@ var BackendCalendar = {
|
|||
if ($('#select-filter-item option:selected').attr('google-sync') === 'true') {
|
||||
$('#enable-sync').addClass('btn-success enabled');
|
||||
$('#enable-sync i').addClass('icon-white');
|
||||
$('#enable-sync span').text('Disable Sync');
|
||||
$('#enable-sync span').text(EALang['be_disable_sync']);
|
||||
$('#google-sync').prop('disabled', false);
|
||||
} else {
|
||||
$('#enable-sync').removeClass('btn-success enabled');
|
||||
$('#enable-sync i').removeClass('icon-white');
|
||||
$('#enable-sync span').text('Enable Sync');
|
||||
$('#enable-sync span').text(EALang['be_enable_sync']);
|
||||
$('#google-sync').prop('disabled', true);
|
||||
}
|
||||
}
|
||||
|
@ -322,7 +322,7 @@ var BackendCalendar = {
|
|||
BackendCalendar.resetAppointmentDialog();
|
||||
|
||||
// :: APPLY APPOINTMENT DATA AND SHOW TO MODAL DIALOG
|
||||
$dialog.find('.modal-header h3').text('Edit Appointment');
|
||||
$dialog.find('.modal-header h3').text(EALang['be_edit_appointment_title']);
|
||||
$dialog.find('#appointment-id').val(appointment['id']);
|
||||
$dialog.find('#select-service').val(appointment['id_services']).trigger('change');
|
||||
$dialog.find('#select-provider').val(appointment['id_users_provider']);
|
||||
|
@ -380,46 +380,47 @@ var BackendCalendar = {
|
|||
$(this).parents().eq(2).remove(); // Hide the popover
|
||||
|
||||
if (BackendCalendar.lastFocusedEventData.data.is_unavailable == false) {
|
||||
var messageButtons = {
|
||||
'OK': function() {
|
||||
var postUrl = GlobalVariables.baseUrl + 'backend_api/ajax_delete_appointment';
|
||||
var messageButtons = {};
|
||||
messageButtons['OK'] = function() {
|
||||
var postUrl = GlobalVariables.baseUrl + 'backend_api/ajax_delete_appointment';
|
||||
|
||||
var postData = {
|
||||
'appointment_id' : BackendCalendar.lastFocusedEventData.data['id'],
|
||||
'delete_reason': $('#delete-reason').val()
|
||||
};
|
||||
var postData = {
|
||||
'appointment_id' : BackendCalendar.lastFocusedEventData.data['id'],
|
||||
'delete_reason': $('#delete-reason').val()
|
||||
};
|
||||
|
||||
$.post(postUrl, postData, function(response) {
|
||||
/////////////////////////////////////////////////////////
|
||||
console.log('Delete Appointment Response :', response);
|
||||
/////////////////////////////////////////////////////////
|
||||
$.post(postUrl, postData, function(response) {
|
||||
/////////////////////////////////////////////////////////
|
||||
console.log('Delete Appointment Response :', response);
|
||||
/////////////////////////////////////////////////////////
|
||||
|
||||
$('#message_box').dialog('close');
|
||||
|
||||
if (response.exceptions) {
|
||||
response.exceptions = GeneralFunctions.parseExceptions(response.exceptions);
|
||||
GeneralFunctions.displayMessageBox(GeneralFunctions.EXCEPTIONS_TITLE, GeneralFunctions.EXCEPTIONS_MESSAGE);
|
||||
$('#message_box').append(GeneralFunctions.exceptionsToHtml(response.exceptions));
|
||||
return;
|
||||
}
|
||||
|
||||
if (response.warnings) {
|
||||
response.warnings = GeneralFunctions.parseExceptions(response.warnings);
|
||||
GeneralFunctions.displayMessageBox(GeneralFunctions.WARNINGS_TITLE, GeneralFunctions.WARNINGS_MESSAGE);
|
||||
$('#message_box').append(GeneralFunctions.exceptionsToHtml(response.warnings));
|
||||
}
|
||||
|
||||
// Refresh calendar event items.
|
||||
$('#select-filter-item').trigger('change');
|
||||
}, 'json');
|
||||
},
|
||||
'Cancel': function() {
|
||||
$('#message_box').dialog('close');
|
||||
}
|
||||
};
|
||||
|
||||
GeneralFunctions.displayMessageBox('Delete Appointment', 'Please take a minute '
|
||||
+ 'to write the reason you are deleting the appointment:', messageButtons);
|
||||
if (response.exceptions) {
|
||||
response.exceptions = GeneralFunctions.parseExceptions(response.exceptions);
|
||||
GeneralFunctions.displayMessageBox(GeneralFunctions.EXCEPTIONS_TITLE, GeneralFunctions.EXCEPTIONS_MESSAGE);
|
||||
$('#message_box').append(GeneralFunctions.exceptionsToHtml(response.exceptions));
|
||||
return;
|
||||
}
|
||||
|
||||
if (response.warnings) {
|
||||
response.warnings = GeneralFunctions.parseExceptions(response.warnings);
|
||||
GeneralFunctions.displayMessageBox(GeneralFunctions.WARNINGS_TITLE, GeneralFunctions.WARNINGS_MESSAGE);
|
||||
$('#message_box').append(GeneralFunctions.exceptionsToHtml(response.warnings));
|
||||
}
|
||||
|
||||
// Refresh calendar event items.
|
||||
$('#select-filter-item').trigger('change');
|
||||
}, 'json');
|
||||
};
|
||||
|
||||
messageButtons[EALang['be_cancel']] = function() {
|
||||
$('#message_box').dialog('close');
|
||||
};
|
||||
|
||||
|
||||
GeneralFunctions.displayMessageBox(EALang['be_delete_appointment_title'],
|
||||
EALang['be_write_appointment_removal_reason'], messageButtons);
|
||||
$('#message_box').append('<textarea id="delete-reason" rows="3"></textarea>');
|
||||
$('#delete-reason').css('width', '353px');
|
||||
} else {
|
||||
|
@ -522,14 +523,14 @@ var BackendCalendar = {
|
|||
// :: DEFINE SUCCESS EVENT CALLBACK
|
||||
var successCallback = function(response) {
|
||||
if (!GeneralFunctions.handleAjaxExceptions(response)) {
|
||||
$dialog.find('.modal-message').text('Unexpected issues occured!');
|
||||
$dialog.find('.modal-message').text(EALang['be_unexpected_issues_occurred']);
|
||||
$dialog.find('.modal-message').addClass('alert-error');
|
||||
$dialog.find('.modal-message').fadeIn();
|
||||
return;
|
||||
}
|
||||
|
||||
// Display success message to the user.
|
||||
$dialog.find('.modal-message').text('Appointment saved successfully!');
|
||||
$dialog.find('.modal-message').text(EALang['be_appointment_saved']);
|
||||
$dialog.find('.modal-message').addClass('alert-success').removeClass('alert-error');
|
||||
$dialog.find('.modal-message').fadeIn();
|
||||
$dialog.find('.modal-body').scrollTop(0);
|
||||
|
@ -545,7 +546,7 @@ var BackendCalendar = {
|
|||
|
||||
// :: DEFINE AJAX ERROR EVENT CALLBACK
|
||||
var errorCallback = function() {
|
||||
$dialog.find('.modal-message').text('A server communication error occured, please try again.');
|
||||
$dialog.find('.modal-message').text(EALang['be_server_communication_error']);
|
||||
$dialog.find('.modal-message').addClass('alert-error');
|
||||
$dialog.find('.modal-message').fadeIn();
|
||||
$dialog.find('.modal-body').scrollTop(0);
|
||||
|
@ -569,7 +570,7 @@ var BackendCalendar = {
|
|||
|
||||
if (start > end) {
|
||||
// Start time is after end time - display message to user.
|
||||
$dialog.find('.modal-message').text('Start date value is bigger than end date!');
|
||||
$dialog.find('.modal-message').text(EALang['be_start_date_before_end_error']);
|
||||
$dialog.find('.modal-message').addClass('alert-error');
|
||||
$dialog.find('.modal-message').fadeIn();
|
||||
return;
|
||||
|
@ -598,7 +599,7 @@ var BackendCalendar = {
|
|||
GeneralFunctions.displayMessageBox(GeneralFunctions.EXCEPTIONS_TITLE, GeneralFunctions.EXCEPTIONS_MESSAGE);
|
||||
$('#message_box').append(GeneralFunctions.exceptionsToHtml(response.exceptions));
|
||||
|
||||
$dialog.find('.modal-message').text('Unexpected issues occured!');
|
||||
$dialog.find('.modal-message').text(EALang['be_unexpected_issues_occurred']);
|
||||
$dialog.find('.modal-message').addClass('alert-error');
|
||||
$dialog.find('.modal-message').fadeIn();
|
||||
|
||||
|
@ -612,7 +613,7 @@ var BackendCalendar = {
|
|||
}
|
||||
|
||||
// Display success message to the user.
|
||||
$dialog.find('.modal-message').text('Unavailable period saved successfully!');
|
||||
$dialog.find('.modal-message').text(EALang['be_unavailabled_saved']);
|
||||
$dialog.find('.modal-message').removeClass('alert-error');
|
||||
$dialog.find('.modal-message').addClass('alert-success');
|
||||
$dialog.find('.modal-message').fadeIn();
|
||||
|
@ -634,7 +635,7 @@ var BackendCalendar = {
|
|||
GeneralFunctions.displayMessageBox('Communication Error', 'Unfortunately ' +
|
||||
'the operation could not complete due to server communication errors.');
|
||||
|
||||
$dialog.find('.modal-message').txt('A server communication error occured, please try again.');
|
||||
$dialog.find('.modal-message').txt(EALang['be_service_communication_error']);
|
||||
$dialog.find('.modal-message').addClass('alert-error');
|
||||
$dialog.find('.modal-message').fadeIn();
|
||||
};
|
||||
|
@ -680,7 +681,7 @@ var BackendCalendar = {
|
|||
window.clearInterval(authInterval);
|
||||
$('#enable-sync').addClass('btn-success enabled');
|
||||
$('#enable-sync i').addClass('icon-white');
|
||||
$('#enable-sync span').text('Disable Sync');
|
||||
$('#enable-sync span').text(EALang['be_disable_sync']);
|
||||
$('#google-sync').prop('disabled', false);
|
||||
$('#select-filter-item option:selected').attr('google-sync', 'true');
|
||||
}
|
||||
|
@ -700,7 +701,7 @@ var BackendCalendar = {
|
|||
|
||||
$('#enable-sync').removeClass('btn-success enabled');
|
||||
$('#enable-sync i').removeClass('icon-white');
|
||||
$('#enable-sync span').text('Enable Sync');
|
||||
$('#enable-sync span').text(EALang['be_enable_sync']);
|
||||
$('#google-sync').prop('disabled', true);
|
||||
$('#select-filter-item option:selected').attr('google-sync', 'false');
|
||||
|
||||
|
@ -762,7 +763,7 @@ var BackendCalendar = {
|
|||
$dialog.find('#end-datetime').val(start.addMinutes(serviceDuration).toString('dd/MM/yyyy HH:mm'));
|
||||
|
||||
// Display modal form.
|
||||
$dialog.find('.modal-header h3').text('New Appointment');
|
||||
$dialog.find('.modal-header h3').text(EALang['be_new_appointment_title']);
|
||||
$dialog.modal('show');
|
||||
});
|
||||
|
||||
|
@ -792,7 +793,7 @@ var BackendCalendar = {
|
|||
$dialog.find('#unavailable-start').val(start.toString('dd/MM/yyyy HH:mm'));
|
||||
$dialog.find('#unavailable-end').val(start.addHours(1).toString('dd/MM/yyyy HH:mm'));
|
||||
|
||||
$dialog.find('.modal-header h3').text('New Unavailable Period');
|
||||
$dialog.find('.modal-header h3').text(EALang['be_new_unavailable_title']);
|
||||
$dialog.modal('show');
|
||||
});
|
||||
|
||||
|
@ -803,7 +804,7 @@ var BackendCalendar = {
|
|||
var $list = $('#existing-customers-list');
|
||||
|
||||
if (!$list.is(':visible')) {
|
||||
$(this).text('Hide');
|
||||
$(this).text(EALang['be_hide']);
|
||||
$list.empty();
|
||||
$list.slideDown('slow');
|
||||
$('#filter-existing-customers').fadeIn('slow');
|
||||
|
@ -815,7 +816,7 @@ var BackendCalendar = {
|
|||
} else {
|
||||
$list.slideUp('slow');
|
||||
$('#filter-existing-customers').fadeOut('slow');
|
||||
$(this).text('Select');
|
||||
$(this).text(EALang['be_select']);
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -983,7 +984,7 @@ var BackendCalendar = {
|
|||
|
||||
if (calendarDateStart < workDateStart) {
|
||||
unavailablePeriod = {
|
||||
'title': 'Not Working',
|
||||
'title': EALang['be_now_working'],
|
||||
'start': calendarDateStart,
|
||||
'end': workDateStart,
|
||||
'allDay': false,
|
||||
|
@ -1002,7 +1003,7 @@ var BackendCalendar = {
|
|||
'dd/MM/yyyy HH:mm'); // Use calendarDateStart ***
|
||||
if (calendarDateEnd > workDateEnd) {
|
||||
var unavailablePeriod = {
|
||||
'title': 'Not Working',
|
||||
'title': EALang['be_not_working'],
|
||||
'start': workDateEnd,
|
||||
'end': calendarDateEnd,
|
||||
'allDay': false,
|
||||
|
@ -1021,7 +1022,7 @@ var BackendCalendar = {
|
|||
breakEnd = Date.parseExact(calendarDateStart.toString('dd/MM/yyyy')
|
||||
+ ' ' + currBreak.end, 'dd/MM/yyyy HH:mm');
|
||||
var unavailablePeriod = {
|
||||
'title': 'Break',
|
||||
'title': EALang['be_break'],
|
||||
'start': breakStart,
|
||||
'end': breakEnd,
|
||||
'allDay': false,
|
||||
|
@ -1035,7 +1036,7 @@ var BackendCalendar = {
|
|||
// Add custom unavailable periods.
|
||||
$.each(response.unavailables, function(index, unavailable) {
|
||||
var unavailablePeriod = {
|
||||
'title': 'Unavailable <br><small>' + ((unavailable.notes.length > 30)
|
||||
'title': EALang['be_unavailable'] + ' <br><small>' + ((unavailable.notes.length > 30)
|
||||
? unavailable.notes.substring(0, 30) + '...'
|
||||
: unavailable.notes) + '</small>',
|
||||
'start': Date.parse(unavailable.start_datetime),
|
||||
|
@ -1055,15 +1056,14 @@ var BackendCalendar = {
|
|||
var currDateStart = GeneralFunctions.clone($calendar.fullCalendar('getView').start);
|
||||
var currDateEnd = GeneralFunctions.clone(currDateStart).addDays(1);
|
||||
|
||||
$.each(workingPlan, function(index, workingDay) {
|
||||
|
||||
$.each(workingPlan, function(index, workingDay) {
|
||||
// Add custom unavailable periods (they are always displayed
|
||||
// on the calendar, even if the provider won't work on that day).
|
||||
$.each(response.unavailables, function(index, unavailable) {
|
||||
if (currDateStart.toString('dd/MM/yyyy')
|
||||
=== Date.parse(unavailable.start_datetime).toString('dd/MM/yyyy')) {
|
||||
var unavailablePeriod = {
|
||||
'title': 'Unavailable <br><small>' + ((unavailable.notes.length > 30)
|
||||
'title': EALang['be_unavailable'] + ' <br><small>' + ((unavailable.notes.length > 30)
|
||||
? unavailable.notes.substring(0, 30) + '...'
|
||||
: unavailable.notes) + '</small>',
|
||||
'start': Date.parse(unavailable.start_datetime),
|
||||
|
@ -1081,7 +1081,7 @@ var BackendCalendar = {
|
|||
if (workingDay == null) {
|
||||
// Add a full day unavailable event.
|
||||
unavailablePeriod = {
|
||||
'title': 'Not Working',
|
||||
'title': EALang['be_not_working'],
|
||||
'start': GeneralFunctions.clone(currDateStart),
|
||||
'end': GeneralFunctions.clone(currDateEnd),
|
||||
'allDay': false,
|
||||
|
@ -1102,7 +1102,7 @@ var BackendCalendar = {
|
|||
+ ' ' + workingDay.start, 'dd/MM/yyyy HH:mm');
|
||||
if (currDateStart < start) {
|
||||
unavailablePeriod = {
|
||||
'title': 'Not Working',
|
||||
'title': EALang['be_not_working'],
|
||||
'start': GeneralFunctions.clone(currDateStart),
|
||||
'end': GeneralFunctions.clone(start),
|
||||
'allDay': false,
|
||||
|
@ -1118,7 +1118,7 @@ var BackendCalendar = {
|
|||
+ ' ' + workingDay.end, 'dd/MM/yyyy HH:mm');
|
||||
if (currDateEnd > end) {
|
||||
unavailablePeriod = {
|
||||
'title': 'Not Working',
|
||||
'title': EALang['be_not_working'],
|
||||
'start': GeneralFunctions.clone(end),
|
||||
'end': GeneralFunctions.clone(currDateEnd),
|
||||
'allDay': false,
|
||||
|
@ -1137,7 +1137,7 @@ var BackendCalendar = {
|
|||
breakEnd = Date.parseExact(currDateStart.toString('dd/MM/yyyy')
|
||||
+ ' ' + currBreak.end, 'dd/MM/yyyy HH:mm');
|
||||
var unavailablePeriod = {
|
||||
'title': 'Break',
|
||||
'title': EALang['be_break'],
|
||||
'start': breakStart,
|
||||
'end': breakEnd,
|
||||
'allDay': false,
|
||||
|
@ -1248,8 +1248,7 @@ var BackendCalendar = {
|
|||
jsEvent, ui, view) {
|
||||
if (GlobalVariables.user.privileges.appointments.edit == false) {
|
||||
revertFunc();
|
||||
Backend.displayNotification('You do not have the required privileges to '
|
||||
+ 'edit appointments.');
|
||||
Backend.displayNotification(EALang['be_no_privileges_edit_appointments']);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -1304,7 +1303,7 @@ var BackendCalendar = {
|
|||
});
|
||||
};
|
||||
|
||||
Backend.displayNotification('Appointment updated successfully!', [
|
||||
Backend.displayNotification(EALang['be_appointment_updated'], [
|
||||
{
|
||||
'label': 'Undo',
|
||||
'function': undoFunction
|
||||
|
@ -1357,7 +1356,7 @@ var BackendCalendar = {
|
|||
});
|
||||
};
|
||||
|
||||
Backend.displayNotification('Unavailable time period updated successfully!', [
|
||||
Backend.displayNotification(EALang['be_unavailable_updated'], [
|
||||
{
|
||||
'label': 'Undo',
|
||||
'function': undoFunction
|
||||
|
@ -1431,18 +1430,18 @@ var BackendCalendar = {
|
|||
+ '.popover-content strong {min-width: 80px; display:inline-block;}'
|
||||
+ '.popover-content button {margin-right: 10px;}'
|
||||
+ '</style>' +
|
||||
'<strong>Start</strong> '
|
||||
'<strong>' + EALang['fe_start'] + '</strong> '
|
||||
+ event.start.toString('dd/MM/yyyy HH:mm')
|
||||
+ '<br>' +
|
||||
'<strong>End</strong> '
|
||||
'<strong>' + EALang['fe_end'] + '</strong> '
|
||||
+ event.end.toString('dd/MM/yyyy HH:mm')
|
||||
+ '<br>'
|
||||
+ notes
|
||||
+ '<hr>' +
|
||||
'<center>' +
|
||||
'<button class="edit-popover btn btn-primary ' + displayEdit + '">Edit</button>' +
|
||||
'<button class="delete-popover btn btn-danger ' + displayDelete + '">Delete</button>' +
|
||||
'<button class="close-popover btn" data-po=' + jsEvent.target + '>Close</button>' +
|
||||
'<button class="edit-popover btn btn-primary ' + displayEdit + '">' + EALang['be_edit'] + '</button>' +
|
||||
'<button class="delete-popover btn btn-danger ' + displayDelete + '">' + EALang['be_delete'] + '</button>' +
|
||||
'<button class="close-popover btn" data-po=' + jsEvent.target + '>' + EALang['be_close'] + '</button>' +
|
||||
'</center>';
|
||||
} else {
|
||||
displayEdit = (GlobalVariables.user.privileges.appointments.edit == true)
|
||||
|
@ -1455,27 +1454,27 @@ var BackendCalendar = {
|
|||
+ '.popover-content strong {min-width: 80px; display:inline-block;}'
|
||||
+ '.popover-content button {margin-right: 10px;}'
|
||||
+ '</style>' +
|
||||
'<strong>Start</strong> '
|
||||
'<strong>' + EALang['fe_start'] + '</strong> '
|
||||
+ event.start.toString('dd/MM/yyyy HH:mm')
|
||||
+ '<br>' +
|
||||
'<strong>End</strong> '
|
||||
'<strong>' + EALang['fe_end'] + '</strong> '
|
||||
+ event.end.toString('dd/MM/yyyy HH:mm')
|
||||
+ '<br>' +
|
||||
'<strong>Service</strong> '
|
||||
'<strong>' + EALang['fe_service'] + '</strong> '
|
||||
+ event.data['service']['name']
|
||||
+ '<br>' +
|
||||
'<strong>Provider</strong> '
|
||||
'<strong>' + EALang['fe_provider'] + '</strong> '
|
||||
+ event.data['provider']['first_name'] + ' '
|
||||
+ event.data['provider']['last_name']
|
||||
+ '<br>' +
|
||||
'<strong>Customer</strong> '
|
||||
'<strong>' + EALang['fe_customer'] + '</strong> '
|
||||
+ event.data['customer']['first_name'] + ' '
|
||||
+ event.data['customer']['last_name']
|
||||
+ '<hr>' +
|
||||
'<center>' +
|
||||
'<button class="edit-popover btn btn-primary ' + displayEdit + '">Edit</button>' +
|
||||
'<button class="delete-popover btn btn-danger ' + displayDelete + '">Delete</button>' +
|
||||
'<button class="close-popover btn" data-po=' + jsEvent.target + '>Close</button>' +
|
||||
'<button class="edit-popover btn btn-primary ' + displayEdit + '">' + EALang['be_edit'] + '</button>' +
|
||||
'<button class="delete-popover btn btn-danger ' + displayDelete + '">' + EALang['be_delete'] + '</button>' +
|
||||
'<button class="close-popover btn" data-po=' + jsEvent.target + '>' + EALang['be_close'] + '</button>' +
|
||||
'</center>';
|
||||
}
|
||||
|
||||
|
@ -1506,8 +1505,7 @@ var BackendCalendar = {
|
|||
revertFunc, jsEvent, ui, view) {
|
||||
if (GlobalVariables.user.privileges.appointments.edit == false) {
|
||||
revertFunc();
|
||||
Backend.displayNotification('You do not have the required privileges to '
|
||||
+ 'edit appointments.');
|
||||
Backend.displayNotification(EALang['be_no_privileges_edit_appointments']);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -1580,7 +1578,7 @@ var BackendCalendar = {
|
|||
});
|
||||
};
|
||||
|
||||
Backend.displayNotification('Appointment updated successfully!', [
|
||||
Backend.displayNotification(EALang['be_appointment_updated'], [
|
||||
{
|
||||
'label': 'Undo',
|
||||
'function': undoFunction
|
||||
|
@ -1642,7 +1640,7 @@ var BackendCalendar = {
|
|||
});
|
||||
};
|
||||
|
||||
Backend.displayNotification('Unavailable period updated successfully!', [
|
||||
Backend.displayNotification(EALang['be_unavailable_updated'], [
|
||||
{
|
||||
'label': 'Undo',
|
||||
'function': undoFunction
|
||||
|
@ -1750,7 +1748,7 @@ var BackendCalendar = {
|
|||
// :: CLOSE EXISTING CUSTOMERS FILTER FRAME
|
||||
$('#existing-customers-list').slideUp('slow');
|
||||
$('#filter-existing-customers').fadeOut('slow');
|
||||
$('#select-customer').text('Select');
|
||||
$('#select-customer').text(EALang['be_select']);
|
||||
|
||||
// :: SETUP START AND END DATETIME PICKERS
|
||||
// Get the selected service duration. It will be needed in order to calculate
|
||||
|
|
|
@ -195,19 +195,17 @@ CustomersHelper.prototype.bindEventHandlers = function() {
|
|||
$('#delete-customer').click(function() {
|
||||
var customerId = $('#customer-id').val();
|
||||
|
||||
var messageBtns = {
|
||||
'Delete': function() {
|
||||
BackendCustomers.helper.delete(customerId);
|
||||
$('#message_box').dialog('close');
|
||||
},
|
||||
|
||||
'Cancel': function() {
|
||||
$('#message_box').dialog('close');
|
||||
}
|
||||
var messageBtns = {};
|
||||
messageBtns[EALang['be_delete']] = function() {
|
||||
BackendCustomers.helper.delete(customerId);
|
||||
$('#message_box').dialog('close');
|
||||
};
|
||||
messageBtns[EALang['fe_cancel']] = function() {
|
||||
$('#message_box').dialog('close');
|
||||
};
|
||||
|
||||
GeneralFunctions.displayMessageBox('Delete Customer', 'Are you sure that you want '
|
||||
+ 'to delete this customer? This action cannot be undone.', messageBtns);
|
||||
GeneralFunctions.displayMessageBox(EALang['be_delete_customer'],
|
||||
EALang['be_delete_record_prompt'], messageBtns);
|
||||
});
|
||||
};
|
||||
|
||||
|
@ -227,7 +225,7 @@ CustomersHelper.prototype.save = function(customer) {
|
|||
|
||||
if (!GeneralFunctions.handleAjaxExceptions(response)) return;
|
||||
|
||||
Backend.displayNotification('Customer saved successfully!');
|
||||
Backend.displayNotification(EALang['be_customer_saved']);
|
||||
BackendCustomers.helper.resetForm();
|
||||
$('#filter-customers .key').val('');
|
||||
BackendCustomers.helper.filter('', response.id, true);
|
||||
|
@ -250,7 +248,7 @@ CustomersHelper.prototype.delete = function(id) {
|
|||
|
||||
if (!GeneralFunctions.handleAjaxExceptions(response)) return;
|
||||
|
||||
Backend.displayNotification('Customer deleted successfully!');
|
||||
Backend.displayNotification(EALang['be_customer_deleted']);
|
||||
BackendCustomers.helper.resetForm();
|
||||
BackendCustomers.helper.filter($('#filter-customers .key').val());
|
||||
}, 'json');
|
||||
|
@ -275,13 +273,13 @@ CustomersHelper.prototype.validate = function(customer) {
|
|||
}
|
||||
});
|
||||
if (missingRequired) {
|
||||
throw 'Fields with * are required!';
|
||||
throw EALang['fe_fields_are_required'];
|
||||
}
|
||||
|
||||
// Validate email address.
|
||||
if (!GeneralFunctions.validateEmail($('#email').val())) {
|
||||
$('#email').css('border', '2px solid red');
|
||||
throw 'Invalid email address!';
|
||||
throw EALang['be_invalid_email'];
|
||||
}
|
||||
|
||||
return true;
|
||||
|
@ -380,7 +378,7 @@ CustomersHelper.prototype.filter = function(key, selectId, display) {
|
|||
$('#filter-customers .results').jScrollPane({ mouseWheelSpeed: 70 });
|
||||
|
||||
if (response.length == 0) {
|
||||
$('#filter-customers .results').html('<em>No records found...</em>');
|
||||
$('#filter-customers .results').html('<em>' + EALang['be_no_records_found'] + '</em>');
|
||||
}
|
||||
|
||||
if (selectId != undefined) {
|
||||
|
|
|
@ -25,7 +25,7 @@ var BackendServices = {
|
|||
var option = new Option(category.name, category.id);
|
||||
$('#service-category').append(option);
|
||||
});
|
||||
$('#service-category').append(new Option('- No Category -', null)).val('null');
|
||||
$('#service-category').append(new Option('- ' + EALang['be_no_category'] + ' -', null)).val('null');
|
||||
|
||||
$('#service-duration').spinner({
|
||||
'min': 0,
|
||||
|
@ -99,7 +99,7 @@ var BackendServices = {
|
|||
var option = new Option(category.name, category.id);
|
||||
$select.append(option);
|
||||
});
|
||||
$select.append(new Option('- No Category -', null)).val('null');
|
||||
$select.append(new Option('- ' + EALang['be_no_category'] + ' -', null)).val('null');
|
||||
}, 'json');
|
||||
}
|
||||
};
|
||||
|
@ -233,18 +233,18 @@ ServicesHelper.prototype.bindEventHandlers = function() {
|
|||
$('#delete-service').click(function() {
|
||||
var serviceId = $('#service-id').val();
|
||||
|
||||
var messageBtns = {
|
||||
'Delete': function() {
|
||||
BackendServices.helper.delete(serviceId);
|
||||
$('#message_box').dialog('close');
|
||||
},
|
||||
'Cancel': function() {
|
||||
$('#message_box').dialog('close');
|
||||
}
|
||||
var messageBtns = {};
|
||||
messageBtns[EALang['be_delete']] = function() {
|
||||
BackendServices.helper.delete(serviceId);
|
||||
$('#message_box').dialog('close');
|
||||
};
|
||||
|
||||
GeneralFunctions.displayMessageBox('Delete Service', 'Are you sure that you want '
|
||||
+ 'to delete this record? This action cannot be undone.', messageBtns);
|
||||
messageBtns[EALang['fe_cancel']] = function() {
|
||||
$('#message_box').dialog('close');
|
||||
};
|
||||
|
||||
GeneralFunctions.displayMessageBox(EALang['be_delete_service'],
|
||||
EALang['be_delete_record_prompt'], messageBtns);
|
||||
});
|
||||
};
|
||||
|
||||
|
@ -268,7 +268,7 @@ ServicesHelper.prototype.save = function(service) {
|
|||
//////////////////////////////////////////////////
|
||||
if (!GeneralFunctions.handleAjaxExceptions(response)) return;
|
||||
|
||||
Backend.displayNotification('Service saved successfully!');
|
||||
Backend.displayNotification(EALang['be_service_saved']);
|
||||
BackendServices.helper.resetForm();
|
||||
$('#filter-services .key').val('');
|
||||
BackendServices.helper.filter('', response.id, true);
|
||||
|
@ -291,7 +291,7 @@ ServicesHelper.prototype.delete = function(id) {
|
|||
|
||||
if (!GeneralFunctions.handleAjaxExceptions(response)) return;
|
||||
|
||||
Backend.displayNotification('Service deleted successfully!');
|
||||
Backend.displayNotification(EALang['be_service_deleted']);
|
||||
|
||||
BackendServices.helper.resetForm();
|
||||
BackendServices.helper.filter($('#filter-services .key').val());
|
||||
|
@ -317,7 +317,7 @@ ServicesHelper.prototype.validate = function(service) {
|
|||
}
|
||||
});
|
||||
if (missingRequired) {
|
||||
throw 'Fields with * are required.';
|
||||
throw EALang['fe_fields_are_required'];
|
||||
}
|
||||
|
||||
return true;
|
||||
|
@ -342,6 +342,7 @@ ServicesHelper.prototype.resetForm = function() {
|
|||
$('#filter-services .selected-row').removeClass('selected-row');
|
||||
$('#filter-services button').prop('disabled', false);
|
||||
$('#filter-services .results').css('color', '');
|
||||
$('#filter-services .key').val('');
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -394,7 +395,7 @@ ServicesHelper.prototype.filter = function(key, selectId, display) {
|
|||
$('#filter-services .results').jScrollPane({ mouseWheelSpeed: 70 });
|
||||
|
||||
if (response.length == 0) {
|
||||
$('#filter-services .results').html('<em>No results found ...</em>');
|
||||
$('#filter-services .results').html('<em>' + EALang['be_no_records_found'] + '</em>');
|
||||
}
|
||||
|
||||
if (selectId != undefined) {
|
||||
|
@ -550,8 +551,8 @@ CategoriesHelper.prototype.bindEventHandlers = function() {
|
|||
}
|
||||
};
|
||||
|
||||
GeneralFunctions.displayMessageBox('Delete Category', 'Are you sure that you want '
|
||||
+ 'to delete this record? This action cannot be undone.', messageBtns);
|
||||
GeneralFunctions.displayMessageBox(EALang['be_delete_category'],
|
||||
EALang['be_delete_record_prompt'], messageBtns);
|
||||
});
|
||||
|
||||
/**
|
||||
|
@ -615,7 +616,7 @@ CategoriesHelper.prototype.filter = function(key, selectId, display) {
|
|||
$('#filter-categories .results').jScrollPane({ mouseWheelSpeed: 70 });
|
||||
|
||||
if (response.length == 0) {
|
||||
$('#filter-categories .results').html('<em>No records found...</em>');
|
||||
$('#filter-categories .results').html('<em>' + EALang['be_no_records_found'] + '</em>');
|
||||
}
|
||||
|
||||
if (selectId != undefined) {
|
||||
|
@ -641,7 +642,7 @@ CategoriesHelper.prototype.save = function(category) {
|
|||
|
||||
if (!GeneralFunctions.handleAjaxExceptions(response)) return;
|
||||
|
||||
Backend.displayNotification('Category saved successfully!');
|
||||
Backend.displayNotification(EALang['be_category_saved']);
|
||||
BackendServices.helper.resetForm();
|
||||
$('#filter-categories .key').val('');
|
||||
BackendServices.helper.filter('', response.id, true);
|
||||
|
@ -665,7 +666,7 @@ CategoriesHelper.prototype.delete = function(id) {
|
|||
|
||||
if (!GeneralFunctions.handleAjaxExceptions(response)) return;
|
||||
|
||||
Backend.displayNotification('Category deleted successfully!');
|
||||
Backend.displayNotification(EALang['be_category_deleted']);
|
||||
|
||||
BackendServices.helper.resetForm();
|
||||
BackendServices.helper.filter($('#filter-categories .key').val());
|
||||
|
@ -700,7 +701,7 @@ CategoriesHelper.prototype.validate = function(category) {
|
|||
missingRequired = true;
|
||||
}
|
||||
});
|
||||
if (missingRequired) throw 'Required field is missing.';
|
||||
if (missingRequired) throw EALang['fe_fields_are_required'];
|
||||
|
||||
return true;
|
||||
|
||||
|
@ -723,6 +724,7 @@ CategoriesHelper.prototype.resetForm = function() {
|
|||
$('#filter-categories .selected-row').removeClass('selected-row');
|
||||
$('#filter-categories .results').css('color', '');
|
||||
$('#filter-categories button').prop('disabled', false);
|
||||
$('#filter-categories .key').val('');
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
@ -155,12 +155,12 @@ var BackendUsers = {
|
|||
if (response == false) {
|
||||
$input.css('border', '2px solid red');
|
||||
$input.attr('already-exists', 'true');
|
||||
$input.parents().eq(3).find('.form-message').text('Username already exists.');
|
||||
$input.parents().eq(3).find('.form-message').text(EALang['be_username_already_exists']);
|
||||
$input.parents().eq(3).find('.form-message').show();
|
||||
} else {
|
||||
$input.css('border', '');
|
||||
$input.attr('already-exists', 'false');
|
||||
if ($input.parents().eq(3).find('.form-message').text() == 'Username already exists.') {
|
||||
if ($input.parents().eq(3).find('.form-message').text() == EALang['be_username_already_exists']) {
|
||||
$input.parents().eq(3).find('.form-message').hide();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -94,18 +94,17 @@ AdminsHelper.prototype.bindEventHandlers = function() {
|
|||
$('#delete-admin').click(function() {
|
||||
var adminId = $('#admin-id').val();
|
||||
|
||||
var messageBtns = {
|
||||
'Delete': function() {
|
||||
BackendUsers.helper.delete(adminId);
|
||||
$('#message_box').dialog('close');
|
||||
},
|
||||
'Cancel': function() {
|
||||
$('#message_box').dialog('close');
|
||||
}
|
||||
var messageBtns = {};
|
||||
messageBtns[EALang['be_delete']] = function() {
|
||||
BackendUsers.helper.delete(adminId);
|
||||
$('#message_box').dialog('close');
|
||||
};
|
||||
messageBtns[EALang['be_cancel']] = function() {
|
||||
$('#message_box').dialog('close');
|
||||
};
|
||||
|
||||
GeneralFunctions.displayMessageBox('Delete Admin', 'Are you sure that you want '
|
||||
+ 'to delete this record? This action cannot be undone.', messageBtns);
|
||||
GeneralFunctions.displayMessageBox(EALang['be_delete_admin'],
|
||||
EALang['be_delete_record_prompt'], messageBtns);
|
||||
});
|
||||
|
||||
/**
|
||||
|
@ -177,7 +176,7 @@ AdminsHelper.prototype.save = function(admin) {
|
|||
//console.log('Save Admin Response:', response);
|
||||
////////////////////////////////////////////////
|
||||
if (!GeneralFunctions.handleAjaxExceptions(response)) return;
|
||||
Backend.displayNotification('Admin saved successfully!');
|
||||
Backend.displayNotification(EALang['be_admin_saved']);
|
||||
BackendUsers.helper.resetForm();
|
||||
$('#filter-admins .key').val('');
|
||||
BackendUsers.helper.filter('', response.id, true);
|
||||
|
@ -198,7 +197,7 @@ AdminsHelper.prototype.delete = function(id) {
|
|||
//console.log('Delete admin response:', response);
|
||||
//////////////////////////////////////////////////
|
||||
if (!GeneralFunctions.handleAjaxExceptions(response)) return;
|
||||
Backend.displayNotification('Admin deleted successfully!');
|
||||
Backend.displayNotification(EALang['be_admin_deleted']);
|
||||
BackendUsers.helper.resetForm();
|
||||
BackendUsers.helper.filter($('#filter-admins .key').val());
|
||||
}, 'json');
|
||||
|
@ -230,26 +229,26 @@ AdminsHelper.prototype.validate = function(admin) {
|
|||
// Validate passwords.
|
||||
if ($('#admin-password').val() != $('#admin-password-confirm').val()) {
|
||||
$('#admin-password, #admin-password-confirm').css('border', '2px solid red');
|
||||
throw 'Passwords mismatch!';
|
||||
throw EALang['be_passwords_mismatch'];
|
||||
}
|
||||
|
||||
if ($('#admin-password').val().length < BackendUsers.MIN_PASSWORD_LENGTH
|
||||
&& $('#admin-password').val() != '') {
|
||||
$('#admin-password, #admin-password-confirm').css('border', '2px solid red');
|
||||
throw 'Password must be at least ' + BackendUsers.MIN_PASSWORD_LENGTH
|
||||
+ ' characters long.';
|
||||
|
||||
throw EALang['be_password_length_notice'].replace('$number', BackendUsers.MIN_PASSWORD_LENGTH);
|
||||
}
|
||||
|
||||
// Validate user email.
|
||||
if (!GeneralFunctions.validateEmail($('#admin-email').val())) {
|
||||
$('#admin-email').css('border', '2px solid red');
|
||||
throw 'Invalid email address!';
|
||||
throw EALang['be_invalid_email'];
|
||||
}
|
||||
|
||||
// Check if username exists
|
||||
if ($('#admin-username').attr('already-exists') == 'true') {
|
||||
$('#admin-username').css('border', '2px solid red');
|
||||
throw 'Username already exists.';
|
||||
throw EALang['be_username_already_exists'];
|
||||
}
|
||||
|
||||
return true;
|
||||
|
@ -339,7 +338,7 @@ AdminsHelper.prototype.filter = function(key, selectId, display) {
|
|||
$('#filter-admins .results').jScrollPane({ mouseWheelSpeed: 70 });
|
||||
|
||||
if (response.length == 0) {
|
||||
$('#filter-admins .results').html('<em>No results found ...</em>')
|
||||
$('#filter-admins .results').html('<em>' + EALang['be_no_records_found'] + '</em>')
|
||||
}
|
||||
|
||||
if (selectId != undefined) {
|
||||
|
|
|
@ -104,18 +104,17 @@ ProvidersHelper.prototype.bindEventHandlers = function() {
|
|||
$('#delete-provider').click(function() {
|
||||
var providerId = $('#provider-id').val();
|
||||
|
||||
var messageBtns = {
|
||||
'Delete': function() {
|
||||
BackendUsers.helper.delete(providerId);
|
||||
$('#message_box').dialog('close');
|
||||
},
|
||||
'Cancel': function() {
|
||||
$('#message_box').dialog('close');
|
||||
}
|
||||
var messageBtns = {};
|
||||
messageBtns[EALang['be_delete']] = function() {
|
||||
BackendUsers.helper.delete(providerId);
|
||||
$('#message_box').dialog('close');
|
||||
};
|
||||
messageBtns[EALang['be_cancel']] = function() {
|
||||
$('#message_box').dialog('close');
|
||||
};
|
||||
|
||||
GeneralFunctions.displayMessageBox('Delete Provider', 'Are you sure that you want '
|
||||
+ 'to delete this record? This action cannot be undone.', messageBtns);
|
||||
GeneralFunctions.displayMessageBox(EALang['be_delete_provider'],
|
||||
EALang['be_delete_record_prompt'], messageBtns);
|
||||
});
|
||||
|
||||
/**
|
||||
|
@ -228,7 +227,7 @@ ProvidersHelper.prototype.save = function(provider) {
|
|||
//console.log('Save Provider Response:', response);
|
||||
///////////////////////////////////////////////////
|
||||
if (!GeneralFunctions.handleAjaxExceptions(response)) return;
|
||||
Backend.displayNotification('Provider saved successfully!');
|
||||
Backend.displayNotification(EALang['be_provider_saved']);
|
||||
BackendUsers.helper.resetForm();
|
||||
$('#filter-providers .key').val('');
|
||||
BackendUsers.helper.filter('', response.id, true);
|
||||
|
@ -249,7 +248,7 @@ ProvidersHelper.prototype.delete = function(id) {
|
|||
//console.log('Delete provider response:', response);
|
||||
/////////////////////////////////////////////////////
|
||||
if (!GeneralFunctions.handleAjaxExceptions(response)) return;
|
||||
Backend.displayNotification('Provider deleted successfully!');
|
||||
Backend.displayNotification(EALang['be_provider_deleted']);
|
||||
BackendUsers.helper.resetForm();
|
||||
BackendUsers.helper.filter($('#filter-providers .key').val());
|
||||
}, 'json');
|
||||
|
@ -275,32 +274,31 @@ ProvidersHelper.prototype.validate = function(provider) {
|
|||
}
|
||||
});
|
||||
if (missingRequired) {
|
||||
throw 'Fields with * are required.';
|
||||
throw EALang['fe_fields_are_required'];
|
||||
}
|
||||
|
||||
// Validate passwords.
|
||||
if ($('#provider-password').val() != $('#provider-password-confirm').val()) {
|
||||
$('#provider-password, #provider-password-confirm').css('border', '2px solid red');
|
||||
throw 'Passwords mismatch!';
|
||||
throw EALang['be_passwords_mismatch'];
|
||||
}
|
||||
|
||||
if ($('#provider-password').val().length < BackendUsers.MIN_PASSWORD_LENGTH
|
||||
&& $('#provider-password').val() != '') {
|
||||
$('#provider-password, #provider-password-confirm').css('border', '2px solid red');
|
||||
throw 'Password must be at least ' + BackendUsers.MIN_PASSWORD_LENGTH
|
||||
+ ' characters long.';
|
||||
throw EALang['be_password_length_notice'].replace('$number', BackendUsers.MIN_PASSWORD_LENGTH);
|
||||
}
|
||||
|
||||
// Validate user email.
|
||||
if (!GeneralFunctions.validateEmail($('#provider-email').val())) {
|
||||
$('#provider-email').css('border', '2px solid red');
|
||||
throw 'Invalid email address!';
|
||||
throw EALang['be_invalid_email'];
|
||||
}
|
||||
|
||||
// Check if username exists
|
||||
if ($('#provider-username').attr('already-exists') == 'true') {
|
||||
$('#provider-username').css('border', '2px solid red');
|
||||
throw 'Username already exists.';
|
||||
throw EALang['be_username_already_exists'];
|
||||
}
|
||||
|
||||
return true;
|
||||
|
@ -417,7 +415,7 @@ ProvidersHelper.prototype.filter = function(key, selectId, display) {
|
|||
$('#filter-providers .results').jScrollPane({ mouseWheelSpeed: 70 });
|
||||
|
||||
if (response.length == 0) {
|
||||
$('#filter-providers .results').html('<em>No results found ...</em>')
|
||||
$('#filter-providers .results').html('<em>' + EALang['be_no_records_found'] + '</em>')
|
||||
}
|
||||
|
||||
if (selectId != undefined) {
|
||||
|
@ -455,13 +453,24 @@ ProvidersHelper.prototype.getFilterHtml = function(provider) {
|
|||
* @param {object} $selector The cells to be initialized.
|
||||
*/
|
||||
ProvidersHelper.prototype.editableBreakDay = function($selector) {
|
||||
var weekDays = {};
|
||||
weekDays[EALang['be_monday']] = 'Monday';
|
||||
weekDays[EALang['be_tuesday']] = 'Tuesday';
|
||||
weekDays[EALang['be_wednesday']] = 'Wednesday';
|
||||
weekDays[EALang['be_thursday']] = 'Thursday';
|
||||
weekDays[EALang['be_friday']] = 'Friday';
|
||||
weekDays[EALang['be_saturday']] = 'Saturday';
|
||||
weekDays[EALang['be_sunday']] = 'Sunday';
|
||||
|
||||
|
||||
$selector.editable(function(value, settings) {
|
||||
return value;
|
||||
}, {
|
||||
'type': 'select',
|
||||
'data': '{ "Monday": "Monday", "Tuesday": "Tuesday", "Wednesday": "Wednesday", '
|
||||
+ '"Thursday": "Thursday", "Friday": "Friday", "Saturday": "Saturday", '
|
||||
+ '"Sunday": "Sunday", "selected": "Monday"}',
|
||||
// 'data': '{ "Monday": "Monday", "Tuesday": "Tuesday", "Wednesday": "Wednesday", '
|
||||
// + '"Thursday": "Thursday", "Friday": "Friday", "Saturday": "Saturday", '
|
||||
// + '"Sunday": "Sunday", "selected": "Monday"}',
|
||||
'data': weekDays,
|
||||
'event': 'edit',
|
||||
'height': '30px',
|
||||
'submit': '<button type="button" class="hidden submit-editable">Submit</button>',
|
||||
|
|
|
@ -9,10 +9,10 @@ var GeneralFunctions = {
|
|||
/**
|
||||
* General Functions Constants
|
||||
*/
|
||||
EXCEPTIONS_TITLE: 'Unexpected Issues',
|
||||
EXCEPTIONS_MESSAGE: 'The operation could not complete due to unexpected issues. ',
|
||||
WARNINGS_TITLE: 'Unexpected Warnings',
|
||||
WARNINGS_MESSAGE: 'The operation completed but some warnings appeared. ',
|
||||
EXCEPTIONS_TITLE: EALang['be_unexpected_issues'],
|
||||
EXCEPTIONS_MESSAGE: EALang['be_unexpected_issues_message'],
|
||||
WARNINGS_TITLE: EALang['be_unexpected_warnings'],
|
||||
WARNINGS_MESSAGE: EALang['be_unexpected_warnings_message'],
|
||||
|
||||
/**
|
||||
* This functions displays a message box in
|
||||
|
@ -35,10 +35,9 @@ var GeneralFunctions = {
|
|||
}
|
||||
|
||||
if (messageButtons == undefined) {
|
||||
messageButtons = {
|
||||
Close: function() {
|
||||
jQuery("#message_box").dialog("close");
|
||||
}
|
||||
messageButtons = {};
|
||||
messageButtons[EALang['be_close']] = function() {
|
||||
jQuery("#message_box").dialog("close");
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -76,13 +76,23 @@ WorkingPlan.prototype.setup = function(workingPlan) {
|
|||
* @param {object} $selector The jquery selector ready for use.
|
||||
*/
|
||||
WorkingPlan.prototype.editableBreakDay = function($selector) {
|
||||
var weekDays = {};
|
||||
weekDays[EALang['be_monday']] = 'Monday';
|
||||
weekDays[EALang['be_tuesday']] = 'Tuesday';
|
||||
weekDays[EALang['be_wednesday']] = 'Wednesday';
|
||||
weekDays[EALang['be_thursday']] = 'Thursday';
|
||||
weekDays[EALang['be_friday']] = 'Friday';
|
||||
weekDays[EALang['be_saturday']] = 'Saturday';
|
||||
weekDays[EALang['be_sunday']] = 'Sunday';
|
||||
|
||||
$selector.editable(function(value, settings) {
|
||||
return value;
|
||||
}, {
|
||||
'type': 'select',
|
||||
'data': '{ "Monday": "Monday", "Tuesday": "Tuesday", "Wednesday": "Wednesday", '
|
||||
+ '"Thursday": "Thursday", "Friday": "Friday", "Saturday": "Saturday", '
|
||||
+ '"Sunday": "Sunday", "selected": "Monday"}',
|
||||
'data': weekDays,
|
||||
// 'data': '{ "Monday": "Monday", "Tuesday": "Tuesday", "Wednesday": "Wednesday", '
|
||||
// + '"Thursday": "Thursday", "Friday": "Friday", "Saturday": "Saturday", '
|
||||
// + '"Sunday": "Sunday", "selected": "Monday"}',
|
||||
'event': 'edit',
|
||||
'height': '30px',
|
||||
'submit': '<button type="button" class="hidden submit-editable">Submit</button>',
|
||||
|
|
Loading…
Reference in a new issue