Fix embedded view.
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
<c:param name="mapId" value="${mindmap.id}"/>
|
||||
</c:url>
|
||||
<h1>
|
||||
<spring:message code="COLLABORATION"/>:<spring:message code="SHARING"/>
|
||||
<spring:message code="COLLABORATION"/>:<spring:message code="SHARING"/>
|
||||
'${mindmap.title}'</h1>
|
||||
|
||||
<div id="addCollaboratorPanel">
|
||||
@@ -40,7 +40,8 @@
|
||||
<spring:message code="INVITATION"/>
|
||||
</h2>
|
||||
<span><spring:message code="SUBJECT"/>: </span><input name="subject" type="text"
|
||||
value="${principal.firstname} <spring:message code="SUBJECT_MESSAGE"/>" style="width:80%;">
|
||||
value="${principal.firstname} <spring:message code="SUBJECT_MESSAGE"/>"
|
||||
style="width:80%;">
|
||||
<br>
|
||||
<span><spring:message code="MESSAGE"/>:</span>
|
||||
|
||||
@@ -52,8 +53,7 @@
|
||||
|
||||
<br/>
|
||||
<input id="invitationButton" type="submit" value="Invite Collaborators" class="btn-primary">
|
||||
<input type="button" value="<spring:message code="CANCEL"/>" onclick="MOOdalBox.close();"
|
||||
class="btn-secondary"/>
|
||||
<input type="button" value="<spring:message code="CANCEL"/>" class="btn-secondary" id="cancelBtn"/>
|
||||
</div>
|
||||
|
||||
<div id="currentUsers">
|
||||
@@ -61,34 +61,40 @@
|
||||
<spring:message code="CURRENT_COLLABORATORS"/> (${mindmap.countColaborators})
|
||||
</h2>
|
||||
<table>
|
||||
<colgroup><col width="95%"/></colgroup>
|
||||
<c:forEach items="${mindmap.collaborators}" var="mindmapCollaborator">
|
||||
<tr>
|
||||
<td>
|
||||
${mindmapCollaborator.username}
|
||||
</td>
|
||||
<td>
|
||||
<a href="${removeCollaborator}&colaboratorId=${mindmapCollaborator.id}"><img src="../images/close12_1.gif" alt="<spring:message code="DELETE"/>" border="0"/></a>
|
||||
</td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
<colgroup>
|
||||
<col width="95%"/>
|
||||
</colgroup>
|
||||
<c:forEach items="${mindmap.collaborators}" var="mindmapCollaborator">
|
||||
<tr>
|
||||
<td>
|
||||
${mindmapCollaborator.username}
|
||||
</td>
|
||||
<td>
|
||||
<a href="${removeCollaborator}&colaboratorId=${mindmapCollaborator.id}"><img
|
||||
src="../images/close12_1.gif" alt="<spring:message code="DELETE"/>" border="0"/></a>
|
||||
</td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
</table>
|
||||
|
||||
<h2>
|
||||
<spring:message code="CURRENT_VIEWERS"/> (${mindmap.countViewers})
|
||||
</h2>
|
||||
<table>
|
||||
<colgroup><col width="95%"/></colgroup>
|
||||
<c:forEach items="${mindmap.viewers}" var="mindmapViewer">
|
||||
<tr>
|
||||
<td>
|
||||
${mindmapViewer.username}
|
||||
</td>
|
||||
<td>
|
||||
<a href="${removeCollaborator}&colaboratorId=${mindmapViewer.id}"><img src="../images/close12_1.gif" alt="<spring:message code="DELETE"/>" border="0"/></a>
|
||||
</td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
<colgroup>
|
||||
<col width="95%"/>
|
||||
</colgroup>
|
||||
<c:forEach items="${mindmap.viewers}" var="mindmapViewer">
|
||||
<tr>
|
||||
<td>
|
||||
${mindmapViewer.username}
|
||||
</td>
|
||||
<td>
|
||||
<a href="${removeCollaborator}&colaboratorId=${mindmapViewer.id}"><img
|
||||
src="../images/close12_1.gif" alt="<spring:message code="DELETE"/>" border="0"/></a>
|
||||
</td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
</table>
|
||||
</div>
|
||||
<input type="hidden" name="actionId" value="addCollaborator"/>
|
||||
@@ -98,6 +104,10 @@
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
$('cancelBtn').addEvent('click', function(event) {
|
||||
MooDialog.Request.active.close();
|
||||
});
|
||||
|
||||
function toogleUserType(buttonValue) {
|
||||
var collaboratorButton = $("collaboratorButton");
|
||||
var viewerButton = $("viewerButton");
|
||||
@@ -127,4 +137,5 @@
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
</script>
|
Reference in New Issue
Block a user