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.09;	author tfahrner;	state Exp;
branches;
next	1.11;

1.11
date	2001.07.31.20.33.02;	author edk;	state Exp;
branches;
next	1.10;

1.10
date	2001.07.31.01.18.41;	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.25;	author tfahrner;	state Exp;
branches;
next	1.6;

1.6
date	2001.07.30.21.24.30;	author tfahrner;	state Exp;
branches;
next	1.5;

1.5
date	2001.07.03.00.06.47;	author tberry;	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.15.21.17.13;	author neil;	state Exp;
branches;
next	1.2;

1.2
date	2001.06.04.21.42.07;	author elicia;	state Exp;
branches;
next	1.1;

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


desc
@@


1.13
log
@first wave of ui revisions. expect minor breakage. working on it.
@
text
@<div id="mailinglistedit" class="app">


<h3>Edit Mailing List: $currentProject.getName()</h3>  


#if( $changed )
    <p>Updated information for mailing list $listname@@$currentProject.getName()</p>
#end

#foreach( $field in $missingFields )
    <p><strong class="alert">Missing required field $field</strong>
</p>
#end

#foreach( $field in $validationErrors )
    <p><strong class="alert">Validation Error: $field</strong>
</p>
#end



#if( $allowEdits )

<form method="post" action="$servletName" name="MailingListEditForm">

<input type="hidden" name="projectid" value="$currentProject.getID()" />
<input type="hidden" name="list" value="$listname" />

<div class="axial">
<table border="1" cellspacing="2" cellpadding="3">
  <tr>
    <th>List Name</th>
    <td colspan="2">$listname</td>
  </tr>
  <tr>
    <th>Description: <p>(Topic of the mailing list?)</p></th> 
    <td colspan="2"><textarea name="description" rows="7" cols="54">$description</textarea></td> 
  </tr>
  <tr>
    <th nowrap="nowrap">Owner Email</th>
    <td colspan="2">
      <input type="text" name="owner" value="$owner" size="16" />&nbsp;(Required email address)
    </td>
  </tr>
  <tr>
    <th nowrap="nowrap">Optional Prefix</th>
    <td colspan="2">
      <input type="text" name="prefix" value="$prefix" size="16" />&nbsp;(Optional, shown on the subject line of all messages) 
    </td>
  </tr>
  <tr> 
    <th>Trailer</th> 
    <td> 
      <input type="checkbox" name="trailer" $trailerchecked /></td>
    <td>Provides instructions on unsubscribing as a footer in every message.
      <p>Strongly recommended for lists with more than 100 members.</p>
    </td> 
  </tr> 
  <tr>
    <th>Private</th>
    <td><input type="checkbox" name="private" $privatechecked /></td>
    <td>The Private checkbox allows you to limit access to the mail list and it's archives to project members only.</td>
  </tr>
#set( $text = "List Type:" )
#foreach( $listType in $listTypes )
    #if( $listType.isSelected() )
        #set ($checked = "checked=\"checked\"")
    #else
        #set( $checked = "" )
    #end 
  <tr> 
    <th>$text</th> 
    <td><input type="radio" name="type" value="$listType.name()" $checked /></td>
    <td>$listType.name(): 
##$listType.description()
    </td> 
  </tr> 
  #set( $text = "&nbsp;" )
#end 

  <tr> 
    <th>Members</th> 
    <td colspan="2"><a href="/servlets/MailingListMembers?projectID=$currentProject.getID()&amp;list=$listname&amp;group=Subscribers">Edit Subscribers</a> | <a href="/servlets/MailingListMembers?projectID=$currentProject.getID()&amp;list=$listname&amp;group=Digest+Subscribers">Edit Digest Subscribers</a> | <a href="/servlets/MailingListMembers?projectID=$currentProject.getID()&amp;list=$listname&amp;group=Moderators">Edit Moderators</a> | <a href="/servlets/MailingListMembers?projectID=$currentProject.getID()&amp;list=$listname&amp;group=Allowed+Posters">Edit Allowed Posters</a></td> 
  </tr> 
  <tr> 
    <th>Other</th> 
    <td colspan="2"><a href="/servlets/MailingListDelete?projectID=$currentProject.getID()&amp;list=$listname">Delete Mailing List</a></td>
  </tr>
  <tr>
    <td><input type="submit" name="Button" value="Make List Changes" /></td>
    <td><input type="reset" name="Button" value="Reset Form" /></td>
    <td><input type="submit" name="Button" value="Cancel" /></td>
  </tr>
</table>
</div>

</form>

#else
## base permission is ProjMail - View

<dl>
 <dt>List Name:</dt>
 <dd>$listname</dd>
 <dt>Description: (Topic of this mailing list?)</dt>
 <dd>$description</td></dd>
 <dt>List Type:</dt>
 <dd>$listType.name()</dd>
 <dt>Owner:</dt>
 <dd>$owner</dd>
</dl>
#end
</div>
@


1.12
log
@getting rid of "tasks" nav; backing out of earlier ill-considered commit
@
text
@a1 3
<h2>
 #parse( "Nomen.vm" )
</h2>
d33 1
a33 1
    <th>List Name:</th>
d41 1
a41 1
    <th nowrap="nowrap">Owner Email:</th>
d47 1
a47 1
    <th nowrap="nowrap">Optional Prefix:</th>
d53 1
a53 1
    <th>Trailer:</th> 
d61 1
a61 1
    <th>Private:</th>
d83 1
a83 1
    <th>Members:</th> 
d87 1
a87 1
    <th>Other:</th> 
@


1.11
log
@fix inconsistent variable name
@
text
@a4 3
#if( !$loginUser.isAnonymous() && $servletTaskBar.available($servletName))
#parse("$servletTaskBar.getPath($servletName)")
#end
@


1.10
log
@included "task nav" below headlines
@
text
@d80 1
a80 1
    <td><input type="radio" name="type" value="$listtype.name()" $checked /></td>
@


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


1.8
log
@misc html usage revisions
@
text
@d2 3
@


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


1.6
log
@removed dependency on CSS for differentiation of alerts
@
text
@d1 1
a1 1
<div id="mailinglistedit">
d30 1
a30 1
<table border="0" cellspacing="0" cellpadding="2" width="100%">
@


1.5
log
@edit screen text for better readability.
Issue number:
Obtained from:
Submitted by:
Reviewed by:
@
text
@d11 2
a12 1
    <p class="alert">Missing required field $field</p>
d16 2
a17 1
    <p class="alert">Validation Error: $field</p>
@


1.4
log
@html usage revisions
@
text
@d53 1
a53 1
    <td>Shows instructions on how to unsubscribe as a footer in every message.
d60 1
a60 1
    <td>Whether people can subscribe themselves or view the archives</td>
@


1.3
log
@ui recoded; needs help with the three checked variables and xhtml validation
@
text
@d100 10
a109 20
<table border="0" cellspacing="0" cellpadding="2" width="100%">
  <tr> 
    <th nowrap="nowrap">List Name:</th> 
    <td colspan="2">$listname</td> 
  </tr> 
  <tr> 
    <th>Description: <p>(Topic of this mailing list?)</p></th>
    <td colspan="2">$description</td>
  </tr>
  <tr> 
    <th nowrap="nowrap">List Type:</th> 
    <td colspan="2">$listType.name()</td>
  <tr>
    <th width="120" nowrap="nowrap">Owner:</th>
    <td>
      $owner
    </td>
  </tr>
</table>

a110 1

@


1.2
log
@fixed velocity port errors
@
text
@d1 4
a4 5
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" BORDER="0" WIDTH="100%">
  <TR>
    <TD CLASS="Header" NOWRAP>Edit Mailing List: <SPAN CLASS="ProjectNameHeader">$currentProject.getName()</SPAN></TD>  
  </TR>
</TABLE>
a5 1
<ul>
d7 1
a7 1
    <li>Updated information for mailing list $listname@@$currentProject.getName()
d9 1
a9 1
<font color=red>
d11 1
a11 1
    <li>Missing required field <strong>$field</strong>
d13 1
d15 1
a15 1
    <li>Validation Error: <strong>$field</strong>
d17 2
a18 2
</font>
</ul>
d22 40
a61 41
<form method="POST" action="$servletName" NAME="MailingListEditForm">
<input type=hidden name=projectID value="$currentProject.getID()">
<input type=hidden name=list value="$listname">

<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" BORDER="0" WIDTH="100%">
  <TR>
    <TD CLASS="InputHeader" VALIGN="top" NOWRAP>List Name:</TD>
    <TD COLSPAN="2" class="PlainText">$listname</TD>
  </TR>
  <TR>
    <TD VALIGN="TOP" CLASS="InputHeader">Description:<BR> 
      <SPAN CLASS="PlainText">(What is the topic of this mailing list?)</SPAN> 
    </TD>
    <TD COLSPAN="2"><TEXTAREA NAME="description" ROWS="7" COLS="54">$description</TEXTAREA></TD> 
  </TR>
  <TR>
    <TD CLASS="InputHeader" VALIGN="top" NOWRAP>Owner Email:</TD>
    <TD COLSPAN="2" class="PlainText">
      <input type="text" name="owner" value="$owner" size="16">&nbsp;(Required email address)
    </TD>
  </TR>
  <TR>
    <TD CLASS="InputHeader" VALIGN="top" NOWRAP>Optional Prefix:</TD>
    <TD COLSPAN="2" class="PlainText">
      <input type="text" name="prefix" value="$prefix" size="16">&nbsp;(Optional, shown on the subject line of all messages) 
    </TD>
  </TR>
  <TR> 
    <TD VALIGN="top" CLASS="InputHeader" NOWRAP>Trailer:</TD> 
    <TD VALIGN="TOP" class="PlainText"> 
      <input type="checkbox" name="trailer" $trailerChecked></TD>
    <TD class="PlainText"><SPAN CLASS="PlainTextBold">Shows instructions on how to unsubscribe as a footer in every message.</SPAN></BR>
      Strongly recommended for lists with more than 100 members. 
    </TD> 
  </TR> 
  <TR>
    <TD class="InputHeader" VALIGN="top">Private:</TD>
    <TD VALIGN="TOP" class="PlainText"><INPUT TYPE="CHECKBOX" NAME="private" ${privateChecked} ></TD>
    <TD class="PlainText"><b>Whether people can subscribe themselves or view the
 archives</TD>
  </TR>
d65 1
a65 1
        #set( $checked = "checked" )
d69 4
a72 4
  <TR> 
    <TD CLASS="InputHeader" VALIGN="top" NOWRAP>$text</TD> 
    <TD VALIGN="top"><input type="radio" name="type" value=$listType.name() $checked></TD>
    <TD class="PlainText"><SPAN CLASS="PlainTextBold">$listType.name()</SPAN><BR>
d74 2
a75 2
    </TD> 
  </TR> 
d79 13
a91 14
  <TR> 
    <TD class="InputHeader" VALIGN="top" NOWRAP>Members:</TD> 
    <TD COLSPAN="2" class="ProjectName"><a href="/servlets/MailingListMembers?projectID=$currentProject.getID()&list=$listname&group=Subscribers">Edit Subscribers</a> | <a href="/servlets/MailingListMembers?projectID=$currentProject.getID()&list=$listname&group=Digest+Subscribers">Edit Digest Subscribers</a> | <a href="/servlets/MailingListMembers?projectID=$currentProject.getID()&list=$listname&group=Moderators">Edit Moderators</a> | <a href="/servlets/MailingListMembers?projectID=$currentProject.getID()&list=$listname&group=Allowed+Posters">Edit Allowed Posters</a></TD> 
  </TR> 
  <TR> 
    <TD class="InputHeader" VALIGN="top">Other:</TD> 
    <TD>&nbsp;</TD>
    <TD VALIGN="TOP" class="PlainText"><a HREF="/servlets/MailingListDelete?projectID=$currentProject.getID()&list=$listname">Delete Mailing List</TD>
  </TR>
  <TR>
    <TD><input type="submit" name="Button" value="Make List Changes"></TD>
    <TD><input type="reset" NAME="Button" value="Reset Form"></TD>
    <TD><input type="submit" name="Button" value="Cancel"></TD>
  </TR>
d93 2
d100 15
a114 17
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" WIDTH="100%">
  <TR> 
    <TD class="InputHeader" VALIGN="top" NOWRAP>List Name:</TD> 
    <TD COLSPAN="2" CLASS="PlainText">$listname</TD> 
  </TR> 
  <TR> 
    <TD VALIGN="TOP" class="InputHeader">Description:<BR> 
      <SPAN CLASS="PlainText">(What is the topic of this mailing list?)</SPAN> 
    </TD> 
    <TD COLSPAN="2">$description</TD>
  </TR>
  <TR> 
    <TD class="InputHeader" VALIGN="top" NOWRAP>List Type:</TD> 
    <TD COLSPAN="2" CLASS="PlainText">$listType.name()</TD>
  <TR>
    <TD WIDTH="120" CLASS="InputHeader" NOWRAP>Owner:</TD>
    <TD ALIGN="left" class="PlainText">
d116 2
a117 2
    </TD>
  </TR>
d122 1
@


1.1
log
@Adding Velocity templates.
@
text
@d64 1
a64 1
#set( $text = "List )Type:" 
d67 1
a67 1
        #set( $checked = " )checked" 
d73 1
a73 1
    <TD VALIGN="top"><input type="radio" name="type" value=$listType.name()$checked></TD>
@

