[ Index ] |
|
Code source de eZ Publish 3.9.0 |
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 $rss_import.import_description_array.rss_version} 29 30 <label>{"RSS Version"|i18n( 'design/admin/rss/edit_import' )}:</label> 31 {$rss_import.import_description_array.rss_version|wash} 32 {/if} 33 34 {* Destination path. *} 35 <div class="block"> 36 <label>{"Destination path"|i18n( 'design/admin/rss/edit_import' )}:</label> 37 <input type="text" readonly="readonly" size="45" value="{$rss_import.destination_path|wash}" /> 38 <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')}" /> 39 </div> 40 41 {if $rss_import.import_description_array.rss_version} 42 43 {* Imported objects owner. *} 44 <div class="block"> 45 <label>{"Imported objects will be owned by"|i18n( 'design/admin/rss/edit_import' )}:</label> 46 <p>{$rss_import.object_owner.contentobject.name|wash}</p> 47 <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')}" /> 48 </div> 49 50 {* Class. *} 51 <div class="block"> 52 <label>{"Class"|i18n( 'design/admin/rss/edit_import' )}:</label> 53 <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}"> 54 {section name=ContentClass loop=$rss_class_array } 55 <option 56 {section name=Class show=eq($:item.id,$rss_import.class_id)} 57 selected="selected" 58 {/section} value="{$:item.id}">{$:item.name|wash} 59 </option> 60 {/section} 61 </select> 62 <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')}" /> 63 </div> 64 65 {if $rss_import.class_id|gt(0)} 66 {* Class attributes *} 67 <fieldset> 68 <legend>{'Class Attributes'|i18n( 'design/admin/rss/edit_import' )}</legend> 69 {foreach $rss_import.class_attributes as $class_attribute} 70 <div class="block"> 71 <label>{$class_attribute.name|wash}:</label> 72 <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')}"> 73 <option value="-1">{"Ignore"|i18n( 'design/admin/rss/edit_import' )}</option> 74 {foreach $rss_import.field_map as $key => $value} 75 <option value="{$key|wash}" {cond( $rss_import.import_description_array.class_attributes[$class_attribute.id]|eq($key), 'selected="selected"', '' )}> 76 {$value|wash} 77 </option> 78 {/foreach} 79 </select> 80 </div> 81 {/foreach} 82 </fieldset> 83 84 {* Object Attributes *} 85 <fieldset> 86 <legend>{'Object attributes'|i18n( 'design/admin/rss/edit_import' )}</legend> 87 {foreach $rss_import.object_attribute_list as $key => $object_attribute} 88 <div class="block"> 89 <label>{$object_attribute|wash}:</label> 90 <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')}"> 91 <option value="-1">{"Ignore"|i18n( 'design/admin/rss/edit_import' )}</option> 92 {foreach $rss_import.field_map as $key2 => $value} 93 <option value="{$key2|wash}" {cond( $rss_import.import_description_array.object_attributes[$key]|eq($key2), 'selected="selected"', '' )}> 94 {$value|wash} 95 </option> 96 {/foreach} 97 </select> 98 </div> 99 {/foreach} 100 </fieldset> 101 102 {* Active. *} 103 <div class="block"> 104 <label>{"Active"|i18n( 'design/admin/rss/edit_import' )}:</label> 105 <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')}" /> 106 </div> 107 {/if} 108 109 {/if} {* Step end RSS *} 110 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}
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 |