diff options
Diffstat (limited to 'template/yoga')
-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%; } |