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

   1  {* DO NOT EDIT THIS FILE! Use an override template instead. *}
   2  {let option_id=cond( is_set( $#collection_attributes[$attribute.id]), $#collection_attributes[$attribute.id].data_int, false() )}
   3  <div class="block">
   4  <label>{$attribute.content.name}:</label>
   5  {section show=$attribute.content.option_list}
   6  
   7  {section show=$attribute.content.option_list|count|lt( 6 )}
   8  
   9  {section var=Options loop=$attribute.content.option_list}
  10  <label>
  11  <input type="radio" name="ContentObjectAttribute_data_option_value_{$attribute.id}" value="{$Options.item.id}" {section show=$Options.item.id|eq( $option_id )}checked="checked"{/section} />
  12  {$Options.item.value}
  13  </label>
  14  {/section}
  15  
  16  {section-else}
  17  <select name="ContentObjectAttribute_data_option_value_{$attribute.id}">
  18  {section var=Options loop=$attribute.content.option_list}
  19  <option value="{$Options.item.id}" {section show=$Options.item.id|eq( $option_id )}selected="selected"{/section}>{$Options.item.value}</option>
  20  {/section}
  21  </select>
  22  {/section}
  23  
  24  {section-else}
  25  {'There are no options.'|i18n( 'design/standard/content/datatype' )}
  26  {/section}
  27  {/let}
  28  </div>


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