latest updates
[namibia] / public / templates / page / appointmentedit.js
1 var template_appointmentedit = function( static )
2 {
3
4     this.static = static;
5     this.elements = {
6
7
8         firstName : new App.TemplateElement.FieldComponent('firstName'),
9         familyName : new App.TemplateElement.FieldComponent('familyName'),
10         idNumber : new App.TemplateElement.FieldComponent('idNumber'),
11         mobile : new App.TemplateElement.FieldComponent('mobile'),
12         email : new App.TemplateElement.FieldComponent('email'),
13
14         requiredPrice : new App.TemplateElement.FieldComponent('requiredPrice'),
15
16         customerAddressStreet : new App.TemplateElement.FieldComponent('customerAddressStreet'),
17         customerAddressStreetName : new App.TemplateElement.FieldComponent('customerAddressStreetName'),
18         customerAddressSuburb : new App.TemplateElement.FieldComponent('customerAddressSuburb'),
19         customerAddressCity : new App.TemplateElement.FieldComponent('customerAddressCity'),
20         customerAddressPostalCode : new App.TemplateElement.FieldComponent('customerAddressPostalCode'),
21
22         appointmentDate : new App.TemplateElement.FieldComponent('appointmentDate'),
23         appointmentCompleted : new App.TemplateElement.FieldComponent('appointmentCompleted'),
24         appointmentCancelled : new App.TemplateElement.FieldComponent('appointmentCancelled'),
25         appointmentDateCancelled : new App.TemplateElement.FieldComponent('appointmentDateCancelled'),
26         appointmentCancelledComments : new App.TemplateElement.FieldComponent('appointmentCancelledComments'),
27         timeSlot : new App.TemplateElement.FieldComponent('timeSlot')
28
29
30
31
32     };
33     this.construct = function()
34     {
35
36         /*var isMobile = window.matchMedia("only screen and (max-width: 760px)");
37          // do a check for mobile file uploads...
38          if (!isMobile.matches)
39          {
40          alert('Your Phone does not support image uploads .');
41          }*/
42
43         $('#PublicMenu').show();
44         $('#PublicMenu li.select_page').removeClass('select_page');
45         $('#PublicMenu a[href="#/appointmentedit"]').parent().addClass('select_page');
46         $('#terms').parent().addClass("acceptTerms");
47
48         $('#frmModal').modal('hide');
49         //$('#modalFormContent').html('Loading...');
50
51     };
52     this.destruct = function() {};
53 };