[ Index ] |
|
Code source de eZ Publish 3.9.0 |
1 {* DO NOT EDIT THIS FILE! Use an override template instead. *} 2 {default attribute_base=ContentObjectAttribute} 3 {let class_content=$attribute.contentclass_attribute.content} 4 5 {switch match=$class_content.selection_type} 6 7 {* Browse. *} 8 {case match=0} 9 <div class="block"> 10 11 {section show=$attribute.content} 12 <table class="list" cellspacing="0"> 13 <tr> 14 <th>{'Name'|i18n( 'design/standard/content/datatype' )}</th> 15 <th>{'Type'|i18n( 'design/standard/content/datatype' )}</th> 16 <th>{'Section'|i18n( 'design/standard/content/datatype' )}</th> 17 </tr> 18 <tr> 19 <td>{$attribute.content.class_identifier|class_icon( small, $attribute.content.class_name )} {$attribute.content.name|wash}</td> 20 <td>{$attribute.content.class_name|wash}</td> 21 <td>{fetch( section, object, hash( section_id, $attribute.content.section_id ) ).name|wash}</td> 22 </tr> 23 </table> 24 {section-else} 25 <p>{'No relation'|i18n( 'design/standard/content/datatype' )}</p> 26 {/section} 27 28 {section show=$attribute.content} 29 <input class="button" type="submit" name="CustomActionButton[{$attribute.id}_remove_object]" value="{'Remove object'|i18n( 'design/standard/content/datatype' )}" /> 30 <input class="button" type="submit" name="CustomActionButton[{$attribute.id}_browse_object]" value="{'Add object'|i18n( 'design/standard/content/datatype' )}" /> 31 {section-else} 32 <input class="button-disabled" type="submit" name="CustomActionButton[{$attribute.id}_remove_object]" value="{'Remove object'|i18n( 'design/standard/content/datatype' )}" disabled="disabled" /> 33 <input class="button" type="submit" name="CustomActionButton[{$attribute.id}_browse_object]" value="{'Add object'|i18n( 'design/standard/content/datatype' )}" /> 34 {/section} 35 36 <input type="hidden" name="{$attribute_base}_data_object_relation_id_{$attribute.id}" value="{$attribute.data_int}" /> 37 38 </div> 39 {/case} 40 41 42 43 44 {* Dropdown list. *} 45 {case match=1} 46 {let parent_node=fetch( content, node, hash( node_id, $class_content.default_selection_node ) )} 47 48 <select id="ezcoa-{if ne( $attribute_base, 'ContentObjectAttribute' )}{$attribute_base}-{/if}{$attribute.contentclassattribute_id}_{$attribute.contentclass_attribute_identifier}" class="ezcc-{$attribute.object.content_class.identifier} ezcca-{$attribute.object.content_class.identifier}_{$attribute.contentclass_attribute_identifier}" name="{$attribute_base}_data_object_relation_id_{$attribute.id}"> 49 {section show=$attribute.contentclass_attribute.is_required|not} 50 <option value="" {section show=eq( $attribute.data_int, '' )}selected="selected"{/section}>{'No relation'|i18n( 'design/standard/content/datatype' )}</option> 51 {/section} 52 {section var=Nodes loop=fetch( content, list, hash( parent_node_id, $parent_node.node_id, sort_by, $parent_node.sort_array ) )} 53 <option value="{$Nodes.item.contentobject_id}" {section show=eq( $attribute.data_int, $Nodes.item.contentobject_id )}selected="selected"{/section}>{$Nodes.item.name|wash}</option> 54 {/section} 55 </select> 56 57 {section show=$class_content.fuzzy_match} 58 <input id="ezcoa-{if ne( $attribute_base, 'ContentObjectAttribute' )}{$attribute_base}-{/if}{$attribute.contentclassattribute_id}_{$attribute.contentclass_attribute_identifier}_fuzzy_match" class="ezcc-{$attribute.object.content_class.identifier} ezcca-{$attribute.object.content_class.identifier}_{$attribute.contentclass_attribute_identifier}" type="text" name="{$attribute_base}_data_object_relation_fuzzy_match_{$attribute.id}" value="" /> 59 {/section} 60 61 {/let} 62 {/case} 63 64 65 {* Dropdown tree. Not implemented yet, thus unavailable from class edit mode. *} 66 {case match=2} 67 {/case} 68 69 {case/} 70 71 {/switch} 72 73 {/let} 74 {/default}
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sat Feb 24 10:30:04 2007 | par Balluche grâce à PHPXref 0.7 |