1 var template_appointmentedit = function( static )
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'),
14 requiredPrice : new App.TemplateElement.FieldComponent('requiredPrice'),
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'),
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')
33 this.construct = function()
36 /*var isMobile = window.matchMedia("only screen and (max-width: 760px)");
37 // do a check for mobile file uploads...
38 if (!isMobile.matches)
40 alert('Your Phone does not support image uploads .');
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");
48 $('#frmModal').modal('hide');
49 //$('#modalFormContent').html('Loading...');
52 this.destruct = function() {};