head	1.13;
access;
symbols
	TIGRIS_1_1_0RC2:1.11
	TIGRIS_1_1_0RC1:1.11
	TIGRIS_1_1:1.11.0.4
	TIGRIS_1_0_8:1.11
	TIGRIS_1_0_8RC3:1.11
	TIGRIS_1_0_8RC2:1.11
	TIGRIS_1_0_8RC1:1.11
	TIGRIS_1_0_7:1.11
	TIGRIS_1_0_7RC3:1.11
	TIGRIS_1_0_7RC2:1.11
	TIGRIS_1_0_7RC1:1.11
	TIGRIS_1_0_6:1.11
	TIGRIS_1_0_6RC5:1.11
	TIGRIS_1_0_6RC4:1.11
	TIGRIS_1_0_6RC3:1.11
	TIGRIS_1_0_6RC2:1.11
	TIGRIS_1_0_6RC1:1.11
	TIGRIS_1_0_5:1.11
	TIGRIS_1_0_5RC6:1.11
	TIGRIS_1_0_5RC5:1.11
	TIGRIS_1_0_5RC4:1.11
	TIGRIS_1_0_5RC3:1.11
	TIGRIS_1_0_5RC2:1.11
	TIGRIS_1_0_5RC1:1.11
	TIGRIS_1_0_4:1.11
	TIGRIS_1_0_3:1.11
	TIGRIS_1_0_2:1.11
	TIGRIS_1_0_1:1.11
	TIGRIS_1_0:1.11.0.6
	TIGRIS_1_0_0:1.11
	TIGRIS_1_0_0_RC1:1.11.0.2
	dlr:1.1.1
	TIGRIS_0_9_2_4:1.4
	TIGRIS_0_9_2_3:1.4
	HELM_PEER_PORT_BRANCH:1.1.1.1
	TURBINE_PEER:1.4
	TIGRIS_0_9_2_1:1.4
	TIGRIS_0_9_2:1.4.0.2
	TIGRIS_0_9_0:1.3.0.2;
locks; strict;
comment	@# @;


1.13
date	2001.05.23.02.04.15;	author dlr;	state dead;
branches;
next	1.12;

1.12
date	2001.05.01.21.47.22;	author leonardr;	state Exp;
branches;
next	1.11;

1.11
date	2001.03.24.09.44.52;	author jrobbins;	state Exp;
branches;
next	1.10;

1.10
date	2001.03.24.09.06.04;	author jrobbins;	state Exp;
branches;
next	1.9;

1.9
date	2001.03.24.05.48.54;	author jrobbins;	state Exp;
branches;
next	1.8;

1.8
date	2001.03.14.20.53.33;	author dlr;	state Exp;
branches;
next	1.7;

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

1.6
date	2001.02.21.01.08.32;	author dlr;	state Exp;
branches;
next	1.5;

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

1.4
date	2001.01.04.22.09.28;	author jody;	state Exp;
branches
	1.4.4.1;
next	1.3;

1.3
date	2000.12.12.02.26.25;	author leonardr;	state Exp;
branches;
next	1.2;

1.2
date	2000.12.12.00.12.28;	author leonardr;	state Exp;
branches;
next	1.1;

1.1
date	2000.12.09.03.27.07;	author leonardr;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2001.02.21.00.37.01;	author dlr;	state Exp;
branches;
next	;

1.4.4.1
date	2001.02.17.19.13.50;	author leonardr;	state Exp;
branches;
next	1.4.4.2;

1.4.4.2
date	2001.02.20.22.10.51;	author leonardr;	state Exp;
branches;
next	;


desc
@@


1.13
log
@Removed WM templates in favor of Velocity templates.
@
text
@#parse "$BRAND_TEMPLATE_ROOT/Admin_Nav.wm"

<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>

 #foreach $attribute in $host.getRoleAttributes()
 {
  <TR>
   <TD class="PlainText" colspan="3">
    <INPUT TYPE="CHECKBOX" NAME="ROLE-ATTRIBUTE $attribute.getName()" 
    #if ($currentRole.hasBooleanAttribute($attribute.getName()))
    {
     CHECKED
    }
    > $attribute.getDescription()</TD>
  </TR>
 }
</TD>
  </TR>

  <TR>
    <TD><input type="submit" name="Button" value="Submit Changes"></TD>
  </TR>
</table>


<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>
#set $oldName=""
#foreach $permission in $currentRole.getPermissions()
{
  <tr>
     #set $action=$permission.getAction()
     #set $resource=$permission.getResource()
     #set $newName=$permission.getAction().getName()
     #set $go=true
    <td class="PlainText">
     #if (!$newName.equals($oldName))
     {
      $newName
      #set $oldName=$newName
      }
    </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>
  </tr>
}

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

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


1.12
log
@Big architecture and schema change: booleans in the HELM_ROLE table have been replaced by entries in the HELM_ROLE_ATTRIBUTE_VALUE table. Also, a new attribute has been added which controls which roles a user gets upon creation of a project.
@
text
@@


1.11
log
@removed links that are now reduntant with Admin_Nav.wm
@
text
@d23 2
d26 3
a28 11
     <TD class="PlainText" COLSPAN=2><INPUT TYPE="CHECKBOX" NAME="requestable" 
      #if ($currentRole.isRequestable())
      {
       CHECKED
      }
     > Allow users to request this role?</TD>
  </TR>

  <TR>
    <TD COLSPAN=2 class="PlainText"><INPUT TYPE="CHECKBOX" NAME="ownership"
    #if ($currentRole.denotesOwner())
d32 2
a33 10
    > Should someone with this role be considered an "owner" of the
#if (!$currentRole.getType().equals("Host"))
{
 host?
} #else {
 #if (!$currentRole.getType().equals("Domain"))
 {
  associated domain?
 } #else {
  associated project?
a34 1
}
@


1.10
log
@added much needed admin nav element
@
text
@a6 3
  <TR>
    <TD class="PlainText"><a href="RoleList">Role List</a></TD>
  </TR>
@


1.9
log
@PR: 1535
applied styles, added explanitory headings
moved delete to 3rd column so that it would be consistent
@
text
@d1 2
@


1.8
log
@Formatting change.
@
text
@d3 1
a3 1
    <TD class="ProjectNameHeader">Editing Role: $currentRole.getName()</TD>
d6 1
a6 2
    <TD><a href="RolePermissionAdd?roleID=$currentRole.getID()">Add new Permission</a></TD>
    <TD><a href="RoleList">Role List</a></TD>
d34 1
a34 1
    <TD COLSPAN=2><INPUT TYPE="CHECKBOX" NAME="ownership"
d57 6
d65 12
a76 3
    <TD class="ProjectDownloadHeader" bgcolor="#efefef">Delete</TD>
    <TD class="ProjectDownloadHeader" bgcolor="#efefef">Action</TD>
    <TD class="ProjectDownloadHeader" bgcolor="#efefef">Resource(s)</TD>
d81 1
a81 2
  <TR>
    <td class="PlainText">
d86 1
a86 3
     <input type="checkbox" name="Remove $permission.getAction().getID() $permission.getResource().getID()">
    </TD>
    <TD class="PlainText">
d92 3
a94 2
    </TD> 
    <TD class="PlainText">
d96 6
a101 2
    </TD> 
  </TR>
d105 3
a107 1
    <td colspan="3">
@


1.7
log
@Added link back to role list.
@
text
@d89 3
a91 1
    <TD COLSPAN=3><input type="submit" name="Button" value="Delete Permissions"></TD>
@


1.6
log
@This is the highest revision from the HELM_PEER_PORT_BRANCH.  The previous import caused too many conflicts to resolve manually
@
text
@d7 1
@


1.5
log
@Added a new field to the Role table: ownership. This designates whether someone who has the role in the project/domain/host is the sort of person who gets emails when something happens that affects the project/domain/host.
@
text
@d35 1
a35 1
    #if ($currentRole.isOwnership())
@


1.4
log
@styles applied and tweeked.
PR:
Obtained from:
Submitted by:
Reviewed by:
@
text
@d34 21
d90 1
a90 1
</TABLE>@


1.4.4.1
log
@Ported changes from head.
@
text
@a33 21
    <TD COLSPAN=2><INPUT TYPE="CHECKBOX" NAME="ownership"
    #if ($currentRole.isOwnership())
    {
     CHECKED
    }
    > Should someone with this role be considered an "owner" of the
#if (!$currentRole.getType().equals("Host"))
{
 host?
} #else {
 #if (!$currentRole.getType().equals("Domain"))
 {
  associated domain?
 } #else {
  associated project?
 }
}
</TD>
  </TR>

  <TR>
d69 1
a69 1
</TABLE>
@


1.4.4.2
log
@Changed method call.
@
text
@d35 1
a35 1
    #if ($currentRole.denotesOwner())
@


1.3
log
@Boxes are checked properly now.
@
text
@d1 8
a8 2
<h1>Editing Role: $currentRole.getName()</h1>
<a href="RolePermissionAdd?roleID=$currentRole.getID()">Add new Permission</a>
d10 1
a10 1
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2">
d14 28
a41 25
<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>

<TR>
 <TD COLSPAN=2><INPUT TYPE="CHECKBOX" NAME="requestable" 
 #if ($currentRole.isRequestable())
 {
  CHECKED
 }
 > Allow users to request this role?</TD>
</TR>

<tr><td><input type="submit" name="Button" value="Submit Changes"></td></tr>

<TR><TD class="ProjectDownloadHeader" bgcolor="#efefef">Delete</TD>
<TD class="ProjectDownloadHeader" bgcolor="#efefef">Action</TD>
<TD class="ProjectDownloadHeader" bgcolor="#efefef">Resource(s)</TD>
</TR>
d45 19
a63 15
 <tr><td>
 #set $action=$permission.getAction()
 #set $resource=$permission.getResource()
 #set $newName=$permission.getAction().getName()
 #set $go=true
 <input type="checkbox" name="Remove $permission.getAction().getID() $permission.getResource().getID()"></TD>
 <td>
 #if (!$newName.equals($oldName))
 {
  $newName
  #set $oldName=$newName
 }
 </td><td>
 $resource.getDescription();: $resource.getPattern();
 </td></tr>
d66 4
a69 2
<tr><td><input type="submit" name="Button" value="Delete Permissions"></td></tr>
</table>@


1.2
log
@Corrected link.
@
text
@d19 6
a24 1
 <TD COLSPAN=2><INPUT TYPE="CHECKBOX" NAME="requestable" VALUE="$currentRole.isRequestable()"> Allow users to request this role?</TD>
@


1.1
log
@New servlet: RoleEdit
@
text
@d2 1
a2 1
<a href="RolePermissionAdd">Add new Permission</a>
@


1.1.1.1
log
@Replacing the HEAD with the HELM_PEER_PORT_BRANCH.
@
text
@d1 2
a2 8
<TABLE BORDER="0" CELLSPACING="1" CELLPADDING="2" BORDER="0" WIDTH="100%">
  <TR>
    <TD class="ProjectNameHeader">Editing Role: $currentRole.getName()</TD>
  </TR>
  <TR>
    <TD><a href="RolePermissionAdd?roleID=$currentRole.getID()">Add new Permission</a></TD>
  </TR>
</TABLE>
d4 1
a4 1
<TABLE BORDER="0" CELLSPACING="1" CELLPADDING="3" BORDER="0" width="100%">
d8 22
a29 27
  <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>

  <TR>
     <TD class="PlainText" COLSPAN=2><INPUT TYPE="CHECKBOX" NAME="requestable" 
      #if ($currentRole.isRequestable())
      {
       CHECKED
      }
     > Allow users to request this role?</TD>
  </TR>

  <TR>
    <TD COLSPAN=2><INPUT TYPE="CHECKBOX" NAME="ownership"
    #if ($currentRole.denotesOwner())
    {
     CHECKED
    }
    > Should someone with this role be considered an "owner" of the
#if (!$currentRole.getType().equals("Host"))
d31 8
a38 3
 host?
} #else {
 #if (!$currentRole.getType().equals("Domain"))
d40 2
a41 3
  associated domain?
 } #else {
  associated project?
d43 3
a45 35
}
</TD>
  </TR>

  <TR>
    <TD><input type="submit" name="Button" value="Submit Changes"></TD>
  </TR>

  <TR>
    <TD class="ProjectDownloadHeader" bgcolor="#efefef">Delete</TD>
    <TD class="ProjectDownloadHeader" bgcolor="#efefef">Action</TD>
    <TD class="ProjectDownloadHeader" bgcolor="#efefef">Resource(s)</TD>
  </TR>
#set $oldName=""
#foreach $permission in $currentRole.getPermissions()
{
  <TR>
    <td class="PlainText">
     #set $action=$permission.getAction()
     #set $resource=$permission.getResource()
     #set $newName=$permission.getAction().getName()
     #set $go=true
     <input type="checkbox" name="Remove $permission.getAction().getID() $permission.getResource().getID()">
    </TD>
    <TD class="PlainText">
     #if (!$newName.equals($oldName))
     {
      $newName
      #set $oldName=$newName
      }
    </TD> 
    <TD class="PlainText">
     $resource.getDescription();: $resource.getPattern();
    </TD> 
  </TR>
d48 2
a49 4
  <TR>
    <TD COLSPAN=3><input type="submit" name="Button" value="Delete Permissions"></TD>
  </TR>
</TABLE>
@


