[ Index ]
 

Code source de eZ Publish 3.9.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/design/admin/templates/content/ -> edit.tpl (source)

   1  <form name="editform" id="editform" enctype="multipart/form-data" method="post" action={concat( '/content/edit/', $object.id, '/', $edit_version, '/', $edit_language|not|choose( concat( $edit_language, '/' ), '/' ), $is_translating_content|not|choose( concat( $from_language, '/' ), '' ) )|ezurl}>
   2  
   3  <div id="leftmenu">
   4  <div id="leftmenu-design">
   5  
   6  {include uri='design:content/edit_menu.tpl'}
   7  
   8  </div>
   9  </div>
  10  
  11  <div id="maincontent"><div id="fix">
  12  <div id="maincontent-design">
  13  <!-- Maincontent START -->
  14  
  15  {include uri='design:content/edit_validation.tpl'}
  16  
  17  <div class="content-edit">
  18  
  19  <div class="context-block">
  20  
  21  {* 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">
  22  
  23  <h1 class="context-title">{$object.class_identifier|class_icon( normal, $object.class_name )}&nbsp;{'Edit <%object_name> [%class_name]'|i18n( 'design/admin/content/edit',, hash( '%object_name', $object.name, '%class_name', $class.name ) )|wash}</h1>
  24  
  25  {* DESIGN: Mainline *}<div class="header-mainline"></div>
  26  
  27  {* DESIGN: Header END *}</div></div></div></div></div></div>
  28  
  29  {* DESIGN: Content START *}<div class="box-ml"><div class="box-mr"><div class="box-content">
  30  
  31  <div class="context-information">
  32  <p class="translation">
  33  {let language_index=0
  34       from_language_index=0
  35       translation_list=$content_version.translation_list}
  36  
  37  {section loop=$translation_list}
  38    {section show=eq( $edit_language, $item.language_code )}
  39      {set language_index=$:index}
  40    {/section}
  41  {/section}
  42  
  43  {section show=$is_translating_content}
  44  
  45      {let from_language_object=$object.languages[$from_language]}
  46  
  47      {'Translating content from %from_lang to %to_lang'|i18n( 'design/admin/content/edit',, hash(
  48          '%from_lang', concat( $from_language_object.name, '&nbsp;<img src="', $from_language_object.locale|flag_icon, '" style="vertical-align: middle;" alt="', $from_language_object.locale, '" />' ),
  49          '%to_lang', concat( $translation_list[$language_index].locale.intl_language_name, '&nbsp;<img src="', $translation_list[$language_index].language_code|flag_icon, '" style="vertical-align: middle;" alt="', $translation_list[$language_index].language_code, '" />' ) ) )}
  50  
  51      {/let}
  52  
  53  {section-else}
  54  
  55      {$translation_list[$language_index].locale.intl_language_name}&nbsp;<img src="{$translation_list[$language_index].language_code|flag_icon}" style="vertical-align: middle;" alt="{$translation_list[$language_index].language_code}" />
  56  
  57  {/section}
  58  
  59  {/let}
  60  </p>
  61  <div class="break"></div>
  62  </div>
  63  
  64  {section show=$is_translating_content}
  65  <div class="content-translation">
  66  {/section}
  67  
  68  <div class="context-attributes">
  69      {include uri='design:content/edit_attribute.tpl' view_parameters=$view_parameters}
  70  </div>
  71  
  72  {section show=$is_translating_content}
  73  </div>
  74  {/section}
  75  
  76  {* DESIGN: Content END *}</div></div></div>
  77  <div class="controlbar">
  78  {* 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">
  79  <div class="block">
  80  
  81      {section show=ezpreference( 'admin_edit_show_re_edit' )}
  82          <input type="checkbox" name="BackToEdit" />{'Back to edit'|i18n( 'design/admin/content/edit' )}
  83      {/section}
  84      <input class="button" type="submit" name="PublishButton" value="{'Send for publishing'|i18n( 'design/admin/content/edit' )}" title="{'Publish the contents of the draft that is being edited. The draft will thus become the published version of the object.'|i18n( 'design/admin/content/edit' )}" />
  85      <input class="button" type="submit" name="StoreButton" value="{'Store draft'|i18n( 'design/admin/content/edit' )}" title="{'Store the contents of the draft that is being edited and continue editing. Use this button to periodically save your work while editing.'|i18n( 'design/admin/content/edit' )}" />
  86      <input class="button" type="submit" name="DiscardButton" value="{'Discard draft'|i18n( 'design/admin/content/edit' )}" onclick="return confirmDiscard( '{'Are you sure you want to discard the draft?'|i18n( 'design/admin/content/edit' )}' );" title="{'Discard the draft that is being edited. This will also remove the translations that belong to the draft (if any).'|i18n( 'design/admin/content/edit' ) }" />
  87      <input type="hidden" name="DiscardConfirm" value="1" />
  88  </div>
  89  {* DESIGN: Control bar END *}</div></div></div></div></div></div>
  90  </div>
  91  
  92  </div>
  93  
  94  
  95  {include uri='design:content/edit_relations.tpl'}
  96  
  97  
  98  {* Locations window. *}
  99  {* section show=eq( ezini( 'EditSettings', 'EmbedNodeAssignmentHandling', 'content.ini' ), 'enabled' ) *}
 100  {section show=or( ezpreference( 'admin_edit_show_locations' ),
 101                    count( $invalid_node_assignment_list )|gt(0) )}
 102      {* We never allow changes to node assignments if the object has been published/archived.
 103         This is controlled by the $location_ui_enabled variable. *}
 104      {include uri='design:content/edit_locations.tpl'}
 105  {section-else}
 106      {* This disables all node assignment checking in content/edit *}
 107      <input type="hidden" name="UseNodeAssigments" value="0" />
 108  {/section}
 109  
 110  </div>
 111  
 112  <!-- Maincontent END -->
 113  </div>
 114  <div class="break"></div>
 115  </div></div>
 116  
 117  </form>
 118  
 119  
 120  
 121  
 122  {literal}
 123  <script language="JavaScript" type="text/javascript">
 124  <!--
 125      window.onload=function()
 126      {
 127          with( document.editform )
 128          {
 129              for( var i=0; i<elements.length; i++ )
 130              {
 131                  if( elements[i].type == 'text' )
 132                  {
 133                      elements[i].select();
 134                      elements[i].focus();
 135                      return;
 136                  }
 137              }
 138          }
 139      }
 140  
 141      function confirmDiscard( question )
 142      {
 143          // Disable/bypass the reload-based (plain HTML) confirmation interface.
 144          document.editform.DiscardConfirm.value = "0";
 145  
 146          // Ask user if she really wants do it, return this to the handler.
 147          return confirm( question );
 148      }
 149  -->
 150  </script>
 151  {/literal}


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