diff options
Diffstat (limited to 'template/yoga/admin/configuration.tpl')
-rw-r--r-- | template/yoga/admin/configuration.tpl | 118 |
1 files changed, 60 insertions, 58 deletions
diff --git a/template/yoga/admin/configuration.tpl b/template/yoga/admin/configuration.tpl index 2b1e0a5a3..cccb879af 100644 --- a/template/yoga/admin/configuration.tpl +++ b/template/yoga/admin/configuration.tpl @@ -1,163 +1,165 @@ -<!-- DEV TAG: not smarty migrated --> -<!-- $Id$ --> +{* $Id$ *} <div class="titrePage"> <ul class="categoryActions"> - <li><a href="{U_HELP}" onclick="popuphelp(this.href); return false;" title="{lang:Help}"><img src="{themeconf:icon_dir}/help.png" class="button" alt="(?)"></a></li> + <li><a href="{$U_HELP}" onclick="popuphelp(this.href); return false;" title="{'Help'|@translate}"><img src="{$themeconf.icon_dir}/help.png" class="button" alt="(?)"></a></li> </ul> - <h2>{lang:title_configuration} {TABSHEET_TITLE}</h2> - {TABSHEET} + <h2>{'title_configuration'|@translate} {$TABSHEET_TITLE}</h2> + {$TABSHEET} </div> -<form method="post" action="{F_ACTION}" class="properties"> +<form method="post" action="{$F_ACTION}" class="properties"> -<!-- BEGIN main --> +{if isset($main)} <fieldset id="mainConf"> <ul> <li> <span class="property"> - <label for="gallery_title">{lang:Gallery title}</label> + <label for="gallery_title">{'Gallery title'|@translate}</label> </span> - <input type="text" maxlength="255" size="50" name="gallery_title" id="gallery_title" value="{main.CONF_GALLERY_TITLE}" /> + <input type="text" maxlength="255" size="50" name="gallery_title" id="gallery_title" value="{$main.CONF_GALLERY_TITLE}" /> </li> <li> <span class="property"> - <label for="page_banner">{lang:Page banner}</label> + <label for="page_banner">{'Page banner'|@translate}</label> </span> - <textarea class="description" name="page_banner" id="page_banner">{main.CONF_PAGE_BANNER}</textarea> + <textarea class="description" name="page_banner" id="page_banner">{$main.CONF_PAGE_BANNER}</textarea> </li> <li> <span class="property"> - <label for="gallery_url">{lang:Gallery URL}</label> + <label for="gallery_url">{'Gallery URL'|@translate}</label> </span> - <input type="text" maxlength="255" size="50" name="gallery_url" id="gallery_url" value="{main.CONF_GALLERY_URL}" /> - </li> - - <li> - <span class="property">{lang:Lock gallery}</span> - <label><input type="radio" class="radio" name="gallery_locked" value="true" {main.GALLERY_LOCKED_YES} />{lang:Yes}</label> - <label><input type="radio" class="radio" name="gallery_locked" value="false" {main.GALLERY_LOCKED_NO} />{lang:No}</label> + <input type="text" maxlength="255" size="50" name="gallery_url" id="gallery_url" value="{$main.CONF_GALLERY_URL}" /> </li> </ul> </fieldset> <fieldset id="mainConfCheck"> <ul> + + <li> + <label> + <span class="property">{'Lock gallery'|@translate}</span> + <input type="checkbox" name="gallery_locked" {if ($main.gallery_locked)}checked="checked"{/if} /> + </label> + </li> + <li> <label> - <span class="property">{lang:Rating}</span> - <input type="checkbox" name="rate" {main.RATE} /> + <span class="property">{'Rating'|@translate}</span> + <input type="checkbox" name="rate" {if ($main.rate)}checked="checked"{/if} /> </label> </li> <li> <label> - <span class="property">{lang:Rating by guests}</span> - <input type="checkbox" name="rate_anonymous" {main.RATE_ANONYMOUS} /> + <span class="property">{'Rating by guests'|@translate}</span> + <input type="checkbox" name="rate_anonymous" {if ($main.rate_anonymous)}checked="checked"{/if} /> </label> </li> <li> - <label for="allow_user_registration"> - <span class="property">{lang:Allow user registration}</span> - <input type="checkbox" name="allow_user_registration" id="allow_user_registration" {main.ALLOW_USER_REGISTRATION} /> + <label> + <span class="property">{'Allow user registration'|@translate}</span> + <input type="checkbox" name="allow_user_registration" {if ($main.allow_user_registration)}checked="checked"{/if} /> </label> </li> <li> - <label for="obligatory_user_mail_address"> - <span class="property">{lang:obligatory_user_mail_address}</span> - <input type="checkbox" name="obligatory_user_mail_address" id="obligatory_user_mail_address" {main.OBLIGATORY_USER_MAIL_ADDRESS} /> + <label> + <span class="property">{'obligatory_user_mail_address'|@translate}</span> + <input type="checkbox" name="obligatory_user_mail_address" {if ($main.obligatory_user_mail_address)}checked="checked"{/if} /> </label> </li> <li> <label> - <span class="property">{lang:Email administrators when a new user registers}</span> - <input type="checkbox" name="email_admin_on_new_user" {main.EMAIL_ADMIN_ON_NEW_USER} /> + <span class="property">{'Email administrators when a new user registers'|@translate}</span> + <input type="checkbox" name="email_admin_on_new_user" {if ($main.email_admin_on_new_user)}checked="checked"{/if} /> </label> </li> <li> <label> - <span class="property">{lang:Email administrators when a picture is uploaded}</span> - <input type="checkbox" name="email_admin_on_picture_uploaded" {main.EMAIL_ADMIN_ON_PICTURE_UPLOADED} /> + <span class="property">{'Email administrators when a picture is uploaded'|@translate}</span> + <input type="checkbox" name="email_admin_on_picture_uploaded" {if ($main.email_admin_on_picture_uploaded)}checked="checked"{/if} /> </label> </li> </ul> </fieldset> -<!-- END main --> +{/if} -<!-- BEGIN history --> +{if isset($history)} <fieldset id="historyConf"> <ul> <li> - <label><span class="property">{lang:conf_history_guest}</span><input type="checkbox" name="history_guest" {history.HISTORY_GUEST} /></label> + <label><span class="property">{'conf_history_guest'|@translate}</span><input type="checkbox" name="history_guest" {if ($history.history_guest)}checked="checked"{/if} /></label> </li> <li> - <label><span class="property">{lang:conf_history_user}</span><input type="checkbox" name="log" {history.LOG} /></label> + <label><span class="property">{'conf_history_user'|@translate}</span><input type="checkbox" name="log" {if ($history.log)}checked="checked"{/if} /></label> </li> <li> - <label><span class="property">{lang:conf_history_admin}</span><input type="checkbox" name="history_admin" {history.HISTORY_ADMIN} /></label> + <label><span class="property">{'conf_history_admin'|@translate}</span><input type="checkbox" name="history_admin" {if ($history.history_admin)}checked="checked"{/if} /></label> </li> </ul> </fieldset> -<!-- END history --> +{/if} + -<!-- BEGIN comments --> +{if isset($comments)} <fieldset id="commentsConf"> <ul> <li> <label> - <span class="property">{lang:Comments for all}</span> - <input type="checkbox" name="comments_forall" {comments.COMMENTS_FORALL} /> + <span class="property">{'Comments for all'|@translate}</span> + <input type="checkbox" name="comments_forall" {if ($comments.comments_forall)}checked="checked"{/if} /> </label> </li> <li> <span class="property"> - <label for="nb_comment_page">{lang:Number of comments per page}</label> + <label for="nb_comment_page">{'Number of comments per page'|@translate}</label> </span> - <input type="text" size="3" maxlength="4" name="nb_comment_page" id="nb_comment_page" value="{comments.NB_COMMENTS_PAGE}" /> + <input type="text" size="3" maxlength="4" name="nb_comment_page" id="nb_comment_page" value="{$comments.NB_COMMENTS_PAGE}" /> </li> <li> <label> - <span class="property">{lang:Validation}</span> - <input type="checkbox" name="comments_validation" {comments.COMMENTS_VALIDATION} /> + <span class="property">{'Validation'|@translate}</span> + <input type="checkbox" name="comments_validation" {if ($comments.comments_validation)}checked="checked"{/if} /> </label> </li> <li> <label> - <span class="property">{lang:Email administrators when a valid comment is entered}</span> - <input type="checkbox" name="email_admin_on_comment" {comments.EMAIL_ADMIN_ON_COMMENT} /> + <span class="property">{'Email administrators when a valid comment is entered'|@translate}</span> + <input type="checkbox" name="email_admin_on_comment" {if ($comments.email_admin_on_comment)}checked="checked"{/if} /> </label> </li> <li> <label> - <span class="property">{lang:Email administrators when a comment requires validation}</span> - <input type="checkbox" name="email_admin_on_comment_validation" {comments.EMAIL_ADMIN_ON_COMMENT_VALIDATION} /> + <span class="property">{'Email administrators when a comment requires validation'|@translate}</span> + <input type="checkbox" name="email_admin_on_comment_validation" {if ($comments.email_admin_on_comment_validation)}checked="checked"{/if} /> </label> </li> </ul> </fieldset> -<!-- END comments --> +{/if} -<!-- BEGIN default --> -{PROFILE_CONTENT} -<!-- END default --> +{if isset($default)} +{$PROFILE_CONTENT} +{/if} -<!-- BEGIN include_submit_buttons --> +{if !isset($default)} <p> - <input class="submit" type="submit" name="submit" value="{lang:Submit}" {TAG_INPUT_ENABLED}> - <input class="submit" type="reset" name="reset" value="{lang:Reset}"> + <input class="submit" type="submit" name="submit" value="{'Submit'|@translate}" {$TAG_INPUT_ENABLED}> + <input class="submit" type="reset" name="reset" value="{'Reset'|@translate}"> </p> -<!-- END include_submit_buttons --> +{/if} </form> |