Mercurial > hg > LGServices
diff src/main/webapp/pages/topicPage.jsp @ 44:89d1076df1c3
minor bug fixed
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Mon, 28 Dec 2015 11:48:38 +0100 |
parents | 9dbbbfd474f4 |
children | a00efd5d9e77 |
line wrap: on
line diff
--- a/src/main/webapp/pages/topicPage.jsp Wed Dec 23 16:03:32 2015 +0100 +++ b/src/main/webapp/pages/topicPage.jsp Mon Dec 28 11:48:38 2015 +0100 @@ -163,23 +163,18 @@ <table> <tr> <td> - <form name="contributorForm" - action="<%=sessionBean.getApplicationBean().getRootServer()%>/proxy.jsp" - method="post"> - <input name="bean" type="hidden" value="topicBean" /> - <table style="width: 300px;" class="pageTable"> - <% for(VDCUser contr : sessionBean.getTopicPage().getContributors()) { %> - <tr> - <td><label><%=contr.getUserName() %></label></td> - <td> - <input type="image" - onclick="<%=sessionBean.getApplicationBean().getJSConfirmationDelete() %> setAction0('removeContributor', 'contributorForm', 'userId', <%=contr.getId() %>);" - src="<%=sessionBean.getApplicationBean().getDeleteImage()%>"/> - </td> - </tr> - <% } %> - </table> - </form> + <table style="width: 300px;" class="pageTable"> + <% for(VDCUser contr : sessionBean.getTopicPage().getContributors()) { %> + <tr> + <td><label><%=contr.getUserName() %></label></td> + <td> + <input type="image" + onclick="<%=sessionBean.getApplicationBean().getJSConfirmationDelete() %> setAction0('removeContributor', 'topicForm', 'userId', <%=contr.getId() %>);" + src="<%=sessionBean.getApplicationBean().getDeleteImage()%>"/> + </td> + </tr> + <% } %> + </table> </td> <td> <button id="addContributors" type="button" class="lgButton">Add Contributors</button> @@ -249,12 +244,14 @@ </div> </div> - <label class="subTitel"> <%=sessionBean.getTopicPage().getCompleteSectionList().size()%> section(s) in the topic + <label class="subTitel"> <%=sessionBean.getTopicPage().getCompleteSectionList().size() %> section(s) in the topic <input type="image" onclick="setAction('forceLoadTopicSectionRelation', 'topicSectionRelationForm');" src="<%=sessionBean.getApplicationBean().getRefreshImage()%>" width="20" height="20"/> </label> + <label class="label"><%= (StringUtils.isNotEmpty(sessionBean.getTopicPage().getFilteringMessage())) ? sessionBean.getTopicPage().getFilteringMessage() : ""%></label> + <!-- Sections in Topic --> <% if(sessionBean.getTopicPage().getCompleteSectionList().isEmpty()) { %> <label>(No section in the topic...)</label> @@ -544,7 +541,7 @@ <th><label class="tableTitle">Remove</label></th> </tr> - <% for(DBSection section : sessionBean.getTopicPage().getCompleteSectionList() ) { %> + <% for(DBSection section : sessionBean.getTopicPage().getDisplaySectionList() ) { %> <tr> <td> <a href="<%=sessionBean.getApplicationBean().getTocInterfaceUrl()%>/check_sections_details.php?book_id=<%=section.getBook().getId() %>&count=100&sessionId=<%= session.getId()%>" target="blank">