[CMF-checkins] CVS: CMF/CMFDefault/skins/zpt_content - content_hide_form.pt:1.1 content_show_form.pt:1.1

Florent Guillaume fg@nuxeo.com
Thu, 4 Jul 2002 08:00:12 -0400


Update of /cvs-repository/CMF/CMFDefault/skins/zpt_content
In directory cvs.zope.org:/tmp/cvs-serv26414/CMFDefault/skins/zpt_content

Added Files:
	content_hide_form.pt content_show_form.pt 
Log Message:
Provided all default skins (content_hide_form, content_show_form) for
the DCWorkflow default workflow [rev 2].

Note that, when using this workflow, the descriptions in the retract and
reject forms are slightly incorrect as they mention the "private" state
but in fact go to the "visible" state.


=== Added File CMF/CMFDefault/skins/zpt_content/content_hide_form.pt ===
<html xmlns:tal="http://xml.zope.org/namespaces/tal"
      xmlns:metal="http://xml.zope.org/namespaces/metal"
      metal:use-macro="here/main_template/macros/master">
<body>
<div metal:fill-slot="main">
<div class="Desktop"
     tal:define="review_state python: here.portal_workflow.getInfoFor(here, 'review_state');
	 review_history python: here.portal_workflow.getInfoFor(here, 'review_history')">


<h1> Hide <span tal:replace="here/getId">Me</span> </h1>

<p>Use this form to hide a content item by setting its
   status to <b>Private</b>, thereby making it unavailable to
   other portal members and visitors.</p>


<form method="post" action="content_status_modify"
      tal:attributes="action string:${here/absolute_url}/content_status_modify"
>
  <input type="hidden" name="workflow_action" value="hide">
  <table class="FormLayout">
    <tr>
     <td valign=top align=left>
      <strong>Status</strong>
     </td>
     <td valign=top align=left>
       This item is currently in <b><span tal:replace="review_state">Private</span></b> status.
	 </td>
   </tr>
   <tr>
     <td valign=top align=left colspan=2>
      <strong><em>Comments</em></strong><br>
      <textarea name="comment" cols="60" rows="5" wrap="soft"
                style="width: 100%"></textarea>
     </td>
   </tr>
   <tr>
    <td colspan="2"><input type="submit" value=" Hide this Item "></td>
   </tr>
  </table>
</form>
<div tal:condition="review_history|nothing">
      <p><strong>Reviewing history</strong>
	  <br>
    <div tal:repeat="items python: here.reverseList(review_history)">
	<span tal:replace="python: items['time'].aCommon()" />
	<span tal:replace="items/action" />
  <span tal:condition="items/effective_date|nothing">
  (effective: <span tal:replace="python: items['effective_date'].aCommon()"></span>)
  </span>
  
  by <span tal:replace="items/actor">Actor</span><br>
   <div tal:define="rhComments items/comments"
		 tal:replace="rhComments">Comments</div>
 </div>
 </div>
</div>
</div>
</body>
</html>


=== Added File CMF/CMFDefault/skins/zpt_content/content_show_form.pt ===
<html xmlns:tal="http://xml.zope.org/namespaces/tal"
      xmlns:metal="http://xml.zope.org/namespaces/metal"
      metal:use-macro="here/main_template/macros/master">
<body>
<div metal:fill-slot="main">
<div class="Desktop"
     tal:define="review_state python: here.portal_workflow.getInfoFor(here, 'review_state');
	 review_history python: here.portal_workflow.getInfoFor(here, 'review_history')">


<h1> Make Visible <span tal:replace="here/getId">Item</span></h1>

<p>A <b>Visible</b> item is available other portal members and visitors,
   however it won't show up in the list of published items.  </p>

<p>Another way to control the visibility of an item is with its <b>effective
   date</b>.  An item is not publicly available before its effective date,
   <em>even if its status is <b>published</b></em>.</p>


<form method="post" action="content_status_modify"
      tal:attributes="action string:${here/absolute_url}/content_status_modify"
>
  <input type="hidden" name="workflow_action" value="show">
  <table class="FormLayout">
    <tr>
     <td valign=top align=left>
       <strong>Status</strong>
     </td>
     <td valign=top align=left>
       This item is currently in <b><span tal:replace="review_state">Private</span></b> status.
     </td>
   </tr>
   <tr>
     <td valign=top align=left colspan=2>
      <strong><em>Comments</em></strong><br>
      <textarea name="comment" cols="60" rows="5" wrap="soft"
                style="width: 100%"></textarea>
     </td>
   </tr>
   <tr>
     <td colspan="2"><input type="submit" value=" Make this Item Visible "></td>
   </tr>
  </table>
</form>

<div tal:condition="review_history">
      <p><strong>Reviewing history</strong>
	  <br>
    <div tal:repeat="items python: here.reverseList(review_history)">
	<span tal:replace="python: items['time'].aCommon()" />
	<span tal:replace="items/action" />
  <span tal:condition="items/effective_date|nothing">
  (effective: <span tal:replace="python: items['effective_date'].aCommon()"></span>)
  </span>
  
  by <span tal:replace="items/actor">Actor</span><br>
   <div tal:define="rhComments items/comments"
		 tal:replace="rhComments">Comments</div>
 </div>
 </div>
</div>
</div>
</body>
</html>