Rev 1725 | Rev 1757 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1725 | Rev 1755 | ||
---|---|---|---|
Line 19... | Line 19... | ||
19 | <%@ taglib tagdir="/WEB-INF/tags" prefix="bacoTags" %> |
19 | <%@ taglib tagdir="/WEB-INF/tags" prefix="bacoTags" %> |
20 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> |
20 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> |
21 | <jsp:useBean id="collection" scope="request" type="pt.estgp.estgweb.domain.RepositoryDocumentCollection"/> |
21 | <jsp:useBean id="collection" scope="request" type="pt.estgp.estgweb.domain.RepositoryDocumentCollection"/> |
22 | <jsp:useBean id="interfaceBlock" scope="request" type="pt.estgp.estgweb.services.data.repositorydocuments.interfaces.InterfaceBlock"/> |
22 | <jsp:useBean id="interfaceBlock" scope="request" type="pt.estgp.estgweb.services.data.repositorydocuments.interfaces.InterfaceBlock"/> |
23 | <div class="repository-document-collection"> |
23 | <div class="repository-document-collection"> |
- | 24 | <% |
|
- | 25 | String idChilds = "col_" + collection.hashCode(); |
|
- | 26 | //String toogleAttrs = interfaceBlock.isBrowseMinimizeMaximize() ? " data-toggle=\"collapse\" data-target=\"#" + idChilds + "\" " :""; |
|
- | 27 | //String styleCol = interfaceBlock.isBrowseMinimizeMaximize() ? " style=\"cursor:hand; text-decoration:underline\" " :""; |
|
- | 28 | ||
- | 29 | String toogleAttrs = " data-toggle=\"collapse\" data-target=\"#" + idChilds + "\" " ; |
|
- | 30 | String styleCol = " style=\"cursor:hand; text-decoration:underline\" "; |
|
- | 31 | String folderIcon = interfaceBlock.isBrowseMinimizeMaximize() ? " glyphicon-plus " : " glyphicon-minus "; |
|
- | 32 | %> |
|
24 | <div class="repository-title"> |
33 | <div style="cursor: hand" class="repository-title" <%=toogleAttrs%>> |
25 | 34 | ||
26 | <span class="btn-xs glyphicon glyphicon-folder-open" style="margin-right: 5px"></span> |
35 | <span class="btn-xs glyphicon <%=folderIcon%>" style="margin-right: 5px"></span> |
27 | ${collection.name} |
36 | <label <%=styleCol%> >${collection.name}</label> |
28 | <baco:hasRole role="admin,all,repositoryDocs"> |
37 | <baco:hasRole role="admin,all,repositoryDocs"> |
29 | <html:link styleClass="btn btn-xs btn-success pull-right" action="/user/repositoryEditDocument?repositoryCollectionId=${collection.id}" target="_blank"> |
38 | <html:link styleClass="btn btn-xs btn-success pull-right" action="/user/repositoryEditDocument?repositoryCollectionId=${collection.id}" target="_blank"> |
30 | <span class="glyphicon glyphicon-plus"></span> |
39 | <span class="glyphicon glyphicon-plus"></span> |
31 | </html:link> |
40 | </html:link> |
32 | </baco:hasRole> |
41 | </baco:hasRole> |
33 | </div> |
42 | </div> |
34 | <div class="repository-document-collection-childs"> |
43 | <div id="<%=idChilds%>" <%=interfaceBlock.isBrowseMinimizeMaximize() ? " class=\"repository-document-collection-childs collapse\"" :" class=\"repository-document-collection-childs collapse in \" "%>> |
35 | <% |
44 | <% |
36 | 45 | ||
37 | Criteria c = AbstractDao.getCurrentSession().createCriteria(RepositoryDocument.class); |
46 | Criteria c = AbstractDao.getCurrentSession().createCriteria(RepositoryDocument.class); |
38 | 47 | ||
39 | c.add(eq("collection.id",collection.getId())); |
48 | c.add(eq("collection.id",collection.getId())); |
Line 73... | Line 82... | ||
73 | <% |
82 | <% |
74 | } |
83 | } |
75 | 84 | ||
76 | //SUBCOLECOES |
85 | //SUBCOLECOES |
77 | 86 | ||
78 | if(collection.getChilds() != null && collection.getChilds().size()>0) |
87 | if(collection.getChilds() != null && collection.getChilds().size() > 0) |
79 | { |
88 | { |
80 | for(RepositoryDocumentCollection child: collection.getChilds()) |
89 | for(RepositoryDocumentCollection child: collection.getChilds()) |
81 | { |
90 | { |
82 | if(!child.isVisible()) |
91 | if(!child.isVisible()) |
83 | continue; |
92 | continue; |
84 | request.setAttribute("collection",child); |
93 | request.setAttribute("collection",child); |
85 | %> |
94 | %> |
86 | <jsp:include page="showInterfaceColFragment.jsp"/> |
95 | <jsp:include page="showInterfaceColFragment.jsp"/> |
87 | <% |
96 | <% |
88 | } |
97 | } |
89 | } |
98 | } |
90 | 99 |