aboutsummaryrefslogtreecommitdiffstats
path: root/admin/template/yoga
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2008-08-29 12:35:16 +0000
committerrvelices <rv-github@modusoptimus.com>2008-08-29 12:35:16 +0000
commitbd833ee9bcd52d7e5c1cc52c220ead224beb1225 (patch)
treed7fb01c6cb0ce046f6ddaebf61a8c0b74bfb774c /admin/template/yoga
parent844799d0401321704c1ef390a1014118438fe7bd (diff)
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 git-svn-id: http://piwigo.org/svn/trunk@2491 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/template/yoga')
-rw-r--r--admin/template/yoga/admin/site_update.tpl45
1 files changed, 27 insertions, 18 deletions
diff --git a/admin/template/yoga/admin/site_update.tpl b/admin/template/yoga/admin/site_update.tpl
index e3016c68b..ad4f99e0f 100644
--- a/admin/template/yoga/admin/site_update.tpl
+++ b/admin/template/yoga/admin/site_update.tpl
@@ -58,25 +58,34 @@
<h3>{'update_default_title'|@translate}</h3>
<form action="" method="post" id="update">
- <fieldset id="syncFiles">
- <legend>{'update_sync_files'|@translate}</legend>
- <ul>
- <li><label><input type="radio" name="sync" value="dirs" {if 'dirs'==$introduction.sync}checked="checked"{/if}/> {'update_sync_dirs'|@translate}</label></li>
- <li><label><input type="radio" name="sync" value="files" {if 'files'==$introduction.sync}checked="checked"{/if}/> {'update_sync_all'|@translate}</label></li>
- <li><label><input type="checkbox" name="display_info" value="1" {if $introduction.display_info}checked="checked"{/if}/> {'update_display_info'|@translate}</label></li>
- <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>
- <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>
- </ul>
- </fieldset>
+ <fieldset id="syncFiles">
+ <legend>{'update_sync_files'|@translate}</legend>
+ <ul>
+ <li><label><input type="radio" name="sync" value="" {if empty($introduction.sync)}checked="checked"{/if}/> {'nothing'|@translate}</label></li>
+ <li><label><input type="radio" name="sync" value="dirs" {if 'dirs'==$introduction.sync}checked="checked"{/if}/> {'update_sync_dirs'|@translate}</label></li>
- <fieldset id="syncMetadata">
- <legend>{'update_sync_metadata'|@translate}</legend>
- {'update_used_metadata'|@translate} : {$METADATA_LIST}.<br/>
- <ul>
- <li><label><input type="radio" name="sync" value="metadata_new" {if 'metadata_new'==$introduction.sync}checked="checked"{/if}/> {'update_sync_metadata_new'|@translate}</label></li>
- <li><label><input type="radio" name="sync" value="metadata_all" {if 'metadata_all'==$introduction.sync}checked="checked"{/if}/> {'update_sync_metadata_all'|@translate}</label></li>
- </ul>
- </fieldset>
+ <li><label><input type="radio" name="sync" value="files" {if 'files'==$introduction.sync}checked="checked"{/if}/> {'update_sync_all'|@translate}</label>
+ <ul style="padding-left:3em">
+ <li><label><input type="checkbox" name="display_info" value="1" {if $introduction.display_info}checked="checked"{/if}/> {'update_display_info'|@translate}</label></li>
+ <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>
+ <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>
+ </ul>
+ </li>
+ </ul>
+ </fieldset>
+
+ <fieldset id="syncMetadata">
+ <legend>{'update_sync_metadata'|@translate}</legend>
+ <label><input type="checkbox" name="sync_meta" {if $introduction.sync_meta}checked="checked"{/if}/> {'synchronize metadata'|@translate} ({$METADATA_LIST})</label></li>
+ <ul style="padding-left:3em">
+ <li>
+ <label><input type="checkbox" name="meta_all" {if $introduction.meta_all}checked="checked"{/if}/> {'update_sync_metadata_all'|@translate}</label>
+ </li>
+ <li>
+ <label><input type="checkbox" name="meta_empty_overrides" {if $introduction.meta_empty_overrides}checked="checked"{/if}/> {'overrides existing values with empty ones'|@translate}</label>
+ </li>
+ </ul>
+ </fieldset>
<fieldset id="syncSimulate">
<legend></legend>