[ 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/rss/ -> edit_import.tpl (source)

   1  <form action={"rss/edit_import"|ezurl} method="post" name="RSSImport">
   2  
   3  <div class="context-block">
   4  {* 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">
   5  <h2 class="context-title">{'Edit <%rss_import_name> [RSS Import]'|i18n( 'design/admin/rss/edit_import',, hash( '%rss_import_name', $rss_import.name ) )|wash}</h2>
   6  
   7  {* DESIGN: Mainline *}<div class="header-mainline"></div>
   8  
   9  {* DESIGN: Header END *}</div></div></div></div></div></div>
  10  
  11  {* DESIGN: Content START *}<div class="box-ml"><div class="box-mr"><div class="box-content">
  12  
  13  
  14  <div class="context-attributes">
  15  
  16      {* Title. *}
  17      <div class="block">
  18          <label>{"Name"|i18n( 'design/admin/rss/edit_import' )}:</label>
  19          <input class="halfbox" id="importName" type="text" name="name" value="{$rss_import.name|wash}" title="{'Name of the RSS import. This name is used in the administration interface only, to distinguish the different imports from each other.'|i18n('design/admin/rss/edit_import')}" />
  20      </div>
  21  
  22      {* URL. *}
  23      <div class="block">
  24      <label>{"Source URL"|i18n( 'design/admin/rss/edit_import' )}:</label>
  25      <input class="halfbox" type="text" name="url" value="{$rss_import.url|wash}" title="{'Use this field to enter the source URL of the RSS feed to import.'|i18n('design/admin/rss/edit_import')}" />
  26      <input class="button" type="submit" name="AnalyzeFeedButton" value="{'Update'|i18n( 'design/admin/rss/edit_import' )}" title="{'Click this button to proceede, and analyze the import feed.'|i18n('design/admin/rss/edit_import')}" />
  27      </div>
  28      {if and( is_set( $rss_import.import_description_array.rss_version ), $rss_import.import_description_array.rss_version )}
  29      <label>{"RSS Version"|i18n( 'design/admin/rss/edit_import' )}:</label>
  30      {$rss_import.import_description_array.rss_version|wash}
  31      {/if}
  32  
  33      {* Destination path. *}
  34      <div class="block">
  35      <label>{"Destination path"|i18n( 'design/admin/rss/edit_import' )}:</label>
  36      <input type="text" readonly="readonly" size="45" value="{$rss_import.destination_path|wash}" />
  37      <input class="button" type="submit" name="DestinationBrowse" value="{'Browse'|i18n( 'design/admin/rss/edit_import' )}" title="{'Click this button to select the destination node where objects created by the import are located.'|i18n('design/admin/rss/edit_import')}" />
  38      </div>
  39  
  40      {if and( is_set( $rss_import.import_description_array.rss_version ), $rss_import.import_description_array.rss_version )}
  41  
  42      {* Imported objects owner. *}
  43      <div class="block">
  44      <label>{"Imported objects will be owned by"|i18n( 'design/admin/rss/edit_import' )}:</label>
  45      <p>{$rss_import.object_owner.contentobject.name|wash}</p>
  46      <input class="button" type="submit" name="UserBrowse" value="{'Change user'|i18n( 'design/admin/rss/edit_import' )}" title="{'Click this button to select the user who should own the objects created by the import.'|i18n('design/admin/rss/edit_import')}" />
  47      </div>
  48  
  49      {* Class. *}
  50      <div class="block">
  51      <label>{"Class"|i18n( 'design/admin/rss/edit_import' )}:</label>
  52      <select name="Class_ID" title="{'Use this drop down to select the type of object the import should create. Click the "Set" button to load the correct attribute types for the remaining fields.'|i18n('design/admin/rss/edit_import')|wash}">
  53      {section name=ContentClass loop=$rss_class_array }
  54      <option
  55        {section name=Class show=eq($:item.id,$rss_import.class_id)}
  56          selected="selected"
  57        {/section} value="{$:item.id}">{$:item.name|wash}
  58      </option>
  59      {/section}
  60      </select>
  61      <input class="button" type="submit" name="Update_Class" value="{'Set'|i18n( 'design/admin/rss/edit_import' )}" title="{'Click this button to load the correct values into the drop-down fields below. Use the drop-down menu on the left to select the correct class type.'|i18n('design/admin/rss/edit_import')}" />
  62      </div>
  63  
  64      {if $rss_import.class_id|gt(0)}
  65      {def $import_description_array = $rss_import.import_description_array}
  66      {def $field_map = $rss_import.field_map}
  67      {* Class attributes *}
  68      <fieldset>
  69      <legend>{'Class Attributes'|i18n( 'design/admin/rss/edit_import' )}</legend>
  70      {foreach $rss_import.class_attributes as $class_attribute}
  71          <div class="block">
  72          <label>{$class_attribute.name|wash}:</label>
  73              <select name="Class_Attribute_{$class_attribute.id}" title="{'Use this drop-down menu to select the attribute that should bet set as information from the RSS stream.'|i18n('design/admin/rss/edit_import')}">
  74              <option value="-1">{"Ignore"|i18n( 'design/admin/rss/edit_import' )}</option>
  75              {foreach $field_map as $key => $value}
  76                  <option value="{$key|wash}" {cond( and( is_set( $import_description_array.class_attributes[$class_attribute.id] ), $import_description_array.class_attributes[$class_attribute.id]|eq($key) ), 'selected="selected"', '' )}>
  77                  {$value|wash}
  78                  </option>
  79              {/foreach}
  80              </select>
  81          </div>
  82      {/foreach}
  83      </fieldset>
  84  
  85      {* Object Attributes *}
  86      <fieldset>
  87      <legend>{'Object attributes'|i18n( 'design/admin/rss/edit_import' )}</legend>
  88      {foreach $rss_import.object_attribute_list as $key => $object_attribute}
  89          <div class="block">
  90          <label>{$object_attribute|wash}:</label>
  91              <select name="Object_Attribute_{$key|wash}" title="{'Use this drop-down menu to select the attribute that should bet set as information from the RSS stream.'|i18n('design/admin/rss/edit_import')}">
  92              <option value="-1">{"Ignore"|i18n( 'design/admin/rss/edit_import' )}</option>
  93              {foreach $field_map as $key2 => $value}
  94                  <option value="{$key2|wash}" {cond( and( is_set( $import_description_array.object_attributes[$key] ), $import_description_array.object_attributes[$key]|eq($key2) ), 'selected="selected"', '' )}>
  95                  {$value|wash}
  96                  </option>
  97              {/foreach}
  98              </select>
  99          </div>
 100      {/foreach}
 101      </fieldset>
 102  
 103      {* Active. *}
 104      <div class="block">
 105      <label>{"Active"|i18n( 'design/admin/rss/edit_import' )}:</label>
 106      <input type="checkbox" name="active" {section show=$rss_import.active|eq(1)}checked="checked"{/section} title="{'Use this checkbox to control if the RSS feed is active or not. An inactive feed will not be automatically updated.'|i18n('design/admin/rss/edit_import')}" />
 107      </div>
 108      {/if}
 109  
 110      {/if} {* Step end RSS *}
 111  
 112      </div>
 113  
 114  {* DESIGN: Content END *}</div></div></div>
 115  
 116  
 117      {* Buttons. *}
 118      <div class="controlbar">
 119  {* 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">
 120      <div class="block">
 121      <input type="hidden" name="RSSImport_ID" value={$rss_import.id} />
 122      <input class="button" type="submit" name="StoreButton" value="{'OK'|i18n( 'design/admin/rss/edit_import' )}" title="{'Apply the changes and return to the RSS overview.'|i18n('design/admin/rss/edit_import')}" />
 123      <input class="button" type="submit" name="RemoveButton" value="{'Cancel'|i18n( 'design/admin/rss/edit_import' )}" title="{'Cancel the changes and return to the RSS overview.'|i18n('design/admin/rss/edit_import')}" />
 124      </div>
 125  {* DESIGN: Control bar END *}</div></div></div></div></div></div>
 126      </div>
 127  
 128  
 129  </div>
 130  </form>
 131  
 132  {literal}
 133  <script language="JavaScript" type="text/javascript">
 134  <!--
 135      window.onload=function()
 136      {
 137          document.getElementById('importName').select();
 138          document.getElementById('importName').focus();
 139      }
 140  -->
 141  </script>
 142  {/literal}


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