head	1.15;
access;
symbols;
locks; strict;
comment	@# @;


1.15
date	2001.08.24.01.39.33;	author tfahrner;	state Exp;
branches;
next	1.14;

1.14
date	2001.08.20.22.29.24;	author tfahrner;	state Exp;
branches;
next	1.13;

1.13
date	2001.08.03.05.45.08;	author tfahrner;	state Exp;
branches;
next	1.12;

1.12
date	2001.08.03.04.44.24;	author tfahrner;	state Exp;
branches;
next	1.11;

1.11
date	2001.07.31.01.18.40;	author tfahrner;	state Exp;
branches;
next	1.10;

1.10
date	2001.07.31.00.01.57;	author tfahrner;	state Exp;
branches;
next	1.9;

1.9
date	2001.07.30.22.27.18;	author tfahrner;	state Exp;
branches;
next	1.8;

1.8
date	2001.07.30.21.59.24;	author tfahrner;	state Exp;
branches;
next	1.7;

1.7
date	2001.07.27.22.36.07;	author leonardr;	state Exp;
branches;
next	1.6;

1.6
date	2001.07.02.22.47.43;	author leonardr;	state Exp;
branches;
next	1.5;

1.5
date	2001.07.02.18.56.44;	author leonardr;	state Exp;
branches;
next	1.4;

1.4
date	2001.06.13.21.22.23;	author beril;	state Exp;
branches;
next	1.3;

1.3
date	2001.06.12.21.54.12;	author beril;	state Exp;
branches;
next	1.2;

1.2
date	2001.05.24.18.48.47;	author dlr;	state Exp;
branches;
next	1.1;

1.1
date	2001.05.23.02.03.15;	author dlr;	state Exp;
branches;
next	;


desc
@@


1.15
log
@removed redundant task links
@
text
@<div id="roleedit" class="app">

 <h3>Edit Role: $currentRole.getFullName()</h3>
<form action="RoleEdit?roleID=$currentRole.getID()" method="post" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="roleID" value="$currentRole.getID()" />
 <div class="axial">
<table border="1" cellspacing="2" cellpadding="3"> 
  <tr>
   <th nowrap="nowrap">Name</th>
   <td><input type="text" name="name" value="$currentRole.getName()" size="50" maxlength="99" />
    <p>Identify the role with a name to be displayed in all
    listings. 1-99 characters, all characters allowed except for
    period.</p>
   </td>
  </tr>
  <tr>
   <th nowrap="nowrap">Description</th>
   <td><input type="text" name="description" value="$currentRole.getDescription()" size="50" maxlength="99" />
    <p>Describe the functionality provided by this role.</p>
   </td>
  </tr>
 #foreach( $attribute in $host.getRoleAttributes() )
  <tr>
   <th>
    <input type="checkbox" name="ROLE-ATTRIBUTE $attribute.getName()" 
    #if( $currentRole.hasBooleanAttribute($attribute.getName()) )
     checked="checked"
    #end
     /></th>
   <td>$attribute.getDescription()</td>
  </tr>
 #end
  <tr>
   <td></td>
   <td><input type="submit" name="Button" value="Submit Changes" /></td>
  </tr>
 </table>
 </div>
 <div id="permissions">
 <h3>Permissions</h3>
 <ul class="tasks"><li><a href="RolePermissionAdd?roleID=$currentRole.getID()">Add New Permission</a></li></ul>

 <table border="1" cellspacing="2" cellpadding="3" width="100%"> 
  <tr>
   <th nowrap="nowrap">Action</th>
   <th nowrap="nowrap">Resource(s)</th>
   <th nowrap="nowrap">Delete</th>
  </tr>
#set ($rowClass="a")
#set( $oldName = "" )
#foreach( $permission in $currentRole.getPermissions() )
  <tr class="$rowClass">
     #set( $action = $permission.getAction() )
     #set( $resource = $permission.getResource() )
     #set( $newName = $permission.getAction().getName() )
     #set( $go = true )
   <td>
    #if( !$newName.equals($oldName) )
     $newName
     #set( $oldName = $newName )
    #end
   </td> 
   <td>${resource.getDescription()}: ${resource.getPattern()}</td> 
   <td><input type="checkbox" name="Remove $permission.getAction().getID() $permission.getResource().getID()" /></td>
  </tr>
  #if ($rowClass.equals("a"))
    #set ($rowClass="b")
  #else 
    #set ($rowClass="a")
  #end
#end
  <tr>
   <td></td>
   <td></td>
   <td><input type="submit" name="Button" value="Delete Permissions" /></td>
  </tr>
 </table>
 </div>
</form>
</div>
@


1.14
log
@first wave of ui revisions. expect minor breakage. working on it.
@
text
@a0 1

d41 1
a41 1
 <p class="affordance"><a href="RolePermissionAdd?roleID=$currentRole.getID()">Add New Permission</a></p>
@


1.13
log
@getting rid of "tasks" nav; backing out of earlier ill-considered commit
@
text
@a0 1
#parse( "Admin_Nav.vm" )
a2 3
<h2>
 #parse( "Nomen.vm" )
</h2>
d10 1
a10 1
   <th nowrap="nowrap">Name:</th>
d18 1
a18 1
   <th nowrap="nowrap">Description:</th>
d41 1
a41 1
 <h3>Permissions:</h3>
@


1.12
log
@restoring admin options nav, fixing html in ProjectAdd
@
text
@a6 3
#if( !$loginUser.isAnonymous() && $servletTaskBar.available($servletName))
#parse("$servletTaskBar.getPath($servletName)")
#end
@


1.11
log
@included "task nav" below headlines
@
text
@d1 1
@


1.10
log
@pulled admin options, added headlines
@
text
@d6 4
@


1.9
log
@misc html usage revisions
@
text
@a0 1
#parse( "Admin_Nav.vm" )
d3 3
@


1.8
log
@html usage revision to synch with scarab
@
text
@d8 1
a8 1
 <table border="1" cellspacing="2" cellpadding="3" width="100%"> 
d40 1
a40 1
 <div id="permissions" class="app">
d81 1
a81 1
</div>@


1.7
log
@Made Role.getName() get unqualified role name; this was neccessary because BaseRolePeer calls Role.getName(), which was causing roles to be created with their fully-qualified names being stored where their unqualified names should be. Templates which used to use Role.getName() now need to use Role.getFullName()
@
text
@d3 1
a3 1
<div id="roleedit">
d8 1
a8 1
 <table border="0" cellspacing="0" cellpadding="2" width="100%"> 
d40 1
a40 1
 <div id="permissions">
d44 1
a44 1
 <table border="0" cellspacing="0" cellpadding="2" width="100%"> 
@


1.6
log
@The period character is now a separator between the names of projects and their roles, and as such can no longer be used as the name of a role.
@
text
@d4 1
a4 1
 <h3>Edit Role: $currentRole.getName()</h3>
d11 1
a11 1
   <td><input type="text" name="name" value="$currentRole.getUnqualifiedName()" size="50" maxlength="99" />
@


1.5
log
@Implemented project-scoped roles.
@
text
@d11 5
a15 1
   <td><input type="text" name="name" value="$currentRole.getUnqualifiedName()" size="50" maxlength="99" /></td>
d19 3
a21 1
   <td><input type="text" name="description" value="$currentRole.getDescription()" size="50" maxlength="99" /></td>
@


1.4
log
@xhtml cleanup
@
text
@d11 1
a11 1
   <td><input type="text" name="name" value="$currentRole.getName()" size="50" maxlength="99" /></td>
@


1.3
log
@recoded according to new html/css standards
@
text
@a4 1

d7 1
d19 1
a19 1
   <td>
d24 1
a24 1
     /></td>
d29 1
a29 1
   <th></th>
d33 2
a34 1

d68 2
a69 2
   <th></th>
   <th></th>
d73 1
@


1.2
log
@Removed BRAND_TEMPLATE_ROOT, SERVLET_TEMPLATE_ROOT, and SANDBOX from use in #include and #parse directives (deprecated by multiple template paths).
@
text
@d3 2
a4 19
<TABLE BORDER="0" CELLSPACING="1" CELLPADDING="2" BORDER="0" WIDTH="100%">
  <TR>
    <TD class="Header">Edit Role: $currentRole.getName()</TD>
  </TR>
</TABLE>

<TABLE BORDER="0" CELLSPACING="1" CELLPADDING="3" BORDER="0" width="100%">
<FORM ACTION="RoleEdit?roleID=$currentRole.getID()" METHOD="POST" ENCTYPE="application/x-www-form-urlencoded">
<INPUT TYPE="hidden" NAME="roleID" VALUE="$currentRole.getID()">

  <TR>
    <TD VALIGN="TOP" class="InputHeader" NOWRAP>Name:</TD>
    <TD><INPUT TYPE="TEXT" NAME="name" VALUE="$currentRole.getName()" SIZE="50" LENGTH="99"></TD>
  </TR>

  <TR>
     <TD VALIGN="TOP" class="InputHeader" NOWRAP>Description:</TD>
     <TD><INPUT TYPE="TEXT" NAME="description" VALUE="$currentRole.getDescription()" SIZE="50" LENGTH="99"></TD>
  </TR>
d6 11
d18 3
a20 3
  <TR>
   <TD class="PlainText" colspan="3">
    <INPUT TYPE="CHECKBOX" NAME="ROLE-ATTRIBUTE $attribute.getName()" 
d22 1
a22 1
     CHECKED
d24 3
a26 2
    > $attribute.getDescription()</TD>
  </TR>
d28 5
a32 2
</TD>
  </TR>
d34 2
a35 4
  <TR>
    <TD><input type="submit" name="Button" value="Submit Changes"></TD>
  </TR>
</table>
d37 7
a43 19

<br><br>

<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="3" BORDER="0" width="100%">

  <TR>
    <TD class="SmallHeader" colspan="3">Permissions:</TD>
    <TD class="PlainText" colspan="2" align="RIGHT">
       <a href="RolePermissionAdd?roleID=$currentRole.getID()">Add New Permission</a>
    </TD>
  </TR>

  <TR>
    <TD class="ProjectDownloadHeader" bgcolor="#efefef" width="50%">Action</TD>
    <TD WIDTH="10" bgcolor="#efefef"><SPACER TYPE="block" WIDTH="10"></TD>
    <TD class="ProjectDownloadHeader" bgcolor="#efefef" width="50%">Resource(s)</TD>
    <TD WIDTH="10" bgcolor="#efefef"><SPACER TYPE="block" WIDTH="10"></TD>
    <TD class="ProjectDownloadHeader" bgcolor="#efefef" >Delete</TD>
  </TR>
d46 1
a46 1
  <tr>
d51 8
a58 14
    <td class="PlainText">
     #if( !$newName.equals($oldName) )
      $newName
      #set( $oldName = $newName )
      #end
    </td> 
    <td></td>
    <td class="PlainText">
     ${resource.getDescription()}: ${resource.getPattern()}
    </td> 
    <td></td>
    <td class="PlainText">
     <input type="checkbox" name="Remove $permission.getAction().getID() $permission.getResource().getID()">
    </td>
d60 5
d66 8
a73 9

  <TR>
    <td colspan="4" class="PlainText">&nbsp; </td>

    <td col>
      <input type="submit" name="Button" value="Delete Permissions">
    </td>
  </TR>
</TABLE>
@


1.1
log
@Adding Velocity templates.
@
text
@d1 1
a1 1
#parse( "$BRAND_TEMPLATE_ROOT/Admin_Nav.vm" )
@

