[Zope-CVS] CVS: Products/ZopeVersionControl/dtml - RepositoryAddForm.dtml:1.1 RepositoryManageMain.dtml:1.1 RepositoryProperties.dtml:1.1 VersionActivityLog.dtml:1.1 VersionHistoryActivityLog.dtml:1.1 VersionHistoryManageMain.dtml:1.1 VersionHistoryProperties.dtml:1.1 VersionManageMain.dtml:1.1 VersionProperties.dtml:1.1

Brian Lloyd brian@digicool.com
Fri, 19 Oct 2001 13:58:38 -0400


Update of /cvs-repository/Products/ZopeVersionControl/dtml
In directory cvs.zope.org:/tmp/cvs-serv27333/ZopeVersionControl/dtml

Added Files:
	RepositoryAddForm.dtml RepositoryManageMain.dtml 
	RepositoryProperties.dtml VersionActivityLog.dtml 
	VersionHistoryActivityLog.dtml VersionHistoryManageMain.dtml 
	VersionHistoryProperties.dtml VersionManageMain.dtml 
	VersionProperties.dtml 
Log Message:
initial commit of version control prototype code

=== Added File Products/ZopeVersionControl/dtml/RepositoryAddForm.dtml ===
<dtml-var manage_page_header>

<dtml-var "manage_form_title(this(), _,
           form_title='Add Repository',
           help_product='Versioning',
           help_topic='Repository-Add.stx'
	   )">

<p class="form-help">
A versioning repository provides a way to version resources.
</p>

<form action="addRepository" method="POST">
<table cellspacing="0" cellpadding="2" border="0">
  <tr>
    <td align="left" valign="top">
    <div class="form-label">
    Id
    </div>
    </td>
    <td align="left" valign="top">
    <input type="text" name="id" size="40" />
    </td>
  </tr>
  <tr>
    <td align="left" valign="top">
    <div class="form-optional">
    Title
    </div>
    </td>
    <td align="left" valign="top">
    <input type="text" name="title" size="40" />
    </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=" Add " /> 
    </div>
    </td>
  </tr>
</table>
</form>

<dtml-var manage_page_footer>


=== Added File Products/ZopeVersionControl/dtml/RepositoryManageMain.dtml ===
<dtml-var manage_page_header>
<dtml-with "_(management_view='Contents')">
<dtml-var manage_tabs>
</dtml-with>

<script type="text/javascript">
<!-- 

isSelected = false;

function toggleSelect() {
  if (isSelected == false) {
    for (i = 0; i < document.objectItems.length; i++)
      document.objectItems.elements[i].checked = true ;
      isSelected = true;
      document.objectItems.selectButton.value = "Deselect All";
      return isSelected;
  }
  else {
    for (i = 0; i < document.objectItems.length; i++)
      document.objectItems.elements[i].checked = false ;
      isSelected = false;
      document.objectItems.selectButton.value = "Select All";
      return isSelected;       
  }
}

//-->
</script>

<dtml-unless skey><dtml-call expr="REQUEST.set('skey', 'id')"></dtml-unless>
<dtml-unless rkey><dtml-call expr="REQUEST.set('rkey', '')"></dtml-unless>

<p class="form-text">
This is a repository object. Repositories contain revision histories
for version-controlled objects.
</p>

<form action="&dtml-URL1;/" name="objectItems" method="POST">
<dtml-if objectItems>
<table width="100%" cellspacing="0" cellpadding="2" border="0">
<tr class="list-header">
  <td width="5%" align="left" colspan="2">
  <div class="list-item">
  &nbsp;&nbsp;&nbsp;&nbsp;
  </div>
  </td>
  <td align="left">
  <div class="list-item">
  <strong>Version Histories</strong>
  </div>
  </td>
</tr>
<dtml-in getVersionHistories sort_expr="skey" reverse_expr="rkey">
<dtml-with meta>
<dtml-if sequence-odd>
<tr class="row-normal">
<dtml-else>
<tr class="row-hilite">
</dtml-if>
  <td align="left" valign="top" width="16">
  <input type="checkbox" name="ids:list" value="&dtml-getId;"/>
  </td>
  <td align="left" valign="top">
<dtml-if getItemIcon>
  <a href="&dtml.url_quote-getId;/manage_workspace">
  <img src="&dtml-BASEPATH1;/&dtml-getItemIcon;" 
   alt="&dtml-meta_type;" title="&dtml-meta_type;" border="0" /></a>
<dtml-else>
  <a href="&dtml.url_quote-getId;/manage_workspace">
  <img src="&dtml-BASEPATH1;/&dtml-icon;" alt="&dtml-meta_type;" 
   title="&dtml-meta_type;" border="0" /></a>
</dtml-if>
  </td>
  <td align="left" valign="top">
  <div class="list-item">
  <a href="&dtml.url_quote-getId;/manage_workspace">
  &dtml-getItemPath;
  </a>
  </div>
  </td>
</tr>
</dtml-with>
</dtml-in>
</table>

<dtml-else>
<table cellspacing="0" cellpadding="2" border="0">
<tr>
<td>
<div class="std-text">
This repository is currently empty.
<br /><br />
</div>
</td>
</tr>
</table>
</dtml-if>
</form>

<dtml-if update_menu>
<script type="text/javascript">
<!--
window.parent.update_menu();
//-->
</script>
</dtml-if>


<dtml-var manage_page_footer>


=== Added File Products/ZopeVersionControl/dtml/RepositoryProperties.dtml ===
<dtml-var manage_page_header>
<dtml-with "_(management_view='Properties')">
<dtml-var manage_tabs>
</dtml-with>

<form action="manage_edit" method="post">
<table cellspacing="0" cellpadding="2" border="0">
  <tr>
    <td align="left" valign="top">
    <div class="form-optional">
    Title
    </div>
    </td>
    <td align="left" valign="top">
    <input type="text" name="title" size="50" 
     value="<dtml-if title><dtml-var title html_quote></dtml-if>"/>
    </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="Save Changes" /> 
    </div>
    </td>
  </tr>
</table>
</form>

<dtml-var manage_page_footer>


=== Added File Products/ZopeVersionControl/dtml/VersionActivityLog.dtml ===
<dtml-var manage_page_header>
<dtml-with "_(management_view='Contents')">
<dtml-var manage_tabs>
</dtml-with>

<script type="text/javascript">
<!-- 

isSelected = false;

function toggleSelect() {
  if (isSelected == false) {
    for (i = 0; i < document.objectItems.length; i++)
      document.objectItems.elements[i].checked = true ;
      isSelected = true;
      document.objectItems.selectButton.value = "Deselect All";
      return isSelected;
  }
  else {
    for (i = 0; i < document.objectItems.length; i++)
      document.objectItems.elements[i].checked = false ;
      isSelected = false;
      document.objectItems.selectButton.value = "Select All";
      return isSelected;       
  }
}

//-->
</script>

<dtml-unless skey><dtml-call expr="REQUEST.set('skey', 'id')"></dtml-unless>
<dtml-unless rkey><dtml-call expr="REQUEST.set('rkey', '')"></dtml-unless>

<p class="form-text">
This is a log of the user actions on this version of the resource.
</p>

<form action="&dtml-URL1;/" name="objectItems" method="POST">
<table width="100%" cellspacing="0" cellpadding="2" border="0">
<tr class="list-header">
  <td width="5%" align="left">
  <div class="list-item">
  &nbsp;&nbsp;&nbsp;&nbsp;
  </div>
  </td>
  <td align="left">
  <div class="list-item">
  <strong>Activity Log</strong>
  </div>
  </td>
</tr>
<dtml-in getMessageEntries>
<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">
  <input type="checkbox" name="" value=""/>
  </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 Products/ZopeVersionControl/dtml/VersionHistoryActivityLog.dtml ===
<dtml-var manage_page_header>
<dtml-with "_(management_view='Contents')">
<dtml-var manage_tabs>
</dtml-with>

<script type="text/javascript">
<!-- 

isSelected = false;

function toggleSelect() {
  if (isSelected == false) {
    for (i = 0; i < document.objectItems.length; i++)
      document.objectItems.elements[i].checked = true ;
      isSelected = true;
      document.objectItems.selectButton.value = "Deselect All";
      return isSelected;
  }
  else {
    for (i = 0; i < document.objectItems.length; i++)
      document.objectItems.elements[i].checked = false ;
      isSelected = false;
      document.objectItems.selectButton.value = "Select All";
      return isSelected;       
  }
}

//-->
</script>

<dtml-unless skey><dtml-call expr="REQUEST.set('skey', 'id')"></dtml-unless>
<dtml-unless rkey><dtml-call expr="REQUEST.set('rkey', '')"></dtml-unless>

<p class="form-text">
This is a log of the user actions on all versions of this resource.
</p>

<form action="&dtml-URL1;/" name="objectItems" method="POST">
<table width="100%" cellspacing="0" cellpadding="2" border="0">
<tr class="list-header">
  <td width="5%" align="left">
  <div class="list-item">
  &nbsp;&nbsp;&nbsp;&nbsp;
  </div>
  </td>
  <td align="left">
  <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">
  <input type="checkbox" name="" value=""/>
  </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 Products/ZopeVersionControl/dtml/VersionHistoryManageMain.dtml ===
<dtml-var manage_page_header>
<dtml-with "_(management_view='Contents')">
<dtml-var manage_tabs>
</dtml-with>

<script type="text/javascript">
<!-- 

isSelected = false;

function toggleSelect() {
  if (isSelected == false) {
    for (i = 0; i < document.objectItems.length; i++)
      document.objectItems.elements[i].checked = true ;
      isSelected = true;
      document.objectItems.selectButton.value = "Deselect All";
      return isSelected;
  }
  else {
    for (i = 0; i < document.objectItems.length; i++)
      document.objectItems.elements[i].checked = false ;
      isSelected = false;
      document.objectItems.selectButton.value = "Select All";
      return isSelected;       
  }
}

//-->
</script>

<dtml-unless skey><dtml-call expr="REQUEST.set('skey', 'id')"></dtml-unless>
<dtml-unless rkey><dtml-call expr="REQUEST.set('rkey', '')"></dtml-unless>

<p class="form-text">
 A version history contains all the versions of a particular version 
 controlled resource. Click on a version below for more information on 
 that version.
</p>

<dtml-if getDescription>
<table width="100%" cellspacing="0" cellpadding="2" border="0">
<tr class="list-header">
  <td align="left" valign="top" width="16">
  <div class="list-item">
  &nbsp;&nbsp;&nbsp;&nbsp;
  </div>
  </td>
  <td align="left">
  <div class="list-item">
  <strong>Resource Description</strong>
  </div>
  </td>
</tr>
<tr class="row-hilite">
  <td align="left" valign="top" width="16">
  &nbsp;
  </td>
  <td align="left" valign="top">
  <div class="list-item">
  &dtml-getDescription;
  </div>
  </td>
</tr>
</table>
<br>
</dtml-if>

<table width="100%" cellspacing="0" cellpadding="2" border="0">
<tr class="list-header">
  <td align="left" valign="top" width="16">
  <div class="list-item">
  &nbsp;&nbsp;&nbsp;&nbsp;
  </div>
  </td>
  <td align="left">
  <div class="list-item">
  <strong>Resource Status</strong>
  </div>
  </td>
</tr>
<dtml-in getCheckoutRecords>
<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">
  <!--
  <input type="checkbox" name="ids:list" value="&dtml-getVersionId;"/>
  -->&nbsp;
  </td>
  <td align="left" valign="top">
  <div class="list-item">
  [<dtml-var getActivityId>] Version <dtml-var 
  getVersionId> is checked out by <dtml-var 
  getUserName> at <a href="&dtml-getTargetPath;/manage_workspace"
  target="_new"><dtml-var getTargetPath></a>
  </div>
  </td>
</tr>
</dtml-with>
<dtml-else>
<tr class="row-hilite">
  <td align="left" valign="top" width="16">
  &nbsp;
  </td>
  <td align="left" valign="top">
  <div class="list-item">
  No working copies of this resource are checked out.
  </div>
  </td>
</tr>
</dtml-in>
</table>


<form action="&dtml-URL1;/" name="VersionListing" method="POST">
<table width="100%" cellspacing="0" cellpadding="2" border="0">
<tr class="list-header">
  <td align="left" valign="top" width="20">
  <div class="list-item">
  &nbsp;
  </div>
  </td>
  <td align="left" valign="top" colspan="2">
  <div class="list-item">
  <strong>Resource Versions</strong>
  </div>
  </td>
</tr>
</table>

<table width="100%" cellspacing="0" cellpadding="2" border="0">
<dtml-if objectItems>
<dtml-in objectItems sort_expr="skey" reverse_expr="rkey">
<dtml-with sequence-item>
<dtml-with meta>
<dtml-if sequence-odd>
<tr class="row-normal">
<dtml-else>
<tr class="row-hilite">
</dtml-if>
  <td align="left" valign="top" width="16">
  <input type="checkbox" name="ids:list" value="&dtml-sequence-key;"/>
  </td>
  <td align="left" valign="top" width="16">
  <a href="&dtml.url_quote-sequence-key;/manage_workspace">
  <img src="&dtml-BASEPATH1;/&dtml-getItemIcon;" alt="&dtml-getItemType;" 
   title="&dtml-getItemType;" border="0" /></a>
  </td>
  <td align="left" valign="top">
  <div class="list-item">
  <a href="&dtml.url_quote-sequence-key;/manage_workspace">
  &dtml-getItemId; &dtml-sequence-key;
  </a>
  </div>
  </td>
</tr>
</dtml-with>
</dtml-with>
</dtml-in>
</table>

<dtml-else>
<table cellspacing="0" cellpadding="2" border="0">
<tr>
<td>
<div class="std-text">
This repository is currently empty.
<br /><br />
</div>
</td>
</tr>
</table>
</dtml-if>
</form>

<dtml-if update_menu>
<script type="text/javascript">
<!--
window.parent.update_menu();
//-->
</script>
</dtml-if>


<dtml-var manage_page_footer>


=== Added File Products/ZopeVersionControl/dtml/VersionHistoryProperties.dtml ===
<dtml-var manage_page_header>
<dtml-with "_(management_view='Properties')">
<dtml-var manage_tabs>
</dtml-with>

<form action="manage_edit" method="post">
<table cellspacing="0" cellpadding="2" border="0">
  <tr>
    <td align="left" valign="top">
    <div class="form-optional">
    Title
    </div>
    </td>
    <td align="left" valign="top">
    <input type="text" name="title" size="50" 
     value="<dtml-if title><dtml-var title html_quote></dtml-if>"/>
    </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="Save Changes" /> 
    </div>
    </td>
  </tr>
</table>
</form>

<dtml-var manage_page_footer>


=== Added File Products/ZopeVersionControl/dtml/VersionManageMain.dtml ===
<dtml-var manage_page_header>
<dtml-with "_(management_view='Information')">
<dtml-var manage_tabs>
</dtml-with>

<p class="form-text">
 A version contains a copy of a particular state of a version
 controlled resource.
</p>

<dtml-with meta>
<form action="&dtml-URL1;/" method="POST">
<table width="100%" cellspacing="0" cellpadding="2" border="0">
<tr class="list-header">
  <td width="5%" align="left" colspan="2">
  <div class="list-item">
  &nbsp;&nbsp;&nbsp;&nbsp;
  </div>
  </td>
  <td align="left">
  <div class="list-item">
  <strong>Version Data</strong>
  </div>
  </td>
</tr>
<tr class="row-hilite">
  <td align="left" valign="top" width="16">
  <input type="checkbox" name="ids:list" value="&dtml-getId;"/>
  </td>
  <td align="left" valign="top">
  <dtml-if getItemIcon>
  <a href="data/manage_workspace">
  <img src="&dtml-BASEPATH1;/&dtml-getItemIcon;" alt="&dtml-getItemType;" 
   title="&dtml-getItemType;" border="0" /></a>
  <dtml-else>
  &nbsp;
  </dtml-if>
  </td>
  <td align="left" valign="top">
  <div class="list-item">
  <a href="data/manage_workspace">
  &dtml-getItemId;
  </a>
  </div>
  </td>
</tr>
</table>
</form>
</dtml-with>

<dtml-var manage_page_footer>


=== Added File Products/ZopeVersionControl/dtml/VersionProperties.dtml ===
<dtml-var manage_page_header>
<dtml-with "_(management_view='Properties')">
<dtml-var manage_tabs>
</dtml-with>

<form action="manage_edit" method="post">
<table cellspacing="0" cellpadding="2" border="0">
  <tr>
    <td align="left" valign="top">
    <div class="form-optional">
    Title
    </div>
    </td>
    <td align="left" valign="top">
    <input type="text" name="title" size="50" 
     value="<dtml-if title><dtml-var title html_quote></dtml-if>"/>
    </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="Save Changes" /> 
    </div>
    </td>
  </tr>
</table>
</form>

<dtml-var manage_page_footer>