source: trunk/admin/template/yoga/admin/site_update.tpl @ 2491

Last change on this file since 2491 was 2491, checked in by rvelices, 16 years ago

synchro improvements:

  • able to sync metadata at the same time as the files/dirs
  • by default empty metadata does not overwrite database infos (checkbox can switch to previous behaviour) (bug 132)
  • the form is shown again even after a successfull non simulated run
  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
File size: 4.7 KB
Line 
1{* $Id: site_update.tpl 2491 2008-08-29 12:35:16Z rvelices $ *}
2
3<div class="titrePage">
4  <h2>{'title_update'|@translate}: <a href="{$SITE_URL}">{$SITE_URL}</a></h2>
5</div>
6
7{if isset($update_result)}
8<h3>{$L_RESULT_UPDATE}</h3>
9<ul>
10  <li class="update_summary_new">{$update_result.NB_NEW_CATEGORIES} {'update_nb_new_categories'|@translate}</li>
11  <li class="update_summary_new">{$update_result.NB_NEW_ELEMENTS} {'update_nb_new_elements'|@translate}</li>
12  <li class="update_summary_del">{$update_result.NB_DEL_CATEGORIES} {'update_nb_del_categories'|@translate}</li>
13  <li class="update_summary_del">{$update_result.NB_DEL_ELEMENTS} {'update_nb_del_elements'|@translate}</li>
14  <li>{$update_result.NB_UPD_ELEMENTS} {'update_nb_upd_elements'|@translate}</li>
15  <li class="update_summary_err">{$update_result.NB_ERRORS} {'update_nb_errors'|@translate}</li>
16</ul>
17{/if}
18
19{if isset($metadata_result)}
20<h3>{$L_RESULT_METADATA}</h3>
21<ul>
22  <li>{$metadata_result.NB_ELEMENTS_DONE} {'update_nb_elements_metadata_sync'|@translate}</li>
23  <li>{$metadata_result.NB_ELEMENTS_CANDIDATES} {'update_nb_elements_metadata_available'|@translate}</li>
24  <li>{'update_used_metadata'|@translate} : {$METADATA_LIST}</li>
25</ul>
26{/if}
27
28
29{if not empty($sync_errors)}
30<h3>{'update_error_list_title'|@translate}</h3>
31<div class="errors">
32<ul>
33  {foreach from=$sync_errors item=error}
34  <li>[{$error.ELEMENT}] {$error.LABEL}</li>
35  {/foreach}
36</ul>
37</div>
38<h3>{'update_errors_caption'|@translate}</h3>
39<ul>
40  {foreach from=$sync_error_captions item=caption}
41  <li><strong>{$caption.TYPE}</strong>: {$caption.LABEL}</li>
42  {/foreach}
43</ul>
44{/if}
45
46{if not empty($sync_infos)}
47<h3>{'update_infos_title'|@translate}</h3>
48<div class="infos">
49<ul>
50  {foreach from=$sync_infos item=info}
51  <li>[{$info.ELEMENT}] {$info.LABEL}</li>
52  {/foreach}
53</ul>
54</div>
55{/if}
56
57{if isset($introduction)}
58<h3>{'update_default_title'|@translate}</h3>
59<form action="" method="post" id="update">
60
61        <fieldset id="syncFiles">
62                <legend>{'update_sync_files'|@translate}</legend>
63                <ul>
64                        <li><label><input type="radio" name="sync" value="" {if empty($introduction.sync)}checked="checked"{/if}/> {'nothing'|@translate}</label></li>
65                        <li><label><input type="radio" name="sync" value="dirs" {if 'dirs'==$introduction.sync}checked="checked"{/if}/> {'update_sync_dirs'|@translate}</label></li>
66
67                        <li><label><input type="radio" name="sync" value="files" {if 'files'==$introduction.sync}checked="checked"{/if}/> {'update_sync_all'|@translate}</label>
68                                <ul style="padding-left:3em">
69                                        <li><label><input type="checkbox" name="display_info" value="1" {if $introduction.display_info}checked="checked"{/if}/> {'update_display_info'|@translate}</label></li>
70                                        <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>
71                                        <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>
72                                </ul>
73                        </li>
74                </ul>
75        </fieldset>
76
77        <fieldset id="syncMetadata">
78                <legend>{'update_sync_metadata'|@translate}</legend>
79                <label><input type="checkbox" name="sync_meta" {if $introduction.sync_meta}checked="checked"{/if}/> {'synchronize metadata'|@translate} ({$METADATA_LIST})</label></li>
80                <ul style="padding-left:3em">
81                        <li>
82                                <label><input type="checkbox" name="meta_all" {if $introduction.meta_all}checked="checked"{/if}/> {'update_sync_metadata_all'|@translate}</label>
83                        </li>
84                        <li>
85                                <label><input type="checkbox" name="meta_empty_overrides" {if $introduction.meta_empty_overrides}checked="checked"{/if}/> {'overrides existing values with empty ones'|@translate}</label>
86                        </li>
87                </ul>
88        </fieldset>
89
90  <fieldset id="syncSimulate">
91    <legend></legend>
92    <ul><li><label><input type="checkbox" name="simulate" value="1" checked="checked" {$TAG_INPUT_ENABLED} /> {'update_simulate'|@translate}</label></li></ul>
93  </fieldset>
94
95  <fieldset id="catSubset">
96    <legend>{'update_cats_subset'|@translate}</legend>
97    <ul>
98    <li>
99    <select class="categoryList" name="cat" size="10">
100      {html_options options=$category_options selected=$category_options_selected}
101    </select>
102    </li>
103
104    <li><label><input type="checkbox" name="subcats-included" value="1" {if $introduction.subcats_included}checked="checked"{/if}/> {'search_subcats_included'|@translate}</label></li>
105    </ul>
106  </fieldset>
107
108  <p class="bottomButtons">
109    <input class="submit" type="submit" value="{'Submit'|@translate}" name="submit" />
110    <input class="submit" type="reset"  value="{'Reset'|@translate}"  name="reset"  />
111  </p>
112</form>
113{/if}{*isset $introduction*}
114
115<p><a href="{$U_SITE_MANAGER}">{'Site manager'|@translate}</a></p>
Note: See TracBrowser for help on using the repository browser.