[ Index ]
 

Code source de eZ Publish 3.9.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/design/standard/templates/collaboration/handlers/view/full/ -> ezapprove.tpl (source)

   1  {* DO NOT EDIT THIS FILE! Use an override template instead. *}
   2  <form method="post" action={"collaboration/action/"|ezurl}>
   3  
   4  {let message_limit=2
   5       message_offset=0
   6       content_version=fetch("content","version",hash("object_id",$collab_item.content.content_object_id,"version_id",$collab_item.content.content_object_version))
   7       current_participant=fetch("collaboration","participant",hash("item_id",$collab_item.id))
   8       participant_list=fetch("collaboration","participant_map",hash("item_id",$collab_item.id))
   9       message_list=fetch("collaboration","message_list",hash("item_id",$collab_item.id,"limit",$message_limit,"offset",$message_offset))}
  10  
  11  {section show=$content_version|null()|not()}
  12    {set-block variable=contentobject_link}
  13      {content_version_view_gui view=text_linked content_version=$content_version}
  14    {/set-block}
  15  {/section}
  16  
  17  <table cellspacing="4" cellpadding="4" border="0">
  18  <tr>
  19    <td rowspan="2" valign="top">
  20  
  21  <div class="objectheader">
  22  <h2>{"Approval"|i18n('design/standard/collaboration/approval')}</h2>
  23  </div>
  24  
  25  <div class="object">
  26  
  27  {switch match=$collab_item.data_int3}
  28  {case match=0}
  29  
  30  {section show=$collab_item.is_creator}
  31  <p>{"The content object %1 awaits approval before it can be published."|i18n('design/standard/collaboration/approval',,array($contentobject_link))}</p>
  32  <p>{"If you wish you may send a message to the person approving it?"|i18n('design/standard/collaboration/approval')}</p>
  33  {section-else}
  34  <p>{"The content object %1 needs your approval before it can be published."|i18n('design/standard/collaboration/approval',,array($contentobject_link))}</p>
  35  <p>{"Do you approve of the content object being published?"|i18n('design/standard/collaboration/approval')}</p>
  36  {/section}
  37  
  38  {/case}
  39  {case match=1}
  40    <p>{"The content object %1 was approved and will be published once the publishing workflow continues."|i18n('design/standard/collaboration/approval',,array($contentobject_link))}</p>
  41  {/case}
  42  {case in=array(2,3)}
  43    {section show=$collab_item.is_creator}
  44      <p>{"The content object %1 was not accepted but is available as a draft again."|i18n('design/standard/collaboration/approval',,array($contentobject_link))}</p>
  45      {section show=$content_version|null()|not()}
  46        <p>{"You may re-edit the draft and publish it, in which case an approval is required again."|i18n('design/standard/collaboration/approval')}</p>
  47        <p><a href={concat("content/edit/",$content_version.contentobject_id)|ezurl}>{"Edit the object"|i18n('design/standard/collaboration/approval')}</a></p>
  48      {/section}
  49    {section-else}
  50      <p>{"The content object %1 was not accepted but will be available as a draft for the author."|i18n('design/standard/collaboration/approval',,array($contentobject_link))}</p>
  51      <p>{"The author can re-edit the draft and publish it again, in which a new approval item is made."|i18n('design/standard/collaboration/approval')}</p>
  52    {/section}
  53  {/case}
  54  {case/}
  55  {/switch}
  56  
  57  <input type="hidden" name="CollaborationActionCustom" value="custom" />
  58  <input type="hidden" name="CollaborationTypeIdentifier" value="ezapprove" />
  59  
  60  <input type="hidden" name="CollaborationItemID" value="{$collab_item.id}" />
  61  
  62  <br/>
  63  
  64  {section show=eq($collab_item.data_int3,0)}
  65  <label>{"Comment"|i18n('design/standard/collaboration/approval')}</label><div class="break"/>
  66  <textarea name="Collaboration_ApproveComment" cols="40" rows="5"></textarea>
  67  
  68  <div class="buttonblock">
  69  <input type="submit" name="CollaborationAction_Comment" value="{'Add Comment'|i18n('design/standard/collaboration/approval')}" />
  70  
  71  &nbsp;
  72  
  73  {section show=$collab_item.is_creator|not}
  74  <input type="submit" name="CollaborationAction_Accept" value="{'Approve'|i18n('design/standard/collaboration/approval')}" />
  75  <input type="submit" name="CollaborationAction_Deny" value="{'Deny'|i18n('design/standard/collaboration/approval')}" />
  76  {/section}
  77  </div>
  78  {/section}
  79  
  80  </div>
  81  
  82    </td>
  83  
  84    <td rowspan="2" valign="top">
  85  
  86  {section show=$content_version|null()|not()}
  87    {content_version_view_gui view=plain content_version=$content_version}
  88  {/section}
  89  
  90    </td>
  91  
  92    <td rowspan="2" valign="top">
  93  
  94  <div class="objectheader">
  95     <h2>{"Participants"|i18n('design/standard/collaboration/approval')}</h2>
  96  </div>
  97  
  98  <div class="object">
  99     {section name=Role loop=$participant_list sequence=array(bglight,bgdark)}
 100     <label>{$:item.name|wash}</label>
 101     <table cellspacing="0" cellpadding="0" border="0">
 102     {section name=Participant loop=$:item.items sequence=array(bglight,bgdark)}
 103     <tr>
 104       <td>
 105       {collaboration_participation_view view=text_linked collaboration_participant=$:item}
 106       </td>
 107     </tr>
 108     {/section}
 109     </table>
 110     {delimiter}<br/>{/delimiter}
 111     {/section}
 112  </div>
 113  
 114    </td>
 115  
 116  </tr>
 117  </table>
 118  
 119  {section show=$message_list}
 120  
 121    <h1 id="messages">{"Messages"|i18n('design/standard/collaboration/approval')}</h1>
 122    <table width="100%" cellspacing="0" cellpadding="4" border="0">
 123    {section name=Message loop=$message_list sequence=array(bglight,bgdark)}
 124  
 125        {collaboration_simple_message_view view=element sequence=$:sequence is_read=$current_participant.last_read|gt($:item.modified) item_link=$:item collaboration_message=$:item.simple_message}
 126  
 127    {/section}
 128    </table>
 129  
 130  {/section}
 131  
 132  {/let}
 133  
 134  </form>


Généré le : Sat Feb 24 10:30:04 2007 par Balluche grâce à PHPXref 0.7