Hi guys,
So I have a custom editor template which looks like this:
And my schema looks like this:
But the only fields which get written out (from my template) when I click 'save' on a new appointment are 'start' and 'end'.
Any idea why?
Cheers, Paul.
So I have a custom editor template which looks like this:
<script id="editor" type="text/x-kendo-template"> <div > <h3>Create appointment</h3> <p> <label>Notes: <textarea name="notes"></textarea></label> </p> <p> <label>Employee: <select ng-controller="Employees" name="employee_uid" class="form-control" required> <option ng-selected="{{e.uid == @Model.m_sesson.m_staffGuid}}" value="{{e.uid}}" ng-repeat="e in employees" >{{e.first_name}} {{e.last_name}}</option> </select> </label> <p> <label>Client: <select ng-controller="Clients" name="client_uid" class="form-control" required> <option value="{{c.uid}}" ng-repeat="c in clients" >{{c.first_name}} {{c.last_name}}</option> </select> </label> </p> <p> <label>Start: <input data-role="datetimepicker" name="start" /></label> </p> <p> <label>End: <input data-role="datetimepicker" name="end" /></label> </p> </div></script>And my schema looks like this:
schema: { model: { id: "taskId", // The "id" of the event is the "taskId" field fields: { // Describe the scheduler event fields and map them to the fields returned by the remote service taskId: { from: "uid", // The 'TaskID' server-side field is mapped to the 'taskId' client-side field type: "number" }, client_uid: { type: "number" }, employee_uid: { type: "number" }, notes: { type: "text"}, start: { type: "date" }, end: { type: "date" }, title: { from: "notes", defaultValue: "No title", validation: { required: true } }, description: { from: "Description", defaultValue: "No description" }, recurrenceId: { from: "RecurrenceID", defaultValue: null }, recurrenceRule: { from: "RecurrenceRule", defaultValue: null }, recurrenceException: { from: "RecurrenceException", defaultValue: null }, isAllDay: { type: "boolean", from: "IsAllDay", defaultValue: false } } } }But the only fields which get written out (from my template) when I click 'save' on a new appointment are 'start' and 'end'.
Any idea why?
Cheers, Paul.