[ Index ] |
|
Code source de eZ Publish 3.9.0 |
1 {* DO NOT EDIT THIS FILE! Use an override template instead. *} 2 3 {def $languages=fetch('content', 'prioritized_languages') 4 $object_language_codes=$object.language_codes 5 $can_edit=true()} 6 7 <form action={concat('content/edit/',$object.id)|ezurl} method="post"> 8 9 {if $show_existing_languages} 10 {* Translation a user is able to edit *} 11 {set-block variable=$existing_languages_output} 12 {foreach $languages as $language} 13 {if $object_language_codes|contains($language.locale)} 14 {if fetch('content', 'access', hash( 'access', 'edit', 15 'contentobject', $object, 16 'language', $language.locale ) )} 17 <label> 18 <input name="EditLanguage" type="radio" value="{$language.locale}"{run-once} checked="checked"{/run-once} /> {$language.name|wash} 19 </label> 20 <div class="labelbreak"></div> 21 {/if} 22 {/if} 23 {/foreach} 24 {/set-block} 25 26 {if $existing_languages_output|trim} 27 <fieldset> 28 <legend>{'Existing languages'|i18n('design/standard/content/edit_languages')}</legend> 29 <p>{'Select the language you want to use when editing the object'|i18n('design/standard/content/edit_languages')}:</p> 30 31 {$existing_languages_output} 32 </fieldset> 33 {/if} 34 {/if} 35 36 {* Translation a user is able to create *} 37 {set-block variable=$nonexisting_languages_output} 38 {foreach $languages as $language} 39 {if $object_language_codes|contains($language.locale)|not} 40 {if fetch('content', 'access', hash( 'access', 'edit', 41 'contentobject', $object, 42 'language', $language.locale ) )} 43 <label> 44 <input name="EditLanguage" type="radio" value="{$language.locale}"{run-once} checked="checked"{/run-once} /> {$language.name|wash} 45 </label> 46 <div class="labelbreak"></div> 47 {/if} 48 {/if} 49 {/foreach} 50 {/set-block} 51 52 {if $nonexisting_languages_output|trim} 53 <fieldset> 54 <legend>{'New languages'|i18n('design/standard/content/edit_languages')}</legend> 55 <p>{'Select the language you want to add to the object'|i18n('design/standard/content/edit_languages')}:</p> 56 57 {$nonexisting_languages_output} 58 59 <p>{'Select the language the added translation will be based on'|i18n('design/standard/content/edit_languages')}:</p> 60 61 <label> 62 <input name="FromLanguage" type="radio" checked="checked" value="" /> {'use an empty, untranslated draft'|i18n('design/standard/content/edit_languages')} 63 </label> 64 <div class="labelbreak"></div> 65 66 {foreach $object.languages as $language} 67 <label> 68 <input name="FromLanguage" type="radio" value="{$language.locale}" /> {$language.name|wash} 69 </label> 70 <div class="labelbreak"></div> 71 {/foreach} 72 </fieldset> 73 {else} 74 {if $show_existing_languages|not} 75 {set $can_edit=false()} 76 <p>{'You do not have sufficient permissions to create a translation in another language.'|i18n('design/standard/content/edit_languages')}</p> 77 78 {* Translation a user is able to edit *} 79 {set-block variable=$existing_languages_output} 80 {foreach $languages as $language} 81 {if $object_language_codes|contains($language.locale)} 82 {if fetch('content', 'access', hash( 'access', 'edit', 83 'contentobject', $object, 84 'language', $language.locale ) )} 85 <label> 86 <input name="EditLanguage" type="radio" value="{$language.locale}"{run-once} checked="checked"{/run-once} /> {$language.name|wash} 87 </label> 88 <div class="labelbreak"></div> 89 {/if} 90 {/if} 91 {/foreach} 92 {/set-block} 93 94 {if $existing_languages_output|trim} 95 <fieldset> 96 {set $can_edit=true()} 97 <legend>{'Existing languages'|i18n('design/standard/content/edit_languages')}</legend> 98 <p>{'However you can select one of the following languages for editing'|i18n('design/standard/content/edit_languages')}:</p> 99 100 {$existing_languages_output} 101 </fieldset> 102 {/if} 103 {elseif $existing_languages_output|trim|not} 104 {set $can_edit=false()} 105 {'You do not have permission to edit the object in any available languages.'|i18n('design/standard/content/edit_languages')} 106 {/if} 107 {/if} 108 109 <div class="block"> 110 {if $can_edit} 111 <input class="button" type="submit" name="LanguageSelection" value="{'Edit'|i18n('design/standard/content/edit_languages')}" /> 112 {/if} 113 <input class="button" type="submit" name="CancelDraftButton" value="{'Cancel'|i18n('design/standard/content/edit_languages')}" /> 114 </div> 115 116 </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 |