diff options
author | rvelices <rv-github@modusoptimus.com> | 2007-02-28 03:07:12 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2007-02-28 03:07:12 +0000 |
commit | ea56d7b2ac1d41ea19b5fb45843c839e30a0b37b (patch) | |
tree | 5f55c108b1a808867d44db2b6ebcf0ad573874b6 /template | |
parent | 30e259904cc38172b2b730455009455675f0d8f5 (diff) |
feature 657: permalinks for categories
git-svn-id: http://piwigo.org/svn/trunk@1866 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'template')
-rw-r--r-- | template/yoga/admin.tpl | 3 | ||||
-rw-r--r-- | template/yoga/admin/permalinks.tpl | 71 | ||||
-rw-r--r-- | template/yoga/default-layout.css | 6 |
3 files changed, 79 insertions, 1 deletions
diff --git a/template/yoga/admin.tpl b/template/yoga/admin.tpl index fdbd50614..5920f4e95 100644 --- a/template/yoga/admin.tpl +++ b/template/yoga/admin.tpl @@ -6,7 +6,7 @@ <ul> <li><a href="{U_RETURN}">{lang:home}</a></li> <li><a href="{U_FAQ}">{lang:instructions}</a></li> - <li><a href="{U_ADMIN}" title="{L_ADMIN_HINT}">{L_ADMIN}</a></li> + <li><a href="{U_ADMIN}" title="{lang:hint_admin}">{lang:admin}</a></li> </ul> </dd> </dl> @@ -34,6 +34,7 @@ <!-- BEGIN representative --> <li><a href="{representative.URL}">{lang:Representative}</a></li> <!-- END representative --> + <li><a href="{U_PERMALINKS}">{lang:Permalinks}</a></li> </ul> </dd> </dl> diff --git a/template/yoga/admin/permalinks.tpl b/template/yoga/admin/permalinks.tpl new file mode 100644 index 000000000..508cf66a9 --- /dev/null +++ b/template/yoga/admin/permalinks.tpl @@ -0,0 +1,71 @@ +<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> + </ul> + <h2>{lang:Permalinks}</h2> +</div> + +<form method="post"> +<fieldset><legend>{lang:Add/delete a permalink}</legend> + <label>Category: + <select name="cat_id"> + <option value="0">------</option> +<!-- BEGIN categories --> + <option value="{categories.VALUE}" {categories.SELECTED}>{categories.OPTION}</option> +<!-- END categories --> + </select> + </label> + + <label>{lang:Permalink}: + <input name="permalink" /> + </label> + + <label>{lang:Save to permalink history}: + <input type="checkbox" name="save" checked="checked" /> + </label> + + <p> + <input type="submit" class="submit" name="set_permalink" value="{lang:submit}"/> + </p> + </fieldset> +</form> + +<h3>{lang:Permalinks}</h3> +<table class="table2"> + <tr class="throw"> + <td>Id</td> + <td>{lang:Category}</td> + <td>{lang:Permalink}</td> + </tr> +<!-- BEGIN permalink --> + <tr> + <td>{permalink.CAT_ID}</td> + <td>{permalink.CAT}</td> + <td>{permalink.PERMALINK}</td> + </tr> +<!-- END permalink --> +</table> + +<h3>{lang:Permalink history}</h3> +<table class="table2"> + <tr class="throw"> + <td>Id</td> + <td>{lang:Category}</td> + <td>{lang:Permalink}</td> + <td>Deleted on</td> + <td>Last hit</td> + <td>Hit</td> + <td></td> + </tr> +<!-- BEGIN deleted_permalink --> + <tr> + <td>{deleted_permalink.cat_id}</td> + <td>{deleted_permalink.display_name}</td> + <td>{deleted_permalink.permalink}</td> + <td>{deleted_permalink.date_deleted}</td> + <td>{deleted_permalink.last_hit}</td> + <td>{deleted_permalink.hit}</td> + <td><a href="{deleted_permalink.U_DELETE}"><img src="{pwg_root}{themeconf:icon_dir}/delete.png" alt="Delete"></a></td> + </tr> +<!-- END deleted_permalink --> +</table> diff --git a/template/yoga/default-layout.css b/template/yoga/default-layout.css index 647f27781..2b43bc5bc 100644 --- a/template/yoga/default-layout.css +++ b/template/yoga/default-layout.css @@ -80,6 +80,12 @@ FORM P { margin-top: 2em; margin-bottom: 2em; } + +FORM FIELDSET P { + margin-top: 1em; + margin-bottom: 0; +} + .small { font-size: 80%; } |