[ 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/datatype/edit/ -> ezimage.tpl (source)

   1  {* DO NOT EDIT THIS FILE! Use an override template instead. *}
   2  {default attribute_base='ContentObjectAttribute'}
   3  {let attribute_content=$attribute.content}
   4  
   5  {* Current image. *}
   6  <div class="block">
   7  <label>{'Current image'|i18n( 'design/standard/content/datatype' )}:</label>
   8  {section show=$attribute_content.original.is_valid}
   9  
  10  <table class="list" cellspacing="0">
  11  <tr>
  12      <th class="tight">{'Preview'|i18n( 'design/standard/content/datatype' )}</th>
  13      <th>{'Filename'|i18n( 'design/standard/content/datatype' )}</th>
  14      <th>{'MIME type'|i18n( 'design/standard/content/datatype' )}</th>
  15      <th>{'Size'|i18n( 'design/standard/content/datatype' )}</th>
  16  </tr>
  17  <tr>
  18      <td>{attribute_view_gui image_class=ezini( 'ImageSettings', 'DefaultEditAlias', 'content.ini' ) attribute=$attribute}</td>
  19      <td>{$attribute.content.original.original_filename|wash( xhtml )}</td>
  20      <td>{$attribute.content.original.mime_type|wash( xhtml )}</td>
  21      <td>{$attribute.content.original.filesize|si( byte )}</td>
  22  </tr>
  23  </table>
  24  {section-else}
  25  <p>{'There is no image file.'|i18n( 'design/standard/content/datatype' )}</p>
  26  {/section}
  27  
  28  {section show=$attribute_content.original.is_valid}
  29  <input class="button" type="submit" name="CustomActionButton[{$attribute.id}_delete_image]" value="{'Remove image'|i18n( 'design/standard/content/datatype' )}" />
  30  {section-else}
  31  <input class="button-disabled" type="submit" name="CustomActionButton[{$attribute.id}_delete_image]" value="{'Remove image'|i18n( 'design/standard/content/datatype' )}" disabled="disabled" />
  32  {/section}
  33  </div>
  34  
  35  {* New image file for upload. *}
  36  <div class="block">
  37      <input type="hidden" name="MAX_FILE_SIZE" value="{$attribute.contentclass_attribute.data_int1|mul( 1024, 1024 )}" />
  38      <label>{'New image file for upload'|i18n( 'design/standard/content/datatype' )}:</label>
  39      <input id="ezcoa-{if ne( $attribute_base, 'ContentObjectAttribute' )}{$attribute_base}-{/if}{$attribute.contentclassattribute_id}_{$attribute.contentclass_attribute_identifier}_file" class="box ezcc-{$attribute.object.content_class.identifier} ezcca-{$attribute.object.content_class.identifier}_{$attribute.contentclass_attribute_identifier}" name="{$attribute_base}_data_imagename_{$attribute.id}" type="file" />
  40  </div>
  41  
  42  {* Alternative image text. *}
  43  <div class="block">
  44      <label>{'Alternative image text'|i18n( 'design/standard/content/datatype' )}:</label>
  45      <input id="ezcoa-{if ne( $attribute_base, 'ContentObjectAttribute' )}{$attribute_base}-{/if}{$attribute.contentclassattribute_id}_{$attribute.contentclass_attribute_identifier}_alttext" class="box ezcc-{$attribute.object.content_class.identifier} ezcca-{$attribute.object.content_class.identifier}_{$attribute.contentclass_attribute_identifier}" name="{$attribute_base}_data_imagealttext_{$attribute.id}" type="text" value="{$attribute_content.alternative_text|wash(xhtml)}" />
  46  </div>
  47  
  48  {/let}
  49  {/default}
  50  
  51  


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