Skip to content
Snippets Groups Projects
Commit dd4c5fc0 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

daily planning contains info about start of the appointment

parent 02883076
No related branches found
No related tags found
1 merge request!73daily planning contains info about start of the appointment
Pipeline #
......@@ -191,6 +191,7 @@ def events(request, date):
'name': unicode(appointment_subject),
'id': appointment_subject.id,
'color': RANDOM_COLORS[i],
'start':appointment.datetime_when.replace(tzinfo=None).strftime("%H:%M:00"),
'events': []
}
subjects[appointment_subject.id] = subject
......
......@@ -110,7 +110,7 @@ function get_subjects_events(day) {
var boxSubject = $("<div class='box box-primary'/>").css('border-top-color', subject.color);
var boxBody = $("<div class='box-body' id='subject_" + subject.id + "'>");
var boxHeader = $("<div class='box-header with-border'/>");
var title_subject = $("<h4>" + subject.name + "</h4>");
var title_subject = $("<h4>" + subject.name + "( " + subject.start + ")" + "</h4>");
boxHeader.append(title_subject);
$.each(subject.events, function (index_event, event) {
if (event.link_when) {
......@@ -188,7 +188,7 @@ $(document).ready(function () {
var saveButton = $(".fc-save-button");
var currentBorder = saveButton.css('border-color');
$.each(calendarEvents, function (i, calendar_event) {
if (calendar_event.rendering!=="background") {
if (calendar_event.rendering !== "background") {
eventsToPersist.push({
'link_id': calendar_event.link_id,
'link_who': parseInt(calendar_event.resourceId),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment