Commit 5e8e9781679e86a0559f28970c5abdc71697df03
1 parent
5ff745db
List existing help assignments (helpentity) as well as help replacements
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3481 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
36 additions
and
4 deletions
templates/ktcore/manage_help.smarty
| 1 | -<h2>Existing permissions</h2> | ||
| 2 | - | ||
| 3 | {literal} | 1 | {literal} |
| 4 | <style> | 2 | <style> |
| 5 | table.pretty { | 3 | table.pretty { |
| @@ -57,18 +55,52 @@ table.pretty > tbody > tr > td { | @@ -57,18 +55,52 @@ table.pretty > tbody > tr > td { | ||
| 57 | </style> | 55 | </style> |
| 58 | {/literal} | 56 | {/literal} |
| 59 | 57 | ||
| 58 | +<h2>Current help assignments</h2> | ||
| 59 | + | ||
| 60 | +<table class="pretty" cellspacing="0" cellpadding="0" border="0"> | ||
| 61 | +<thead> | ||
| 62 | +<tr> | ||
| 63 | +<th>Section</th> | ||
| 64 | +<th>Filename</th> | ||
| 65 | +<th>Customise</th> | ||
| 66 | +</tr> | ||
| 67 | +</thead> | ||
| 68 | +{foreach item=oHelpEntity from=$helps } | ||
| 69 | +<tr class="{cycle values="odd,even"}"> | ||
| 70 | +<td> { $oHelpEntity->sSection } </td> | ||
| 71 | +<td> { $oHelpEntity->sFilename } </td> | ||
| 72 | +<td> | ||
| 73 | +{ assign var="replacement" value=$oHelpEntity->checkReplacement() } | ||
| 74 | +{ if $replacement } | ||
| 75 | +<a href="{$smarty.server.PHP_SELF}?action=editReplacement&id={$replacement->getId()}">Edit</a> | ||
| 76 | +{ else } | ||
| 77 | +<a href="{$smarty.server.PHP_SELF}?action=customise&name={$oHelpEntity->getFilename()}">Customise</a> | ||
| 78 | +{ /if } | ||
| 79 | +</td> | ||
| 80 | +</tr> | ||
| 81 | +{ /foreach } | ||
| 82 | +</table> | ||
| 83 | + | ||
| 84 | +{ if $helpreplacements } | ||
| 85 | +<h2>Existing customised help pages</h2> | ||
| 86 | + | ||
| 60 | <table class="pretty" cellspacing="0" cellpadding="0" border="0"> | 87 | <table class="pretty" cellspacing="0" cellpadding="0" border="0"> |
| 61 | <thead> | 88 | <thead> |
| 62 | <tr> | 89 | <tr> |
| 63 | <th>Name</th> | 90 | <th>Name</th> |
| 91 | +<th>Actions</th> | ||
| 64 | </tr> | 92 | </tr> |
| 65 | </thead> | 93 | </thead> |
| 66 | -{ foreach item=oHelpReplacement from=$helps } | 94 | +{ foreach item=oHelpReplacement from=$helpreplacements } |
| 67 | <tr class="{cycle values="odd,even"}"> | 95 | <tr class="{cycle values="odd,even"}"> |
| 68 | <td> | 96 | <td> |
| 69 | -<a href="{$smarty.server.PHP_SELF}?id={$oHelpReplacement->iId}">{ $oHelpReplacement->sName }</a> | 97 | +<a href="{$smarty.server.PHP_SELF}?action=editReplacement&id={$oHelpReplacement->iId}">{ $oHelpReplacement->sName }</a> |
| 98 | +</td> | ||
| 99 | +<td> | ||
| 100 | +<a href="{$smarty.server.PHP_SELF}?action=deleteReplacement&id={$oHelpReplacement->iId}">Delete</a> | ||
| 70 | </td> | 101 | </td> |
| 71 | </tr> | 102 | </tr> |
| 72 | { /foreach } | 103 | { /foreach } |
| 73 | </table> | 104 | </table> |
| 105 | +{ /if } | ||
| 74 | 106 |