4 UI.prototype.getAvailableTimeTemplate = function getAvailableTimeTemplate(obj) {
5 return '<li>' + '<div class="timeRangeLabel">Start: ' + obj.start
6 + ' (Duration: ' + obj.duration + 'h) ' + obj.style + '</div>'
7 + '<div class="timeRangeButtons">'
8 + '<div data-role="button" data-inline="true" data-name="edit" data-val="' + obj.nr + '">Edit</div>'
9 + '<div data-role="button" class="enableStatusButton" data-inline="true" data-name="disable" data-val="' + obj.nr + '">'
10 + ((obj.enabled) ? 'Dis' : 'En') + 'able</div>'
11 + '<div data-role="button" data-inline="true" data-name="delete" data-val="' + obj.nr + '">Delete</div>'
12 + '<div class="activeStatus' + ((obj.enabled) ? '' : ' activeStatusDisable') + '" data-inline="true">' + ((obj.enabled) ? 'En' : 'Dis') + 'abled</div>'
16 UI.prototype.getExercisesTemplate = function (obj, i) {
18 + '<span>' + obj.name + '</span>'
19 + '<select data-role="slider" data-index="' + i + '">'
20 + '<option value="off" ' + (obj.enabled ? '' : 'selected="selected"') + '></option>'
21 + '<option value="on" ' + (obj.enabled ? 'selected="selected"' : '') + '></option>'
22 + '</select>' + '</li>';