Skip to content
Snippets Groups Projects
Commit 963116ab authored by Carlos Vega's avatar Carlos Vega
Browse files

added link to edit subject appointment from the daily planning board

parent 56aa5522
No related branches found
No related tags found
1 merge request!171Feature/daily availability
...@@ -124,8 +124,10 @@ function get_subjects_events(day) { ...@@ -124,8 +124,10 @@ function get_subjects_events(day) {
var boxSubject = $("<div class='box box-primary'/>").css('border-top-color', subject.color); var boxSubject = $("<div class='box box-primary'/>").css('border-top-color', subject.color);
var boxBody = $("<div class='box-body' id='subject_" + subject.id + "'>"); var boxBody = $("<div class='box-body' id='subject_" + subject.id + "'>");
var boxHeader = $("<div class='box-header with-border'/>"); var boxHeader = $("<div class='box-header with-border'/>");
var title_subject = $("<h4>" + subject.name + "( " + subject.start + ") <span style='float:right;padding-right:5px;'>" + subject.location + "</span></h4>");
var title_subject = $(`<h4>${subject.name} (${subject.start}) <span style='float:right;padding-right:5px;'>${subject.location}</span> <span style='float:left;padding-right:5px;'><a title="Edit appointment" target="_blank" href="/appointments/edit/${subject.appointment_id}"><i class="fa fa-pencil-square"></i></a></span></h4>`);
boxHeader.append(title_subject); boxHeader.append(title_subject);
title_subject.find('a[title]').tooltip();
$.each(subject.events, function (index_event, event) { $.each(subject.events, function (index_event, event) {
if (event.link_when) { if (event.link_when) {
event.title = event.short_title; event.title = event.short_title;
......
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