portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject svn commit: r474669 - /portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/security/permissions/view.vm
Date Tue, 14 Nov 2006 05:26:16 GMT
Author: taylor
Date: Mon Nov 13 21:26:14 2006
New Revision: 474669

URL: http://svn.apache.org/viewvc?view=rev&rev=474669
Log:
http://issues.apache.org/jira/browse/JS2-608
HTML editing/formatting 
patch from Philip Mark Donaghy

Modified:
    portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/security/permissions/view.vm

Modified: portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/security/permissions/view.vm
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/security/permissions/view.vm?view=diff&rev=474669&r1=474668&r2=474669
==============================================================================
--- portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/security/permissions/view.vm
(original)
+++ portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/security/permissions/view.vm
Mon Nov 13 21:26:14 2006
@@ -26,158 +26,158 @@
     layoutChildPriority="left-right"
     style="width: 100%">
 
-<div id="mainTabContainer" dojoType="TabContainer" selectedChild="portlets" doLayout="false">
+  <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>
-</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>
-</div>
-</div>
+    <div id="portlets" dojoType="ContentPane" label="Portlets">
+      <div class="tableContainer">
 
-</div>
+        <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"
-     layoutChildPriority='none'
-     style="width: 100%; height: 200px; border: 1px solid grey;"
->
+      </div>
+    </div>
 
-<div dojoType="LayoutContainer"
-	widgetId="editorTop"
-	minHeight="20"
-    layoutAlign="top"
-	style="padding: 4px; border-bottom: thin inset grey; width: 100%; height: 55px"
->
+    <div id="folders" dojoType="ContentPane" label="Folders">
+      <div class="tableContainer">
 
-    <div dojoType="LayoutContainer"
+        <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>
+
+      </div>
+    </div>
+
+  </div>
+
+  <div dojoType="LayoutContainer" layoutChildPriority='none' style="width: 100%; height:
200px; border: 1px solid grey;">
+
+    <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="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>
+            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"
+      <div dojoType="LayoutContainer"
 	    widgetId="editorControls"
 	    minHeight="20"
-        layoutAlign="right"
-	    style="width: 20%; height: 55px"
-    >
-    <div class="buttonbox">
+            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>
+      </div>
+      
     </div>
-    </div>
-</div>
 
-<div dojoType="LayoutContainer"
+    <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"
->
-    <b>Roles</b><br/>
+        layoutAlign="left"
+	style="padding: 4px; border-right: thin inset grey; width: 50%; height: 100px; overflow-y:
auto; overflow-x: hidden">
+
+      <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 />
+      <input type="checkbox" name="role_$velocityCount" id="role_$velocityCount" dojoType="Checkbox"
/> <label for="role_$velocityCount">$role.Principal.Name</label><br />
 #end
-</div>
-<div dojoType="LayoutContainer"
+
+    </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>
+        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 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>&nbsp;</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 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>&nbsp;</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>
 
 <script language="JavaScript" type="text/javascript">
     rolePrincipals = new Array();



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message