<% if (data.messages.length == 1) { var followupflagged = data.messages[0].followupflagged ? data.messages[0].followupflagged : { followupflag: {id: 1} }; if (followupflagged.doneDeadline) followupflagged.doneDeadline = Date.parseExact(followupflagged.doneDeadline, 'yyyy-MM-dd HH:mm:ss'); if (followupflagged.alarmDeadline) followupflagged.alarmDeadline = Date.parseExact(followupflagged.alarmDeadline, 'yyyy-MM-dd HH:mm:ss'); } else if (data.messages.length > 1) { var followupflagged = { followupflag: {name: true, id: 1}, isDone: true, doneDeadline: true, alarmDeadline: true, backgroundColor: true } /** * O campo só fica preenchido se o valor for igual para todas as mensagens */ for(var i=0; i
<%= get_lang("Basic")%>
/>
/>
type="text" name="doneDate" class="date" size="12" value="<%=(followupflagged.doneDeadline) ? followupflagged.doneDeadline.toString('dd/MM/yyyy') : '' %>" /> <%= get_lang('at') %> type="text" name="doneTime" class="time" size="8" value="<%=(followupflagged.doneDeadline) ? followupflagged.doneDeadline.toString('HH:mm') : '' %>" />
<%= get_lang("Flag color")%>
<% var defaultColor = false; var a = ["#00820F", "#E4D000", "#004DD6", "#FF2016", "#F96300"]; if (followupflagged.backgroundColor) { for(var i = 0; i < a.length; i++) { if(a[i] == followupflagged.backgroundColor) { defaultColor = a[i]; break; } } } %>
#00820F #E4D000 #004DD6 #FF2016 #F96300