1 | {* $Id: site_update.tpl 2719 2008-10-11 20:23:30Z rub $ *} |
---|
2 | |
---|
3 | {include file='include/resize.inc.tpl'} |
---|
4 | |
---|
5 | <div class="titrePage"> |
---|
6 | <h2>{'title_update'|@translate}: <a href="{$SITE_URL}">{$SITE_URL}</a></h2> |
---|
7 | </div> |
---|
8 | |
---|
9 | {if isset($update_result)} |
---|
10 | <h3>{$L_RESULT_UPDATE}</h3> |
---|
11 | <ul> |
---|
12 | <li class="update_summary_new">{$update_result.NB_NEW_CATEGORIES} {'update_nb_new_categories'|@translate}</li> |
---|
13 | <li class="update_summary_new">{$update_result.NB_NEW_ELEMENTS} {'update_nb_new_elements'|@translate}</li> |
---|
14 | <li class="update_summary_del">{$update_result.NB_DEL_CATEGORIES} {'update_nb_del_categories'|@translate}</li> |
---|
15 | <li class="update_summary_del">{$update_result.NB_DEL_ELEMENTS} {'update_nb_del_elements'|@translate}</li> |
---|
16 | <li>{$update_result.NB_UPD_ELEMENTS} {'update_nb_upd_elements'|@translate}</li> |
---|
17 | <li class="update_summary_err">{$update_result.NB_ERRORS} {'update_nb_errors'|@translate}</li> |
---|
18 | </ul> |
---|
19 | {/if} |
---|
20 | |
---|
21 | {if isset($metadata_result)} |
---|
22 | <h3>{$L_RESULT_METADATA}</h3> |
---|
23 | <ul> |
---|
24 | <li>{$metadata_result.NB_ELEMENTS_DONE} {'update_nb_elements_metadata_sync'|@translate}</li> |
---|
25 | <li>{$metadata_result.NB_ELEMENTS_CANDIDATES} {'update_nb_elements_metadata_available'|@translate}</li> |
---|
26 | <li>{'update_used_metadata'|@translate} : {$METADATA_LIST}</li> |
---|
27 | </ul> |
---|
28 | {/if} |
---|
29 | |
---|
30 | |
---|
31 | {if not empty($sync_errors)} |
---|
32 | <h3>{'update_error_list_title'|@translate}</h3> |
---|
33 | <div class="errors"> |
---|
34 | <ul> |
---|
35 | {foreach from=$sync_errors item=error} |
---|
36 | <li>[{$error.ELEMENT}] {$error.LABEL}</li> |
---|
37 | {/foreach} |
---|
38 | </ul> |
---|
39 | </div> |
---|
40 | <h3>{'update_errors_caption'|@translate}</h3> |
---|
41 | <ul> |
---|
42 | {foreach from=$sync_error_captions item=caption} |
---|
43 | <li><strong>{$caption.TYPE}</strong>: {$caption.LABEL}</li> |
---|
44 | {/foreach} |
---|
45 | </ul> |
---|
46 | {/if} |
---|
47 | |
---|
48 | {if not empty($sync_infos)} |
---|
49 | <h3>{'update_infos_title'|@translate}</h3> |
---|
50 | <div class="infos"> |
---|
51 | <ul> |
---|
52 | {foreach from=$sync_infos item=info} |
---|
53 | <li>[{$info.ELEMENT}] {$info.LABEL}</li> |
---|
54 | {/foreach} |
---|
55 | </ul> |
---|
56 | </div> |
---|
57 | {/if} |
---|
58 | |
---|
59 | {if isset($introduction)} |
---|
60 | <h3>{'update_default_title'|@translate}</h3> |
---|
61 | <form action="" method="post" id="update"> |
---|
62 | |
---|
63 | <fieldset id="syncFiles"> |
---|
64 | <legend>{'update_sync_files'|@translate}</legend> |
---|
65 | <ul> |
---|
66 | <li><label><input type="radio" name="sync" value="" {if empty($introduction.sync)}checked="checked"{/if}/> {'nothing'|@translate}</label></li> |
---|
67 | <li><label><input type="radio" name="sync" value="dirs" {if 'dirs'==$introduction.sync}checked="checked"{/if}/> {'update_sync_dirs'|@translate}</label></li> |
---|
68 | |
---|
69 | <li><label><input type="radio" name="sync" value="files" {if 'files'==$introduction.sync}checked="checked"{/if}/> {'update_sync_all'|@translate}</label> |
---|
70 | <ul style="padding-left:3em"> |
---|
71 | <li><label><input type="checkbox" name="display_info" value="1" {if $introduction.display_info}checked="checked"{/if}/> {'update_display_info'|@translate}</label></li> |
---|
72 | <li><label><input type="checkbox" name="add_to_caddie" value="1" {if $introduction.add_to_caddie}checked="checked"{/if}/> {'add new elements to caddie'|@translate}</label></li> |
---|
73 | <li><label>{'Minimum privacy level'|@translate} <select name="privacy_level">{html_options options=$introduction.privacy_level_options selected=$introduction.privacy_level_selected}</select></label></li> |
---|
74 | </ul> |
---|
75 | </li> |
---|
76 | </ul> |
---|
77 | </fieldset> |
---|
78 | |
---|
79 | <fieldset id="syncMetadata"> |
---|
80 | <legend>{'update_sync_metadata'|@translate}</legend> |
---|
81 | <label><input type="checkbox" name="sync_meta" {if $introduction.sync_meta}checked="checked"{/if}/> {'synchronize metadata'|@translate} ({$METADATA_LIST})</label></li> |
---|
82 | <ul style="padding-left:3em"> |
---|
83 | <li> |
---|
84 | <label><input type="checkbox" name="meta_all" {if $introduction.meta_all}checked="checked"{/if}/> {'update_sync_metadata_all'|@translate}</label> |
---|
85 | </li> |
---|
86 | <li> |
---|
87 | <label><input type="checkbox" name="meta_empty_overrides" {if $introduction.meta_empty_overrides}checked="checked"{/if}/> {'overrides existing values with empty ones'|@translate}</label> |
---|
88 | </li> |
---|
89 | </ul> |
---|
90 | </fieldset> |
---|
91 | |
---|
92 | <fieldset id="syncSimulate"> |
---|
93 | <legend></legend> |
---|
94 | <ul><li><label><input type="checkbox" name="simulate" value="1" checked="checked" {$TAG_INPUT_ENABLED} /> {'update_simulate'|@translate}</label></li></ul> |
---|
95 | </fieldset> |
---|
96 | |
---|
97 | <fieldset id="catSubset"> |
---|
98 | <legend>{'update_cats_subset'|@translate}</legend> |
---|
99 | <ul> |
---|
100 | <li> |
---|
101 | <select class="categoryList" name="cat" size="10"> |
---|
102 | {html_options options=$category_options selected=$category_options_selected} |
---|
103 | </select> |
---|
104 | </li> |
---|
105 | |
---|
106 | <li><label><input type="checkbox" name="subcats-included" value="1" {if $introduction.subcats_included}checked="checked"{/if}/> {'search_subcats_included'|@translate}</label></li> |
---|
107 | </ul> |
---|
108 | </fieldset> |
---|
109 | |
---|
110 | <p class="bottomButtons"> |
---|
111 | <input class="submit" type="submit" value="{'Submit'|@translate}" name="submit" /> |
---|
112 | <input class="submit" type="reset" value="{'Reset'|@translate}" name="reset" /> |
---|
113 | </p> |
---|
114 | </form> |
---|
115 | {/if}{*isset $introduction*} |
---|
116 | |
---|
117 | <p><a href="{$U_SITE_MANAGER}">{'Site manager'|@translate}</a></p> |
---|