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

   1  {* DO NOT EDIT THIS FILE! Use an override template instead. *}
   2  {let page_limit=30
   3       list_count=fetch('content','version_count', hash(contentobject, $object))}
   4  
   5  <form action={concat("/content/versions/",$object.id,"/")|ezurl} method="post">
   6  
   7  <div class="maincontentheader">
   8  <h1>{"Versions for: %1"|i18n("design/standard/content/version",,array($object.name|wash))}</h1>
   9  </div>
  10  
  11  {switch match=$edit_warning}
  12  {case match=1}
  13  <div class="warning">
  14  <h2>{"Version not a draft"|i18n("design/standard/content/version")}</h2>
  15  <ul>
  16      <li>{"Version %1 is not available for editing any more, only drafts can be edited."|i18n("design/standard/content/version",,array($edit_version))}</li>
  17      <li>{"To edit this version create a copy of it."|i18n("design/standard/content/version")}</li>
  18  </ul>
  19  </div>
  20  {/case}
  21  {case match=2}
  22  <div class="warning">
  23  <h2>{"Version not yours"|i18n("design/standard/content/version")}</h2>
  24  <ul>
  25      <li>{"Version %1 was not created by you, only your own drafts can be edited."|i18n("design/standard/content/version",,array($edit_version))}</li>
  26      <li>{"To edit this version create a copy of it."|i18n("design/standard/content/version")}</li>
  27  </ul>
  28  </div>
  29  {/case}
  30  {case match=3}
  31  <div class="warning">
  32  <h2>{"Unable to create new version"|i18n("design/standard/content/version")}</h2>
  33  <ul>
  34      <li>{"Version history limit has been exceeded and no archived version can be removed by the system."|i18n("design/standard/content/version")}</li>
  35      <li>{"You can change your version history settings in content.ini, remove draft versions or edit existing drafts."|i18n("design/standard/content/version")}</li>
  36  </ul>
  37  </div>
  38  {/case}
  39  {case}
  40  {/case}
  41  {/switch}
  42  
  43  {let version_list=fetch('content','version_list',hash(contentobject, $object,limit,$page_limit,offset,$view_parameters.offset))}
  44  
  45  <table class="list" width="100%" cellspacing="0" cellpadding="0" border="0">
  46  <tr>
  47      <th colspan="2">
  48      {"Version"|i18n("design/standard/content/version")}:
  49      </th>
  50      <th>
  51      {"Status"|i18n("design/standard/content/version")}:
  52      </th>
  53      <th>
  54      {"Translations"|i18n("design/standard/content/version")}:
  55      </th>
  56      <th>
  57      {"Creator"|i18n("design/standard/content/version")}:
  58      </th>
  59      {section show=$can_edit}
  60      <th colspan="2">
  61      {"Modified"|i18n("design/standard/content/version")}:
  62      </th>
  63      {/section}
  64  </tr>
  65  {section name=Version loop=$version_list sequence=array(bglight,bgdark)}
  66  <tr>
  67      <td class="{$Version:sequence}">
  68      {section show=and($Version:item.can_remove,or(eq($Version:item.status,0),eq($Version:item.status,3),eq($Version:item.status,4)))}
  69          <input type="checkbox" name="DeleteIDArray[]" value="{$Version:item.id}" />
  70      {/section}
  71      </td>
  72      <td class="{$Version:sequence}">
  73      <a href={concat("/content/versionview/",$object.id,"/",$Version:item.version,"/",$Version:item.initial_language.locale)|ezurl}>{$Version:item.version}</a>
  74          {section show=eq($Version:item.version,$object.current_version)}*{/section}
  75  
  76      </td>
  77      <td class="{$Version:sequence}">
  78      {$Version:item.status|choose("Draft","Published","Pending","Archived","Rejected")}
  79      </td>
  80      <td class="{$Version:sequence}">
  81      {section name=Language loop=$Version:item.language_list}
  82          {delimiter},{/delimiter}
  83      <a href={concat("/content/versionview/",$object.id,"/",$Version:item.version,"/",$Version:Language:item.language_code)|ezurl}>{$Version:Language:item.locale.intl_language_name}</a>{/section}
  84      </td>
  85      <td class="{$Version:sequence}">
  86      <a href={concat("/content/view/full/",$Version:item.creator.main_node_id,"/")|ezurl}>{$Version:item.creator.name|wash}</a>
  87      </td>
  88      <td class="{$Version:sequence}">
  89      <span class="small">{$Version:item.modified|l10n(shortdatetime)}</span>
  90      </td>
  91      {section show=$can_edit}
  92      <td class="{$Version:sequence}">
  93      <input type="radio" name="RevertToVersionID" value="{$Version:item.version}" {section show=eq($Version:item.version,$edit_version)}checked="checked"{/section} />
  94      </td>
  95      {/section}
  96  </tr>
  97  {/section}
  98  <tr>
  99          <td colspan="8">
 100          {include uri="design:gui/trash.tpl"}
 101          </td>
 102  </tr>
 103  </table>
 104  
 105  {include name=navigator
 106           uri='design:navigator/google.tpl'
 107           page_uri=concat('/content/versions/', $object.id, '///' )
 108           item_count=$list_count
 109           view_parameters=$view_parameters
 110           item_limit=$page_limit}
 111  
 112  {section show=$can_edit}
 113  <div class="buttonblock" align="right">
 114  <input class="button" type="submit" name="EditButton" value="{'Edit'|i18n('design/standard/content/version')}" />
 115  <input class="button" type="submit" name="CopyVersionButton" value="{'Copy and edit'|i18n('design/standard/content/version')}" />
 116  </div>
 117  {/section}
 118  
 119  </form>
 120  
 121  {/let}
 122  {/let}


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