[ 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/content/ -> edit_draft.tpl (source)

   1  {* DO NOT EDIT THIS FILE! Use an override template instead. *}
   2  {let has_own_drafts=false()
   3       has_other_drafts=false()
   4       current_creator=fetch(user,current_user)}
   5  {section loop=$draft_versions}
   6      {section show=eq($item.creator_id,$current_creator.contentobject_id)}
   7          {set has_own_drafts=true()}
   8      {section-else}
   9          {set has_other_drafts=true()}
  10      {/section}
  11  {/section}
  12  <form method="post" action={concat('content/edit/',$object.id,'/',$edit_language,'/',$from_language)|ezurl}>
  13  
  14  <div class="objectheader">
  15  <h2>{$object.name|wash}</h2>
  16  </div>
  17  
  18  <div class="object">
  19  <p>
  20  {"The currently published version is %version and was published at %time."|i18n('design/standard/content/edit',,hash('%version',$object.current_version,'%time',$object.published|l10n(datetime) ))}
  21  </p>
  22  <p>
  23  {"The last modification was done at %modified."|i18n('design/standard/content/edit',,hash('%modified',$object.modified|l10n(datetime)))}
  24  </p>
  25  <p>
  26  {"The object is owned by %owner."|i18n('design/standard/content/edit',,hash('%owner',$object.owner.name))}
  27  </p>
  28  </div>
  29  
  30  {section show=and($has_own_drafts,$has_other_drafts)}
  31  <p>
  32     {"This object is already being edited by someone else including you.
  33      You can either continue editing one of your drafts or you can create a new draft."|i18n('design/standard/content/edit')}    
  34  </p>
  35  {section-else}
  36      {section show=$has_own_drafts}
  37      <p>
  38        {"This object is already being edited by you.
  39          You can either continue editing one of your drafts or you can create a new draft."|i18n('design/standard/content/edit')}        
  40      </p>
  41      {/section}
  42      {section show=$has_other_drafts}
  43      <p>
  44        {"This object is already being edited by someone else.
  45          You should either contact the person about the draft or create a new draft for personal editing."|i18n('design/standard/content/edit')}
  46      </p>
  47      {/section}
  48  {/section}
  49  
  50  <h2>{'Current drafts'|i18n('design/standard/content/edit')}</h2>
  51  
  52  <table class="list" width="100%" cellspacing="0" cellpadding="0">
  53  <tr>
  54      {section show=$has_own_drafts}
  55          <th>
  56              &nbsp;
  57          </th>
  58      {/section}
  59      <th>
  60          {'Version'|i18n('design/standard/content/edit')}
  61      </th>
  62      <th>
  63          {'Name'|i18n('design/standard/content/edit')}
  64      </th>
  65      <th>
  66          {'Owner'|i18n('design/standard/content/edit')}
  67      </th>
  68      <th>
  69          {'Created'|i18n('design/standard/content/edit')}
  70      </th>
  71      <th>
  72          {'Last modified'|i18n('design/standard/content/edit')}
  73      </th>
  74  </tr>
  75  {section name=Draft loop=$draft_versions sequence=array(bglight,bgdark)}
  76  <tr class="{$:sequence}">
  77      {section show=$has_own_drafts}
  78          <td width="1">
  79              {section show=eq($:item.creator_id,$current_creator.contentobject_id)}
  80                  <input type="radio" name="SelectedVersion" value="{$:item.version}"
  81                      {run-once}
  82                          checked="checked"
  83                      {/run-once}
  84                   />
  85              {/section}
  86          </td>
  87      {/section}
  88      <td width="1">
  89          {$:item.version}
  90      </td>
  91      <td>
  92          <a href={concat('content/versionview/',$object.id,'/',$:item.version)|ezurl}>{$:item.version_name|wash}</a>
  93      </td>
  94      <td>
  95          {content_view_gui view=text_linked content_object=$:item.creator}
  96      </td>
  97      <td>
  98          {$:item.created|l10n(shortdatetime)}
  99      </td>
 100      <td>
 101          {$:item.modified|l10n(shortdatetime)}
 102      </td>
 103  </tr>
 104  {/section}
 105  </table>
 106  
 107  {section show=and($has_own_drafts,$has_other_drafts)}
 108      <input class="defaultbutton" type="submit" name="EditButton" value="{'Edit'|i18n('design/standard/content/edit')}" />
 109      <input class="button" type="submit" name="NewDraftButton" value="{'New draft'|i18n('design/standard/content/edit')}" />
 110  {section-else}
 111      {section show=$has_own_drafts}
 112          <input class="defaultbutton" type="submit" name="EditButton" value="{'Edit'|i18n('design/standard/content/edit')}" />
 113          <input class="button" type="submit" name="NewDraftButton" value="{'New draft'|i18n('design/standard/content/edit')}" />
 114      {/section}
 115      {section show=$has_other_drafts}
 116          <input class="defaultbutton" type="submit" name="NewDraftButton" value="{'New draft'|i18n('design/standard/content/edit')}" />
 117      {/section}
 118  {/section}
 119  
 120  </form>
 121  {/let}


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