affichage utilisateur sur calendrier
This commit is contained in:
@@ -21,17 +21,17 @@
|
||||
|
||||
.fc-title {
|
||||
font-weight: bolder;
|
||||
font-size: 14px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.eventAvatar {
|
||||
width: 40px;
|
||||
width: 20px;
|
||||
margin: 0px 5px 0px 0px;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.eventInfo{
|
||||
margin: -18px 5px 0px 0px;
|
||||
margin: -5px 5px 0px 0px;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
@@ -215,12 +215,15 @@ $(document).ready(function() {
|
||||
|
||||
// Rendu d'un évenement
|
||||
function eventRender(info) {
|
||||
console.log(info.event.extendedProps);
|
||||
// Récupération des divers élements du rendu event
|
||||
var content=$(info.el).children('.fc-content');
|
||||
var title=$(content).children('.fc-title');
|
||||
|
||||
// Ajouter l'avatar
|
||||
content.prepend("<img src="+info.event.extendedProps.avatar+" class='eventAvatar'>");
|
||||
content.append("<span class='eventUser float-left small'>"+info.event.extendedProps.username+"</span>");
|
||||
var eventInfo=$(content).children('.eventUser');
|
||||
|
||||
// Ajout container
|
||||
content.append("<span class='eventInfo float-right'></span>");
|
||||
@@ -232,7 +235,7 @@ function eventRender(info) {
|
||||
}
|
||||
|
||||
// Ajout estimation
|
||||
eventInfo.append("<span class='eventEstimate float-right'>"+info.event.extendedProps.estimate+"</span>");
|
||||
eventInfo.append("<span class='eventEstimate float-right small'>"+info.event.extendedProps.estimate+"</span>");
|
||||
|
||||
// Description
|
||||
content.attr("title",info.event.extendedProps.fulldescription);
|
||||
|
Reference in New Issue
Block a user