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


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

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

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

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

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

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

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

1.6
date	2001.07.04.01.22.26;	author jefflove;	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.17.03.39.03;	author jefflove;	state Exp;
branches;
next	1.3;

1.3
date	2001.06.13.21.22.23;	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.13
log
@first wave of ui revisions. expect minor breakage. working on it.
@
text
@
#if ($acl.hasPermission("Resource - Add")) #set ($hostAdd=true) #end
#if ($acl.hasPermission("Resource - Add", $currentDomain)) 
 #set ($domainAdd=true) 
#end

<div id="resourceadd" class="app">

 <p>* Required fields</p>

<form name="ResourceAddForm" action="ResourceAdd" method="post" enctype="application/x-www-form-urlencoded">
<div class="axial">
<table border="1" cellspacing="2" cellpadding="3">
 #if ($domainAdd || $hostAdd)
  <tr>
   <th nowrap="nowrap">* Resource visibility</th>
   <td>
    <select name="associatedProject" size="1">
     #if ($hostAdd)
      <option value="$host.getID()" 
#if($associatedProject=$host.getID())
 selected="selected"
#end>Host</option>
     #end
     #if ($domainAdd)
      <option value="$currentDomain.getID()" 
#if($associatedProject=$currentDomain.getID())
 selected="selected"
#end>$currentDomain.getName()</option>
     #end
     <option value="$currentProject.getID()" 
#if($associatedProject=$currentProject.getID())
 selected="selected"
#end>$currentProject.getName() project</option>
    </select>
     <p>
     Select the visibility for this resource. A resource associated with the
     domain #if($hostAdd)or the host#end can be used in projects besides the
     $currentProject.getName() project.
     </p>
   </td>
  </tr>
 #end
 
 <tr>
  <th nowrap="nowrap">* Short Description</th>
  <td><input type="text" name="description" value="$description" size="50" maxlength="99" /></td>
 </tr>
 <tr>
  <th nowrap="nowrap">* Resource Pattern</th>
  <td><input type="text" name="pattern" value="$pattern" size="50" maxlength="99" />
      <p>Enter a regular expression representing the set of resources you want to assign an action to in a role. Note that only certain actions check the resource.</p>
  </td>
 </tr>
 <tr>
  <td></td>
  <td><input type="submit" name="Button" value="Create Resource" /></td>
 </tr>
</table>
</div>
</form>

</div>
@


1.12
log
@getting rid of "tasks" nav; backing out of earlier ill-considered commit
@
text
@a0 1
#parse( "Admin_Nav.vm" )
a7 3
<h2>
 #parse( "Nomen.vm" )
</h2>
d16 1
a16 1
   <th nowrap="nowrap">* Resource visibility:</th>
d46 1
a46 1
  <th nowrap="nowrap">* Short Description:</th>
d50 1
a50 1
  <th nowrap="nowrap">* Resource Pattern:</th>
@


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


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


1.9
log
@pulled admin options, added headlines
@
text
@d11 4
@


1.8
log
@misc html usage revisions
@
text
@a0 1
#parse( "Admin_Nav.vm" )
d8 3
a10 1
 <h3>Add Resource</h3>
@


1.7
log
@html usage revision to synch with scarab
@
text
@d14 1
a14 1
<table border="1" cellspacing="2" cellpadding="3" width="100%">
@


1.6
log
@fixed html errors
@
text
@d8 1
a8 1
<div id="resourceadd">
d14 1
a14 1
<table border="0" cellspacing="0" cellpadding="2" width="100%">
@


1.5
log
@Implemented project-scoped roles.
@
text
@d10 1
a10 1
 <p>* Required Fields</p>
d19 1
a19 1
    <select name="associatedProject" size="1"/>
d21 4
a24 1
      <option value="$host.getID()" #if($associatedProject=$host.getID())SELECTED#end>Host</option>
d27 4
a30 1
      <option value="$currentDomain.getID()" #if($associatedProject=$currentDomain.getID())SELECTED#end>$currentDomain.getName()</option>
d32 4
a35 1
     <option value="$currentProject.getID()" #if($associatedProject=$currentProject.getID())SELECTED#end>$currentProject.getName() project</select>
d37 2
a38 1
     <p>Select the visibility for this resource. A resource associated with the
d41 1
d53 1
a53 1
      <p> Enter a regular expression representing the set of resources you want to assign an action to in a role. Note that only certain actions check the resource.</p>
d64 1
a64 1
</div>@


1.4
log
@html usage revisions
@
text
@d3 5
d15 20
@


1.3
log
@xhtml cleanup
@
text
@d4 1
a4 1
 <h4>Add Resource</h4>
d11 1
a11 2
  <th>*</th>
  <th nowrap="nowrap">Short Description:</th>
d15 1
a15 2
  <th>*</th>
  <th nowrap="nowrap">Resource Pattern:</th>
a20 1
  <td></td>
@


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 3
d7 23
a29 5
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" BORDER="0" WIDTH="100%">
  <TR>
    <TD class="Header" nowrap>Add Resource</TD>  
  </TR>
</TABLE>
d31 1
a31 32
<TABLE BORDER="0" WIDTH="100%">
<FORM NAME="ResourceAddForm" ACTION="ResourceAdd" METHOD="POST" ENCTYPE="application/x-www-form-urlencoded">
  <TR> 
    <TD colspan="4"><span class="Asterisk">*</span> <span class="PlainText">Required fields</span></TD> 
  </TR> 
  <TR>
    <TD VALIGN="top"><span class="Asterisk">*</span></TD> 
    <TD VALIGN="TOP" class="InputHeader" NOWRAP>Short Description:</TD>
    <TD COLSPAN="2"><INPUT TYPE="TEXT" NAME="description" VALUE="$description" SIZE="50" LENGTH="99"></TD>
  </TR>
  <TR>
    <TD VALIGN="top"><span class="Asterisk">*</span></TD> 
    <TD class="InputHeader" VALIGN="top" NOWRAP>Resource Pattern:</TD>
    <TD COLSPAN="2"><INPUT TYPE="TEXT" NAME="pattern" VALUE="$pattern" SIZE="50" LENGTH="99"></TD>
  </TR>
  <TR>
   <TD></TD>
   <TD></TD>
   <TD class="PlainText"> 
    Enter a regular expression representing the set of resources you want to
    assign an action to in a role. Note that only certain actions
    check the resource.
   </TD>  
  </TR>
  <TR>
    <TD></TD>
    <TD></TD>
    <TD><INPUT TYPE="submit" NAME="Button" VALUE="Create Resource">
    </TD>
  </TR>
</FORM>
</TABLE>
@


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

