aboutsummaryrefslogtreecommitdiffstats
path: root/admin/themes/default/template/configuration.tpl
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2010-03-13 00:00:52 +0000
committerplegall <plg@piwigo.org>2010-03-13 00:00:52 +0000
commit14778ce673277f2df41f963aa70df1cbed427294 (patch)
tree8c723d4d9827876dbf19d2bd581405fc50910860 /admin/themes/default/template/configuration.tpl
parentc396f08708d431c6f7e8656eaca4fd8e440fdd39 (diff)
feature 1502: based on Dotclear model, P@t has reorganized the way Piwigo
manages template/theme in a simpler "theme only level" architecture. It supports multiple level inheritance. git-svn-id: http://piwigo.org/svn/trunk@5123 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/themes/default/template/configuration.tpl')
-rw-r--r--admin/themes/default/template/configuration.tpl209
1 files changed, 209 insertions, 0 deletions
diff --git a/admin/themes/default/template/configuration.tpl b/admin/themes/default/template/configuration.tpl
new file mode 100644
index 000000000..065a2ad76
--- /dev/null
+++ b/admin/themes/default/template/configuration.tpl
@@ -0,0 +1,209 @@
+
+{include file='include/autosize.inc.tpl'}
+
+<div class="titrePage">
+ <h2>{'Piwigo configuration'|@translate} {$TABSHEET_TITLE}</h2>
+</div>
+
+{if !isset($default)}
+<form method="post" action="{$F_ACTION}" class="properties">
+{/if}
+
+{if isset($main)}
+<fieldset id="mainConf">
+ <legend></legend>
+ <ul>
+ <li>
+ <span class="property">
+ <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}">
+ </li>
+
+ <li>
+ <span class="property">
+ <label for="page_banner">{'Page banner'|@translate}</label>
+ </span>
+ <textarea rows="5" cols="50" class="description" name="page_banner" id="page_banner">{$main.CONF_PAGE_BANNER}</textarea>
+ </li>
+
+ <li>
+ <span class="property">
+ <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>
+ </ul>
+</fieldset>
+
+<fieldset id="mainConfCheck">
+ <legend></legend>
+ <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">{'Rating'|@translate}</span>
+ <input type="checkbox" name="rate" {if ($main.rate)}checked="checked"{/if}>
+ </label>
+ </li>
+
+ <li>
+ <label>
+ <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>
+ <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>
+ <span class="property">{'Mail address is obligatory for all users'|@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">{'Email admins 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>
+ </ul>
+</fieldset>
+{/if}
+
+{if isset($history)}
+<fieldset id="historyConf">
+ <legend></legend>
+ <ul>
+ <li>
+ <label><span class="property">{'Save page visits by guests'|@translate}</span><input type="checkbox" name="history_guest" {if ($history.history_guest)}checked="checked"{/if}></label>
+ </li>
+
+ <li>
+ <label><span class="property">{'Save page visits by users'|@translate}</span><input type="checkbox" name="log" {if ($history.log)}checked="checked"{/if}></label>
+ </li>
+
+ <li>
+ <label><span class="property">{'Save page visits by administrators'|@translate}</span><input type="checkbox" name="history_admin" {if ($history.history_admin)}checked="checked"{/if}></label>
+ </li>
+ </ul>
+</fieldset>
+{/if}
+
+
+{if isset($comments)}
+<fieldset id="commentsConf">
+ <legend></legend>
+ <ul>
+ <li>
+ <label>
+ <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">{'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}">
+ </li>
+
+ <li>
+ <label>
+ <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">{'Email admins 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">{'Email admins 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>
+
+ <li>
+ <label>
+ <span class="property">{'Allow users to edit theirs owns comments'|@translate}</span>
+ <input type="checkbox" name="user_can_edit_comment" {if ($comments.user_can_edit_comment)}checked="checked"{/if}>
+ </label>
+ </li>
+ <li>
+ <label>
+ <span class="property">{'Allow users to delete theirs owns comments'|@translate}</span>
+ <input type="checkbox" name="user_can_delete_comment" {if ($comments.user_can_delete_comment)}checked="checked"{/if}>
+ </label>
+ </li>
+ <li>
+ <label>
+ <span class="property">{'Email administrators when a comment is modified'|@translate}</span>
+ <input type="checkbox" name="email_admin_on_comment_edition" {if ($comments.email_admin_on_comment_edition)}checked="checked"{/if}>
+ </label>
+ </li>
+ <li>
+ <label>
+ <span class="property">{'Email administrators when a comment is deleted'|@translate}</span>
+ <input type="checkbox" name="email_admin_on_comment_deletion" {if ($comments.email_admin_on_comment_deletion)}checked="checked"{/if}>
+ </label>
+ </li>
+
+ </ul>
+</fieldset>
+{/if}
+
+{if isset($upload)}
+<fieldset id="uploadConf">
+ <legend></legend>
+ <ul>
+ <li>
+ <label><span class="property">{'Show upload link every time'|@translate}</span>
+ <input type="checkbox" name="upload_link_everytime" {if ($upload.upload_link_everytime)}checked="checked"{/if}></label>
+ </li>
+ <li>
+ <label><span class="property">{'User access level to upload'|@translate}</span>
+ {html_options name="upload_user_access" options=$upload.upload_user_access_options selected=$upload.upload_user_access_options_selected}
+ </label>
+ </li>
+ <li>
+ <label>
+ <span class="property">{'Email admins when a picture is uploaded'|@translate}</span>
+ <input type="checkbox" name="email_admin_on_picture_uploaded" {if ($upload.email_admin_on_picture_uploaded)}checked="checked"{/if}>
+ </label>
+ </li>
+ </ul>
+</fieldset>
+{/if}
+
+{if isset($default)}
+{$PROFILE_CONTENT}
+{/if}
+
+{if !isset($default)}
+ <p>
+ <input class="submit" type="submit" name="submit" value="{'Submit'|@translate}" {$TAG_INPUT_ENABLED}>
+ <input class="submit" type="reset" name="reset" value="{'Reset'|@translate}">
+ </p>
+</form>
+{/if}