[CMF-checkins] CVS: CMF/CMFDefault/skins/content - content_hide_form.dtml:1.1 content_show_form.dtml:1.1

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


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

Added Files:
	content_hide_form.dtml content_show_form.dtml 
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/content/content_hide_form.dtml ===
<dtml-var standard_html_header>

<dtml-let member="portal_membership.getAuthenticatedMember()"
  review_state="portal_workflow.getInfoFor(this(), 'review_state')"
  review_history="portal_workflow.getInfoFor(this(), 'review_history')">

<div class="Desktop">

<h1> Hide Item </h1>

<dtml-if message>
 <h2 class="DesktopTitle">&dtml-message;</h2>
</dtml-if>

<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">
 <table class="FormLayout">
  <tr>
   <td valign=top align=left>
    <strong>Status</strong>
   </td>
   <td valign=top align=left>
     This item is currently in <b>&dtml-review_state;</b> status.
     <input type="hidden" name="workflow_action" value="hide">
   </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></td>
   <td><input type="submit" value=" Hide this Item "></td>
  </tr>
 </table>
</form>

<dtml-if review_history>
 <p><strong>Reviewing history</strong><br>
 <dtml-in review_history mapping reverse>
  <dtml-var time fmt="aCommon"> &dtml-action;
  <dtml-if effective_date>
  (effective: <dtml-var effective_date fmt="aCommon">)
  </dtml-if>
  by &dtml-actor;<br>
  <dtml-if "_['sequence-item']['comments']">
   </p><dtml-var "_['sequence-item']['comments']" fmt="structured-text"><p>
  </dtml-if>
 </dtml-in>
 </p>
</dtml-if>

</dtml-let>

</div>

<dtml-var standard_html_footer>


=== Added File CMF/CMFDefault/skins/content/content_show_form.dtml ===
<dtml-var standard_html_header>

<dtml-let member="portal_membership.getAuthenticatedMember()"
  review_state="portal_workflow.getInfoFor(this(), 'review_state')"
  review_history="portal_workflow.getInfoFor(this(), 'review_history')">

<div class="Desktop">

<h1> Make Item Visible </h1>

<dtml-if message>
 <h2 class="DesktopTitle">&dtml-message;</h2>
</dtml-if>

<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">
 <table class="FormLayout">
  <tr>
   <td valign=top align=left>
    <strong>Status</strong>
   </td>
   <td valign=top align=left>
     This item is currently in <b>&dtml-review_state;</b> status.
     <input type="hidden" name="workflow_action" value="show">
   </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></td>
   <td><input type="submit" value=" Make this Item Visible "></td>
  </tr>
 </table>
</form>

<dtml-if review_history>
 <p><strong>Reviewing history</strong><br>
 <dtml-in review_history mapping reverse>
  <dtml-var time fmt="aCommon"> &dtml-action;
  <dtml-if effective_date>
  (effective: <dtml-var effective_date fmt="aCommon">)
  </dtml-if>
  by &dtml-actor;<br>
  <dtml-if "_['sequence-item']['comments']">
   </p><dtml-var "_['sequence-item']['comments']" fmt="structured-text"><p>
  </dtml-if>
 </dtml-in>
 </p>
</dtml-if>

</dtml-let>

</div>

<dtml-var standard_html_footer>