[Zope-CVS] CVS: Packages/VersionControl/dtml - vcActivityLog.dtml:1.1 vcPropertiesForm.dtml:1.1 vcVersionControlForm.dtml:1.1
Brian Lloyd
brian@digicool.com
Fri, 19 Oct 2001 14:09:48 -0400
Update of /cvs-repository/Packages/VersionControl/dtml
In directory cvs.zope.org:/tmp/cvs-serv29616
Added Files:
vcActivityLog.dtml vcPropertiesForm.dtml
vcVersionControlForm.dtml
Log Message:
oops, forgot to add dtml :(
=== Added File Packages/VersionControl/dtml/vcActivityLog.dtml ===
<dtml-var manage_page_header>
<dtml-with "_(management_view='Version Control')">
<dtml-var manage_tabs>
</dtml-with>
<p class="form-text">
This is a log of the user actions on this version of the resource.
</p>
<form action="&dtml-URL1;/" method="POST">
<table width="100%" cellspacing="0" cellpadding="2" border="0">
<tr class="list-header">
<td align="left" valign="top" width="16">
<div class="list-item">
</div>
</td>
<td align="left" valign="top">
<div class="list-item">
<strong>Activity Log</strong>
</div>
</td>
</tr>
<dtml-in getAllMessageEntries>
<dtml-with sequence-item>
<dtml-if sequence-odd>
<tr class="row-normal">
<dtml-else>
<tr class="row-hilite">
</dtml-if>
<td align="left" valign="top" width="16">
</td>
<td align="left" valign="top">
<div class="list-item">
<dtml-var getDateTime fmt="%Y-%m-%d %H:%M">
[<strong><dtml-var getUserName></strong>]
<strong><dtml-var getAction></strong>
rev <dtml-var getVersionId> at <dtml-var getTargetPath>
<p class="form-text">
<em>&dtml-getMessage;</em>
</p>
</div>
</td>
</tr>
</dtml-with>
</dtml-in>
</table>
</form>
<dtml-if update_menu>
<script type="text/javascript">
<!--
window.parent.update_menu();
//-->
</script>
</dtml-if>
<dtml-var manage_page_footer>
=== Added File Packages/VersionControl/dtml/vcPropertiesForm.dtml ===
<dtml-var manage_page_header>
<dtml-with "_(management_view='Version Control')">
<dtml-var manage_tabs>
</dtml-with>
<dtml-if isUnderVersionControl>
<!-- object is under version control -->
<p class="form-text">
This object is under version control. Use the form below to perform
versioning related operations on the object. You may also view the
<a href="./vcActivityLog">activity log</a> for this versioned resource.
</p>
<dtml-with getVersionInfo>
<form action="&dtml-URL1;" method="post">
<table cellspacing="0" cellpadding="2" border="0">
<dtml-if "getResourceStatus() == 'checked-in'">
<tr>
<td align="left" valign="top" nowrap>
<div class="form-label">
Current Status
</div>
</td>
<td align="left" valign="top">
<div class="form-text">
<font color="red">
Checked In
</font>
</div>
</td>
</tr>
<tr>
<td align="left" valign="top">
<div class="form-label">
Version Number
</div>
</td>
<td align="left" valign="top">
<div class="form-text">
<a href="<dtml-var getVersionPath>/manage_workspace"
target="_new"><dtml-var
getSourceVersionId></a>
</div>
</td>
</tr>
<tr>
<td align="left" valign="top">
</td>
<td align="left" valign="top">
<div class="form-element">
<input class="form-element" type="submit"
name="vcCheckOut:method"
value="Checkout" />
</div>
</td>
</tr>
<tr>
<td align="left" valign="top" nowrap>
<div class="form-label">
<br>
Update To...
</div>
</td>
<td align="left" valign="top">
<div class="form-element">
<br>
<select name="version_id">
<option value="latest"> latest version</option>
<dtml-in getAvailableVersionIds>
<option value="<dtml-var sequence-item html_quote>"><dtml-var
sequence-item>
</dtml-in>
</select>
</div>
</td>
</tr>
<tr>
<td align="left" valign="top">
</td>
<td align="left" valign="top">
<div class="form-element">
<input class="form-element" type="submit"
name="vcUpdateResource:method"
value="Update" />
</div>
</td>
</tr>
</dtml-if>
<dtml-if "getResourceStatus() == 'checked-out'">
<tr>
<td align="left" valign="top" nowrap>
<div class="form-label">
Current Status
</div>
</td>
<td align="left" valign="top">
<div class="form-text">
<font color="green">
Checked Out
</font>
</div>
</td>
</tr>
<tr>
<td align="left" valign="top">
<div class="form-label">
From Version
</div>
</td>
<td align="left" valign="top">
<div class="form-text">
<a href="<dtml-var getVersionPath>/manage_workspace"
target="_new"><dtml-var
getSourceVersionId></a>
</div>
</td>
</tr>
<tr>
<td align="left" valign="top">
<div class="form-label">
Message
</div>
</td>
<td align="left" valign="top">
<textarea name="message" rows="4" cols="40"></textarea>
</td>
</tr>
<tr>
<td align="left" valign="top">
</td>
<td align="left" valign="top">
<div class="form-element">
<input class="form-element" type="submit"
name="vcCheckIn:method"
value="Checkin" />
</div>
</td>
</tr>
<tr>
<td align="left" valign="top">
</td>
<td align="left" valign="top">
<div class="form-text">
<br>
To discard changes to this object and revert to the version that
was originally checked out, click the <em>UnCheckout</em> button.
</div>
<div class="form-element">
<input class="form-element" type="submit"
name="vcUnCheckOut:method"
value="UnCheckout" />
</div>
</td>
</tr>
</dtml-if>
</table>
</form>
</dtml-with>
<dtml-else>
<!-- The object is not under version control -->
<p class="form-text">
This object is <strong>not</strong> under version control. To place
this object under version control, select the versioning options you
want to use below.
</p>
<form action="vcVersionControl" method="post">
<table cellspacing="0" cellpadding="2" border="0">
<tr>
<td align="left" valign="top">
<div class="form-label">
Description
</div>
</td>
<td align="left" valign="top">
<textarea name="description" rows="6" cols="40"></textarea>
</td>
</tr>
<tr>
<td align="left" valign="top">
<div class="form-label">
Repository
</div>
</td>
<td align="left" valign="top">
<div class="form-element">
<select name="repository_id">
<dtml-in getRepositoryIds>
<option value="<dtml-var sequence-item html_quote>"><dtml-var
sequence-item>
</dtml-in>
</select>
</div>
</td>
</tr>
<tr>
<td align="left" valign="top">
<div class="form-label">
Versioning <br>Policy
</div>
</td>
<td align="left" valign="top">
<div class="form-element">
<input type="radio" name="use_auto" value="1"> Auto versioning
<br>
<input type="radio" name="use_auto" value="0" checked> Explicit versioning
</div>
</td>
</tr>
<tr>
<td align="left" valign="top">
</td>
<td align="left" valign="top">
<div class="form-element">
<input class="form-element" type="submit" name="submit"
value="Apply version control" />
</div>
</td>
</tr>
</table>
</form>
</dtml-if>
<dtml-var manage_page_footer>
=== Added File Packages/VersionControl/dtml/vcVersionControlForm.dtml ===
<dtml-var manage_page_header>
<dtml-with "_(management_view='Version Control')">
<dtml-var manage_tabs>
</dtml-with>
<dtml-if isUnderVersionControl>
<!-- object is already under version control -->
<p class="form-text">
<font color="red">
This object is already under version control!
</font>
</p>
<dtml-else>
<!-- The object is not under version control -->
<p class="form-text">
To place this object under version control, select the versioning
options you want to use below.
</p>
<form action="vcVersionControl" method="post">
<table cellspacing="0" cellpadding="2" border="0">
<tr>
<td align="left" valign="top">
<div class="form-optional">
Description
</div>
</td>
<td align="left" valign="top">
<textarea name="description" rows="6" cols="40"></textarea>
</td>
</tr>
<tr>
<td align="left" valign="top">
<div class="form-optional">
Repository
</div>
</td>
<td align="left" valign="top">
<div class="form-element">
<select name="repository_id">
<dtml-in getRepositoryIds>
<option value="<dtml-var sequence-item html_quote>"><dtml-var
sequence-item>
</dtml-in>
</select>
</div>
</td>
</tr>
<tr>
<td align="left" valign="top">
<div class="form-optional">
Versioning Policies
</div>
</td>
<td align="left" valign="top">
<div class="form-element">
<input type="radio" name="use_auto" value="1" checked> Auto-versioning
<br>
<input type="radio" name="use_auto" value="0"> Explicit commit
</div>
</td>
</tr>
<tr>
<td align="left" valign="top">
</td>
<td align="left" valign="top">
<div class="form-element">
<input class="form-element" type="submit" name="submit"
value="Apply version control" />
</div>
</td>
</tr>
</table>
</form>
</dtml-if>
<dtml-var manage_page_footer>