You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by sm...@apache.org on 2007/10/12 02:50:44 UTC
svn commit: r584013 -
/portals/jetspeed-2/branches/JETSPEED-2.1.3/applications/j2-admin/src/webapp/WEB-INF/security/permissions/view.vm
Author: smilek
Date: Thu Oct 11 17:50:42 2007
New Revision: 584013
URL: http://svn.apache.org/viewvc?rev=584013&view=rev
Log:
attempting to get portlet content to be resizable in desktop
Modified:
portals/jetspeed-2/branches/JETSPEED-2.1.3/applications/j2-admin/src/webapp/WEB-INF/security/permissions/view.vm
Modified: portals/jetspeed-2/branches/JETSPEED-2.1.3/applications/j2-admin/src/webapp/WEB-INF/security/permissions/view.vm
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/branches/JETSPEED-2.1.3/applications/j2-admin/src/webapp/WEB-INF/security/permissions/view.vm?rev=584013&r1=584012&r2=584013&view=diff
==============================================================================
--- portals/jetspeed-2/branches/JETSPEED-2.1.3/applications/j2-admin/src/webapp/WEB-INF/security/permissions/view.vm (original)
+++ portals/jetspeed-2/branches/JETSPEED-2.1.3/applications/j2-admin/src/webapp/WEB-INF/security/permissions/view.vm Thu Oct 11 17:50:42 2007
@@ -38,162 +38,160 @@
dojo.lang.shallowCopy(this.portlets) ;
-->
-<div dojoType="LayoutContainer"
- layoutChildPriority="left-right"
- style="width: 100%">
-
- <div id="mainTabContainer" dojoType="TabContainer" selectedChild="portlets" doLayout="false">
-
- <div id="portlets" dojoType="ContentPane" label="Portlets">
- <div class="tableContainer">
-
- <table dojoType="jetspeed:EditorTable" widgetId="portletsTable" class="permissions" headClass="fixedHeader" tbodyClass="scrollContent" enableMultipleSelect="true" enableAlternateRows="true" rowAlternateClass="alternateRow" templateCssPath="/j2-admin/css/security-permissions.css" cellpadding="0" cellspacing="0" border="0">
- <col width="45%"></col>
- <col width="15%"></col>
- <col width="35%"></col>
- <thead>
- <tr>
- <th field="name" dataType="String">Resource</th>
- <th field="actions" dataType="String">Actions</th>
- <th field="roles" dataType="String">Roles</th>
- </tr>
- </thead>
- <tbody>
- </tbody>
- </table>
+<div dojoType="LayoutContainer" widgetId="permsRootLContainer" class="permsRootLContainer"
+ layoutChildPriority="left-right">
- </div>
- </div>
-
- <div id="folders" dojoType="ContentPane" label="Folders">
- <div class="tableContainer">
+ <div dojoType="LayoutContainer" widgetId="permsTabLContainer" class="permsTabLContainer" layoutAlign="top" layoutChildPriority="none">
- <table dojoType="jetspeed:EditorTable" widgetId="foldersTable" class="permissions" headClass="fixedHeader" tbodyClass="scrollContent" enableMultipleSelect="true" enableAlternateRows="true" rowAlternateClass="alternateRow" templateCssPath="/j2-admin/css/security-permissions.css" cellpadding="0" cellspacing="0" border="0">
- <col width="45%"></col>
- <col width="15%"></col>
- <col width="35%"></col>
- <thead>
- <tr>
- <th field="name" dataType="String">Resource</th>
- <th field="actions" dataType="String">Actions</th>
- <th field="roles" dataType="String">Roles</th>
- </tr>
- </thead>
- <tbody>
- </tbody>
- </table>
-
- </div>
- </div>
+ <div id="permsTabContainer" dojoType="TabContainer" selectedChild="portlets" doLayout="false">
- <div id="pages" dojoType="ContentPane" label="Pages">
- <div class="tableContainer">
+ <div id="portlets" dojoType="ContentPane" label="Portlets">
+ <div class="tableContainer">
+
+ <table dojoType="jetspeed:EditorTable" widgetId="portletsTable" class="permissions" headClass="fixedHeader" tbodyClass="scrollContent" enableMultipleSelect="true" enableAlternateRows="true" rowAlternateClass="alternateRow" templateCssPath="/j2-admin/css/security-permissions.css" cellpadding="0" cellspacing="0" border="0">
+ <col width="45%"></col>
+ <col width="15%"></col>
+ <col width="35%"></col>
+ <thead>
+ <tr>
+ <th field="name" dataType="String">Resource</th>
+ <th field="actions" dataType="String">Actions</th>
+ <th field="roles" dataType="String">Roles</th>
+ </tr>
+ </thead>
+ <tbody>
+ </tbody>
+ </table>
+
+ </div>
+ </div>
+
+ <div id="folders" dojoType="ContentPane" label="Folders">
+ <div class="tableContainer">
+
+ <table dojoType="jetspeed:EditorTable" widgetId="foldersTable" class="permissions" headClass="fixedHeader" tbodyClass="scrollContent" enableMultipleSelect="true" enableAlternateRows="true" rowAlternateClass="alternateRow" templateCssPath="/j2-admin/css/security-permissions.css" cellpadding="0" cellspacing="0" border="0">
+ <col width="45%"></col>
+ <col width="15%"></col>
+ <col width="35%"></col>
+ <thead>
+ <tr>
+ <th field="name" dataType="String">Resource</th>
+ <th field="actions" dataType="String">Actions</th>
+ <th field="roles" dataType="String">Roles</th>
+ </tr>
+ </thead>
+ <tbody>
+ </tbody>
+ </table>
+
+ </div>
+ </div>
+
+ <div id="pages" dojoType="ContentPane" label="Pages">
+ <div class="tableContainer">
+
+ <table dojoType="jetspeed:EditorTable" widgetId="pagesTable" class="permissions" headClass="fixedHeader" tbodyClass="scrollContent" enableMultipleSelect="true" enableAlternateRows="true" rowAlternateClass="alternateRow" templateCssPath="/j2-admin/css/security-permissions.css" cellpadding="0" cellspacing="0" border="0">
+ <col width="45%"></col>
+ <col width="15%"></col>
+ <col width="35%"></col>
+ <thead>
+ <tr>
+ <th field="name" dataType="String">Resource</th>
+ <th field="actions" dataType="String">Actions</th>
+ <th field="roles" dataType="String">Roles</th>
+ </tr>
+ </thead>
+ <tbody>
+ </tbody>
+ </table>
- <table dojoType="jetspeed:EditorTable" widgetId="pagesTable" class="permissions" headClass="fixedHeader" tbodyClass="scrollContent" enableMultipleSelect="true" enableAlternateRows="true" rowAlternateClass="alternateRow" templateCssPath="/j2-admin/css/security-permissions.css" cellpadding="0" cellspacing="0" border="0">
- <col width="45%"></col>
- <col width="15%"></col>
- <col width="35%"></col>
- <thead>
- <tr>
- <th field="name" dataType="String">Resource</th>
- <th field="actions" dataType="String">Actions</th>
- <th field="roles" dataType="String">Roles</th>
- </tr>
- </thead>
- <tbody>
- </tbody>
- </table>
-
- </div>
+ </div>
+ </div>
+ </div>
</div>
- </div>
- <div dojoType="LayoutContainer" layoutChildPriority='none' style="width: 100%; height: 200px; border: 1px solid grey;">
+ <div dojoType="LayoutContainer" widgetId="editorLContainer" class="editorLContainer" layoutAlign="client" layoutChildPriority="top-bottom">
- <div dojoType="LayoutContainer" widgetId="editorTop" minHeight="20" layoutAlign="top" style="padding: 4px; border-bottom: thin inset grey; width: 100%; height: 55px">
+ <div dojoType="LayoutContainer" widgetId="editorLTop" class="editorLTop" layoutAlign="top">
- <div dojoType="LayoutContainer"
- widgetId="resourceNameContainer"
- minHeight="20"
- layoutAlign="left"
- style="padding: 4px; border-right: thin inset grey; width: 70%; height: 55px">
- <b>Resource</b><br/>
- <input name="resourceName" id="resourceName" type="text" size="50" onChange="updateSelectedRow()">
- </div>
-
- <div dojoType="LayoutContainer"
- widgetId="editorControls"
- minHeight="20"
- layoutAlign="right"
- style="width: 20%; height: 55px">
- <div class="buttonbox">
-
- <button widgetId="newButton" dojoType="Button" onclick="newEntry()">
- New
- </button>
-
- <button widgetId="saveButton" dojoType="Button" onclick="saveEntry()">
- Save
- </button>
-
- <button widgetId="revertButton" dojoType="Button" onclick="revertEntry()">
- Revert
- </button>
-
- <button widgetId="deleteButton" dojoType="Button" onclick="deleteEntry()">
- Delete
- </button>
+ <div dojoType="ContentPane"
+ widgetId="resourceNameLContainer"
+ class="resourceNameLContainer"
+ layoutAlign="left">
+ <b>Resource</b><br/>
+ <input name="resourceName" id="resourceName" type="text" size="45" onChange="updateSelectedRow()">
+ </div>
+
+ <div dojoType="ContentPane"
+ widgetId="editorControls"
+ class="editorControlsLContainer buttonbox"
+ layoutAlign="client">
+
+ <button widgetId="deleteButton" dojoType="Button" onclick="deleteEntry()">
+ Delete
+ </button>
+
+ <button widgetId="revertButton" dojoType="Button" onclick="revertEntry()">
+ Revert
+ </button>
+
+ <button widgetId="saveButton" dojoType="Button" onclick="saveEntry()">
+ Save
+ </button>
+
+ <button widgetId="newButton" dojoType="Button" onclick="newEntry()">
+ New
+ </button>
+ </div>
</div>
- </div>
-
- </div>
- <div dojoType="LayoutContainer"
- widgetId="rolesContainer"
- minHeight="20"
- layoutAlign="left"
- style="padding: 4px; border-right: thin inset grey; width: 50%; height: 100px; overflow-y: auto; overflow-x: hidden">
+ <div dojoType="LayoutContainer" widgetId="editorLBottom" class="editorLBottom" layoutAlign="client">
- <b>Roles</b><br />
-#foreach ($role in $roles)
- <input type="checkbox" name="role_$velocityCount" id="role_$velocityCount" dojoType="Checkbox" /> <label for="role_$velocityCount">$role.Principal.Name</label><br />
-#end
+ <div dojoType="ContentPane"
+ widgetId="actionsContainer"
+ class="actionsLContainer"
+ layoutAlign="right">
+ <b>Actions</b><br/>
+ <input type="checkbox" name="actionview" id="actionview" dojoType="Checkbox" /> <label for="actionview">View</label><br />
+ <input type="checkbox" name="actionedit" id="actionedit" dojoType="Checkbox" /> <label for="actionedit">Edit</label><br />
+ <input type="checkbox" name="actionhelp" id="actionhelp" dojoType="Checkbox" /> <label for="actionhelp">Help</label><br />
+ </div>
+
+ <div dojoType="ContentPane"
+ widgetId="rolesContainer"
+ class="rolesLContainer"
+ layoutAlign="client">
+
+ <b>Roles</b><br />
+ #foreach ($role in $roles)
+ <input type="checkbox" name="role_$velocityCount" id="role_$velocityCount" dojoType="Checkbox" /> <label for="role_$velocityCount">$role.Principal.Name</label><br />
+ #end
- </div>
+ </div>
- <div dojoType="LayoutContainer"
- widgetId="actionsContainer"
- minHeight="20"
- layoutAlign="left"
- style="padding: 4px; width: 50%; height: 100px; overflow-y: auto; overflow-x: hidden" >
- <b>Actions</b><br/>
- <input type="checkbox" name="actionview" id="actionview" dojoType="Checkbox" /> <label for="actionview">View</label><br />
- <input type="checkbox" name="actionedit" id="actionedit" dojoType="Checkbox" /> <label for="actionedit">Edit</label><br />
- <input type="checkbox" name="actionhelp" id="actionhelp" dojoType="Checkbox" /> <label for="actionhelp">Help</label><br />
- </div>
- </div>
+ </div>
- <div dojoType="dialog" id="SaveWarningDialog" bgColor="grey" bgOpacity="0.5" toggle="fade" toggleDuration="250">
- <form onsubmit="return false;">
- <table>
- <tr>
- <td>Please Save or Revert changes to the selected permissions record before proceeding.</td><td> </td>
- </tr>
- <tr>
- <td colspan="2" align="right" class="buttonboxright">
- <button dojoType="Button" onClick="dojo.widget.byId( 'SaveWarningDialog' ).hide();" >Cancel</button>
- <button dojoType="Button" onClick="dojo.widget.byId( 'SaveWarningDialog' ).hide(); revertEntry();">Revert</button>
- <button dojoType="Button" onClick="dojo.widget.byId( 'SaveWarningDialog' ).hide(); saveEntry();">Save</button>
- </td>
- </tr>
- </table>
- </form>
- </div>
+ <div dojoType="dialog" id="SaveWarningDialog" bgColor="grey" bgOpacity="0.5" toggle="fade" toggleDuration="250">
+ <form onsubmit="return false;">
+ <table>
+ <tr>
+ <td>Please Save or Revert changes to the selected permissions record before proceeding.</td><td> </td>
+ </tr>
+ <tr>
+ <td colspan="2" align="right" class="buttonboxright">
+ <button dojoType="Button" onClick="dojo.widget.byId( 'SaveWarningDialog' ).hide();" >Cancel</button>
+ <button dojoType="Button" onClick="dojo.widget.byId( 'SaveWarningDialog' ).hide(); revertEntry();">Revert</button>
+ <button dojoType="Button" onClick="dojo.widget.byId( 'SaveWarningDialog' ).hide(); saveEntry();">Save</button>
+ </td>
+ </tr>
+ </table>
+ </form>
+ </div>
-</div>
+ </div>
<script language="JavaScript" type="text/javascript">
rolePrincipals = new Array();
@@ -333,7 +331,7 @@
function getTableWidget( containedInTab )
{
if ( ! containedInTab )
- containedInTab = dojo.widget.byId( "mainTabContainer" ).selectedChildWidget;
+ containedInTab = dojo.widget.byId( "permsTabContainer" ).selectedChildWidget;
return dojo.widget.byId( containedInTab.widgetId + "Table" );
}
function checkForChanges()
@@ -563,7 +561,7 @@
function addListeners()
{
- var tabContainer = dojo.widget.byId("mainTabContainer");
+ var tabContainer = dojo.widget.byId("permsTabContainer");
dojo.event.connect("around", tabContainer, "selectChild", function(invocation) {
if ( checkForChanges() )
{
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org