34,117 → 34,120 |
{ |
%> |
|
<div class="row"> |
<div class="col-md-12 col-sm-12 col-xs-12"> |
<div class="panel panel-primary"> |
<div class="panel-heading"><bean:message key="intranet.todo"/></div> |
<div class="panel-body"> |
|
<div class="panel panel-primary"> |
<div class="panel-heading"><bean:message key="intranet.todo"/></div> |
<div class="panel-body"> |
|
|
|
|
<% |
for (IToDoCat toDoCat : todos) |
{ |
String imgClose; |
String imgOpen; |
String style; |
String img; |
String styleClass; |
// Duarte Santos |
if (toDoCat.getDescription().equals(ModuleEnum.TodoAnnouncements.getMessageKey()) || toDoCat.getDescription().equals(ModuleEnum.Surveys.getMessageKey())) |
{ |
styleClass = "WARNING"; |
img = "/imgs/openedboxNeg.gif"; |
style = ""; |
imgClose = "/imgs/closedboxNeg.gif"; |
imgOpen = "/imgs/openedboxNeg.gif"; |
|
<% |
for (IToDoCat toDoCat : todos) |
{ |
String imgClose; |
String imgOpen; |
String style; |
String img; |
String styleClass; |
// Duarte Santos |
if (toDoCat.getDescription().equals(ModuleEnum.TodoAnnouncements.getMessageKey()) || toDoCat.getDescription().equals(ModuleEnum.Surveys.getMessageKey())) |
{ |
styleClass = "WARNING"; |
img = "/imgs/openedboxNeg.gif"; |
style = ""; |
imgClose = "/imgs/closedboxNeg.gif"; |
imgOpen = "/imgs/openedboxNeg.gif"; |
} |
//Filipe Matos |
else |
if(toDoCat.getDescription().equals(ModuleEnum.TodoAnnouncements.getMessageKey()) || toDoCat.getDescription().equals(ModuleEnum.Assessments.getMessageKey())){ |
|
} |
//Filipe Matos |
else |
if(toDoCat.getDescription().equals(ModuleEnum.TodoAnnouncements.getMessageKey()) || toDoCat.getDescription().equals(ModuleEnum.Assessments.getMessageKey())){ |
styleClass = "WARNING"; |
img = "/imgs/openedboxNeg.gif"; |
style = ""; |
imgClose = "/imgs/closedboxNeg.gif"; |
imgOpen = "/imgs/openedboxNeg.gif"; |
} |
else |
if (toDoCat.getDescription().equals(ModuleEnum.Reminders.getMessageKey()) || toDoCat.getDescription().equals(ModuleEnum.CourseUnits.getMessageKey())) |
{ |
styleClass = ""; |
img = "/imgs/openedbox.gif"; |
style = ""; |
imgClose = "/imgs/closedbox.gif"; |
imgOpen = "/imgs/openedbox.gif"; |
} |
else |
{ |
styleClass = ""; |
img = "/imgs/closedbox.gif"; |
style = Globals.HIDDEN; |
imgClose = "/imgs/closedbox.gif"; |
imgOpen = "/imgs/openedbox.gif"; |
} |
%> |
|
styleClass = "WARNING"; |
img = "/imgs/openedboxNeg.gif"; |
style = ""; |
imgClose = "/imgs/closedboxNeg.gif"; |
imgOpen = "/imgs/openedboxNeg.gif"; |
} |
else |
if (toDoCat.getDescription().equals(ModuleEnum.Reminders.getMessageKey()) || toDoCat.getDescription().equals(ModuleEnum.CourseUnits.getMessageKey())) |
{ |
styleClass = ""; |
img = "/imgs/openedbox.gif"; |
style = ""; |
imgClose = "/imgs/closedbox.gif"; |
imgOpen = "/imgs/openedbox.gif"; |
} |
else |
{ |
styleClass = ""; |
img = "/imgs/closedbox.gif"; |
style = Globals.HIDDEN; |
imgClose = "/imgs/closedbox.gif"; |
imgOpen = "/imgs/openedbox.gif"; |
} |
%> |
<div class="list-group"> |
<div class="list-group-item list-group-item-warning"><%=MessageResources.getMessage(request, toDoCat.getDescription())%> (<%=toDoCat.getTotalToDo()%>)</div> |
|
<div class="list-group"> |
<div class="list-group-item-heading"><%=MessageResources.getMessage(request, toDoCat.getDescription())%> (<%=toDoCat.getTotalToDo()%>) <img alt="abrir" src="<%=request.getContextPath() + img%>" onclick="this.src=showOrHide('<%=toDoCat.getDescription()%>','<%=request.getContextPath() + imgClose%>','<%=request.getContextPath() + imgOpen%>')" ></div> |
</div> |
|
|
|
|
<%--<ul id="<%=toDoCat.getDescription()%>" style="<%=style%>">--%> |
<% |
for (IToDo todo : toDoCat.getAllToDos()) |
{ |
|
if (todo.getUrl() != null) |
{ |
%> |
<div class="list-group-item"> |
<%--<ul id="<%=toDoCat.getDescription()%>" style="<%=style%>">--%> |
<% |
for (IToDo todo : toDoCat.getAllToDos()) |
{ |
|
<a href="<%=request.getContextPath() + todo.getUrl()%>"> |
|
<% |
if(todo.getCatArg0() == null && todo.getCatKey() != null) |
if (todo.getUrl() != null) |
{ |
out.print(MessageResources.getMessage(request,todo.getCatKey()) + ":"); |
} |
else if(todo.getCatArg0() != null && todo.getCatKey() != null) |
{ |
out.print(MessageResources.getMessage(request,todo.getCatKey(),todo.getCatArg0()) + ":"); |
} |
%> |
<div class="list-group-item"> |
|
%> |
<a href="<%=request.getContextPath() + todo.getUrl()%>"> |
|
<% |
if(todo.getCatArg0() == null && todo.getCatKey() != null) |
{ |
out.print(MessageResources.getMessage(request,todo.getCatKey()) + ":"); |
} |
else if(todo.getCatArg0() != null && todo.getCatKey() != null) |
{ |
out.print(MessageResources.getMessage(request,todo.getCatKey(),todo.getCatArg0()) + ":"); |
} |
|
%> |
<%=todo.getLabelInsideCat(request)%> |
<img src="<%=request.getContextPath()%>/imgs/preencher.gif" width="35px"/> |
</a> |
|
</div> |
<% |
} |
else |
{ |
%> |
<div class="list-group-item"> |
<%=todo.getLabelInsideCat(request)%> |
</div> |
<% |
} |
} |
%> |
|
</a> |
|
</div> |
</div> |
|
<% |
} |
else |
{ |
%> |
<div class="list-group-item"> |
<%=todo.getLabelInsideCat(request)%> |
</div> |
<% |
} |
} |
%> |
|
|
</div> |
|
<% |
} |
%> |
|
</div> |
</div> |
</div> |
<% |