[ Index ] |
|
Code source de eZ Publish 3.9.0 |
1 {def $languages=fetch('content', 'prioritized_languages') 2 $classes=fetch( 'content', 'can_instantiate_class_list', hash( 'parent_node', $node_id ) ) 3 $class=false() 4 $can_create=false()} 5 6 {foreach $classes as $tmp_class} 7 {if $tmp_class.id|eq($class_id)} 8 {set $class=$tmp_class} 9 {break} 10 {/if} 11 {/foreach} 12 13 <form name="CreateLanguages" action={'content/action'|ezurl} method="post"> 14 15 <div class="context-block"> 16 17 {* DESIGN: Header START *}<div class="box-header"><div class="box-tc"><div class="box-ml"><div class="box-mr"><div class="box-tl"><div class="box-tr"> 18 19 <h1 class="context-title">{'Language selection'|i18n( 'design/admin/content/create_languages' )}</h1> 20 21 {* DESIGN: Mainline *}<div class="header-mainline"></div> 22 23 {* DESIGN: Header END *}</div></div></div></div></div></div> 24 25 {* DESIGN: Content START *}<div class="box-ml"><div class="box-mr"><div class="box-content"> 26 27 <div class="block"> 28 29 {if or($class|not,$class.can_instantiate_languages|not)} 30 31 <p>{'You do not have permissions to create an object of the requested class in any language.'|i18n( 'design/admin/content/create_languages' )}</p> 32 33 {else} 34 35 {set $can_create=true()} 36 {def $language_codes=$class.can_instantiate_languages} 37 38 <p>{'Select the language in which you want to create the object'|i18n( 'design/admin/content/create_languages' )}:</p> 39 40 {foreach $languages as $language} 41 {if $language_codes|contains($language.locale)} 42 <label> 43 <input name="ContentLanguageCode" type="radio" value="{$language.locale}"{run-once} checked="checked"{/run-once} /> {$language.name|wash} 44 </label> 45 <div class="labelbreak"></div> 46 {/if} 47 {/foreach} 48 49 {/if} 50 51 <input type="hidden" name="NodeID" value="{$node_id|wash}" /> 52 <input type="hidden" name="ClassID" value="{$class_id|wash}" /> 53 54 {if $assignment_remote_id} 55 <input type="hidden" name="AssignmentRemoteID" value="{$assignment_remote_id|wash}" /> 56 {/if} 57 {if $redirect_uri_after_publish} 58 <input type="hidden" name="RedirectURIAfterPublish" value="{$redirect_uri_after_publish|wash}" /> 59 {/if} 60 61 <input type="hidden" name="CancelURI" value="content/view/full/{$node_id|wash}" /> 62 63 </div> 64 65 {* DESIGN: Content END *}</div></div></div> 66 67 <div class="controlbar"> 68 69 {* DESIGN: Control bar START *}<div class="box-bc"><div class="box-ml"><div class="box-mr"><div class="box-tc"><div class="box-bl"><div class="box-br"> 70 71 <div class="block"> 72 {if $can_create} 73 <input class="button" type="submit" name="NewButton" value="{'OK'|i18n('design/admin/content/create_languages')}" /> 74 <input class="button" type="submit" name="CancelButton" value="{'Cancel'|i18n('design/admin/content/create_languages')}" /> 75 {else} 76 <input class="button" type="submit" name="CancelButton" value="{'OK'|i18n('design/admin/content/create_languages')}" /> 77 {/if} 78 </div> 79 80 {* DESIGN: Control bar END *}</div></div></div></div></div></div> 81 82 </div> 83 84 </div> 85 86 </form>
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 |