[ Index ] |
|
Code source de eZ Publish 3.9.0 |
1 {* DO NOT EDIT THIS FILE! Use an override template instead. *} 2 3 <form action={'content/action'|ezurl} method="post"> 4 5 {def $languages=fetch('content', 'prioritized_languages') 6 $classes=fetch( 'content', 'can_instantiate_class_list', hash( 'parent_node', $node_id ) ) 7 $class=false() 8 $can_create=false()} 9 10 {foreach $classes as $tmp_class} 11 {if $tmp_class.id|eq($class_id)} 12 {set $class=$tmp_class} 13 {break} 14 {/if} 15 {/foreach} 16 17 {if or($class|not,$class.can_instantiate_languages|not)} 18 19 <p>{'You do not have permissions to create an object of the requested class in any language.'}</p> 20 21 {else} 22 23 {set $can_create=true()} 24 {def $language_codes=$class.can_instantiate_languages} 25 26 <fieldset> 27 <legend>{'Existing languages'|i18n('design/standard/content/create_languages')}</legend> 28 <p>{'Select the language in which you want to create an object'|i18n('design/standard/content/create_languages')}:</p> 29 30 {foreach $languages as $language} 31 {if $language_codes|contains($language.locale)} 32 <label> 33 <input name="ContentLanguageCode" type="radio" value="{$language.locale}"{run-once} checked="checked"{/run-once} /> {$language.name|wash} 34 </label> 35 <div class="labelbreak"></div> 36 {/if} 37 {/foreach} 38 39 </fieldset> 40 41 {/if} 42 43 <input type="hidden" name="NodeID" value="{$node_id|wash}" /> 44 <input type="hidden" name="ClassID" value="{$class_id|wash}" /> 45 {if $assignment_remote_id} 46 <input type="hidden" name="AssignmentRemoteID" value="{$assignment_remote_id|wash}" /> 47 {/if} 48 {if $redirect_uri_after_publish} 49 <input type="hidden" name="RedirectURIAfterPublish" value="{$redirect_uri_after_publish|wash}" /> 50 {/if} 51 <input type="hidden" name="CancelURI" value="content/view/full/{$node_id|wash}" /> 52 53 <div class="block"> 54 {if $can_create} 55 <input class="button" type="submit" name="NewButton" value="{'Create'|i18n('design/standard/content/create_languages')}" /> 56 {/if} 57 <input class="button" type="submit" name="CancelButton" value="{'Cancel'|i18n('design/standard/content/create_languages')}" /> 58 </div> 59 60 </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 |