aboutsummaryrefslogtreecommitdiffstats
path: root/template/yoga/admin
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2005-09-14 21:57:05 +0000
committerplegall <plg@piwigo.org>2005-09-14 21:57:05 +0000
commit3371c757424cef291be02a946e528983dece9543 (patch)
tree2ede9c21e065d766d8a3226309635c46b596d77d /template/yoga/admin
parenteac1724ee5e20967d989916b76fc9076411be758 (diff)
- improvement: long localized messages are in HTML files instead of $lang
array. This is the case of admin/help and about pages. - deletion: of unused functions (ts_to_mysqldt, is_image, TN_exists, check_date_format, date_convert, get_category_directories, get_used_metadata_list, array_remove, pwg_write_debug, get_group_restrictions, get_all_group_restrictions, is_group_allowed, style_select, deprecated_getAttribute). - new: many new contextual help pages to replace descriptions previously included in pages. - modification: reorganisation of language files. Deletion of unused language keys, alphabetical sort. No faq.lang.php anymore (replaced by help.html). Only done for en_UK.iso-8859-1. git-svn-id: http://piwigo.org/svn/trunk@862 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--template/yoga/admin/cat_modify.tpl15
-rw-r--r--template/yoga/admin/cat_options.tpl7
-rw-r--r--template/yoga/admin/cat_perm.tpl7
-rw-r--r--template/yoga/admin/help.tpl13
-rw-r--r--template/yoga/admin/thumbnail.tpl89
-rw-r--r--template/yoga/admin/user_list.tpl7
6 files changed, 67 insertions, 71 deletions
diff --git a/template/yoga/admin/cat_modify.tpl b/template/yoga/admin/cat_modify.tpl
index d64df4960..aef85cb37 100644
--- a/template/yoga/admin/cat_modify.tpl
+++ b/template/yoga/admin/cat_modify.tpl
@@ -1,5 +1,10 @@
<!-- $Id$ -->
-<h2>{lang:title_edit_cat}</h2>
+<div class="titrePage">
+ <ul class="categoryActions">
+ <li><a href="{U_HELP}" onclick="popuphelp(this.href); return false;" title="{lang:Help}"><img src="template/yoga/theme/help.png" alt="(?)"></a></li>
+ </ul>
+ <h2>{lang:title_edit_cat}</h2>
+</div>
<h3>{CATEGORIES_NAV}</h3>
@@ -65,21 +70,21 @@
<legend>{lang:Options}</legend>
<table>
<tr>
- <td><strong>{L_EDIT_STATUS}</strong><br /><span class="small">{L_EDIT_STATUS_INFO}</span></td>
+ <td><strong>{L_EDIT_STATUS}</strong>
<td>
<input type="radio" name="status" value="public" {STATUS_PUBLIC} />{L_STATUS_PUBLIC}
<input type="radio" name="status" value="private" {STATUS_PRIVATE} />{L_STATUS_PRIVATE}
</td>
</tr>
<tr>
- <td><strong>{L_EDIT_LOCK}</strong><br /><span class="small">{L_EDIT_LOCK_INFO}</span></td>
+ <td><strong>{L_EDIT_LOCK}</strong>
<td>
<input type="radio" name="visible" value="false" {LOCKED} />{L_YES}
<input type="radio" name="visible" value="true" {UNLOCKED} />{L_NO}
</td>
</tr>
<tr>
- <td><strong>{L_EDIT_COMMENTABLE}</strong><br /><span class="small">{L_EDIT_COMMENTABLE_INFO}</span></td>
+ <td><strong>{L_EDIT_COMMENTABLE}</strong>
<td>
<input type="radio" name="commentable" value="true" {COMMENTABLE_TRUE} />{L_YES}
<input type="radio" name="commentable" value="false" {COMMENTABLE_FALSE} />{L_NO}
@@ -87,7 +92,7 @@
</tr>
<!-- BEGIN upload -->
<tr>
- <td><strong>{L_EDIT_UPLOADABLE}</strong><br /><span class="small">{L_EDIT_UPLOADABLE_INFO}</span></td>
+ <td><strong>{L_EDIT_UPLOADABLE}</strong>
<td>
<input type="radio" name="uploadable" value="true" {UPLOADABLE_TRUE} />{L_YES}
<input type="radio" name="uploadable" value="false" {UPLOADABLE_FALSE} />{L_NO}
diff --git a/template/yoga/admin/cat_options.tpl b/template/yoga/admin/cat_options.tpl
index 7ee2a945e..052b2a99c 100644
--- a/template/yoga/admin/cat_options.tpl
+++ b/template/yoga/admin/cat_options.tpl
@@ -1,5 +1,10 @@
<!-- $Id$ -->
-<h2>{lang:title_cat_options}</h2>
+<div class="titrePage">
+ <ul class="categoryActions">
+ <li><a href="{U_HELP}" onclick="popuphelp(this.href); return false;" title="{lang:Help}"><img src="template/yoga/theme/help.png" alt="(?)"></a></li>
+ </ul>
+ <h2>{lang:title_cat_options}</h2>
+</div>
<form method="post" action="{F_ACTION}" id="cat_options">
<fieldset>
diff --git a/template/yoga/admin/cat_perm.tpl b/template/yoga/admin/cat_perm.tpl
index 39374d5ed..0bc6efbcb 100644
--- a/template/yoga/admin/cat_perm.tpl
+++ b/template/yoga/admin/cat_perm.tpl
@@ -1,4 +1,9 @@
-<h2>{lang:Manage permissions for a category}</h2>
+<div class="titrePage">
+ <ul class="categoryActions">
+ <li><a href="{U_HELP}" onclick="popuphelp(this.href); return false;" title="{lang:Help}"><img src="template/yoga/theme/help.png" alt="(?)"></a></li>
+ </ul>
+ <h2>{lang:Manage permissions for a category}</h2>
+</div>
<h3>{CATEGORIES_NAV}</h3>
diff --git a/template/yoga/admin/help.tpl b/template/yoga/admin/help.tpl
deleted file mode 100644
index d2f59b811..000000000
--- a/template/yoga/admin/help.tpl
+++ /dev/null
@@ -1,13 +0,0 @@
- <!-- BEGIN cat -->
- <h3>{cat.NAME}</h3>
- <!-- BEGIN illustration -->
- <div style="text-align:center;margin:auto;margin-bottom:10px;"><img src="{cat.illustration.SRC_IMG}" style="border:1px solid black;" alt=""/></div>
- {cat.illustration.CAPTION}
- <!-- END illustration -->
- <ul style="text-align:left; margin-right:10px;">
- <!-- BEGIN item -->
- <li style="margin-bottom:5px;">{cat.item.CONTENT}</li>
- <!-- END item -->
- </ul>
- <p>&nbsp;</p>
- <!-- END cat -->
diff --git a/template/yoga/admin/thumbnail.tpl b/template/yoga/admin/thumbnail.tpl
index aa8bbcd0f..9e0d70f5e 100644
--- a/template/yoga/admin/thumbnail.tpl
+++ b/template/yoga/admin/thumbnail.tpl
@@ -1,5 +1,10 @@
<!-- $Id$ -->
-<h2>{lang:title_thumbnails}</h2>
+<div class="titrePage">
+ <ul class="categoryActions">
+ <li><a href="{U_HELP}" onclick="popuphelp(this.href); return false;" title="{lang:Help}"><img src="template/yoga/theme/help.png" alt="(?)"></a></li>
+ </ul>
+ <h2>{lang:title_thumbnails}</h2>
+</div>
<!-- BEGIN results -->
<div class="admin">{L_RESULTS}</div>
@@ -53,55 +58,39 @@
<!-- END results -->
<!-- BEGIN params -->
-<form method="post" action="{params.F_ACTION}">
- <table style="width:100%;">
- <tr>
- <th class="admin" colspan="3">{L_PARAMS}</th>
- </tr>
- <tr><td colspan="3">&nbsp;</td></tr>
- <tr>
- <td><div class="key">{L_GD}</div></td>
- <td class="choice">
- <input type="radio" name="gd" value="2" {params.GD2_CHECKED} />2.x
- <input type="radio" name="gd" value="1" {params.GD1_CHECKED} />1.x
- </td>
- <td style="width:50%;" class="row2">{L_GD_INFO}</td>
- </tr>
- <tr>
- <td><div class="key">{L_WIDTH}</div></td>
- <td class="choice">
- <input type="text" name="width" value="{params.WIDTH_TN}"/>
- </td>
- <td>{L_WIDTH_INFO}</td>
- </tr>
- <tr>
- <td><div class="key">{L_HEIGHT}</div></td>
- <td class="choice">
- <input type="text" name="height" value="{params.HEIGHT_TN}"/>
- </td>
- <td>{L_HEIGHT_INFO}</td>
- </tr>
- <tr>
- <td><div class="key">{L_CREATE}</div></td>
- <td class="choice">
- <input type="radio" name="n" value="5" {params.n_5_CHECKED} /> 5
- <input type="radio" name="n" value="10" {params.n_10_CHECKED} /> 10
- <input type="radio" name="n" value="20" {params.n_20_CHECKED} /> 20
- <input type="radio" name="n" value="all" {params.n_all_CHECKED} /> {L_ALL}
- </td>
- <td>{L_CREATE_INFO}</td>
- </tr>
- <tr>
- <td><div class="key">{L_FORMAT}</div></td>
- <td class="choice"><span style="font-weight:bold;">jpeg</span></td>
- <td>{L_FORMAT_INFO}</td>
- </tr>
- <tr>
- <td colspan="3" style="text-align:center;">
- <input type="submit" name="submit" value="{L_SUBMIT}"/>
- </td>
- </tr>
- </table>
+<form method="post" action="{params.F_ACTION}" class="properties">
+
+ <fieldset>
+ <legend>{L_PARAMS}</legend>
+
+ <ul>
+ <li>
+ <label><strong>{L_GD}</strong></label>
+ <input type="radio" name="gd" value="2" {params.GD2_CHECKED} />2.x
+ <input type="radio" name="gd" value="1" {params.GD1_CHECKED} />1.x
+ </li>
+
+ <li>
+ <label><strong>{L_WIDTH}</strong></label>
+ <input type="text" name="width" value="{params.WIDTH_TN}"/>
+ </li>
+
+ <li>
+ <label><strong>{L_HEIGHT}</strong></label>
+ <input type="text" name="height" value="{params.HEIGHT_TN}"/>
+ </li>
+
+ <li>
+ <label><strong>{lang:Number of thumbnails to create}</strong></label>
+ <input type="radio" name="n" value="5" {params.n_5_CHECKED} /> 5
+ <input type="radio" name="n" value="10" {params.n_10_CHECKED} /> 10
+ <input type="radio" name="n" value="20" {params.n_20_CHECKED} /> 20
+ <input type="radio" name="n" value="all" {params.n_all_CHECKED} /> {L_ALL}
+ </li>
+ </ul>
+ </fieldset>
+
+ <p><input type="submit" name="submit" value="{L_SUBMIT}"/></p>
</form>
<!-- END params -->
diff --git a/template/yoga/admin/user_list.tpl b/template/yoga/admin/user_list.tpl
index 67e8b131b..4c7c5e0b3 100644
--- a/template/yoga/admin/user_list.tpl
+++ b/template/yoga/admin/user_list.tpl
@@ -1,4 +1,9 @@
-<h2>{lang:title_liste_users}</h2>
+<div class="titrePage">
+ <ul class="categoryActions">
+ <li><a href="{U_HELP}" onclick="popuphelp(this.href); return false;" title="{lang:Help}"><img src="template/yoga/theme/help.png" alt="(?)"></a></li>
+ </ul>
+ <h2>{lang:title_liste_users}</h2>
+</div>
<form class="filter" method="post" name="add_user" action="{F_ADD_ACTION}">
<fieldset>