Commit 33b12468aaf85cf938182201150cadf0e90974cf
1 parent
95d8cde8
KTS-1608
"Help files are not customizable" Fixed. Reviewed By: Conrad git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@6183 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
3 changed files
with
10 additions
and
2 deletions
help.php
| @@ -132,7 +132,8 @@ class HelpDispatcher extends KTStandardDispatcher { | @@ -132,7 +132,8 @@ class HelpDispatcher extends KTStandardDispatcher { | ||
| 132 | $aTemplateData = array( | 132 | $aTemplateData = array( |
| 133 | "context" => $this, | 133 | "context" => $this, |
| 134 | "help_body" => $aHelpData['body'], | 134 | "help_body" => $aHelpData['body'], |
| 135 | - "target_name" => KTUtil::arrayGet($aLocInfo, 'internal'), | 135 | + "help_title" => $aHelpData['title'], |
| 136 | + "target_name" => KTUtil::arrayGet($aLocInfo, 'subpath'), | ||
| 136 | "back_key" => $sBackKey, | 137 | "back_key" => $sBackKey, |
| 137 | 'can_edit' => $bCanEdit, | 138 | 'can_edit' => $bCanEdit, |
| 138 | ); | 139 | ); |
templates/ktcore/manage_help.smarty
| @@ -9,6 +9,7 @@ via the help system and click on <strong>customise this help file</strong>.{/i18 | @@ -9,6 +9,7 @@ via the help system and click on <strong>customise this help file</strong>.{/i18 | ||
| 9 | <table class="listing" cellspacing="0" cellpadding="0" border="0"> | 9 | <table class="listing" cellspacing="0" cellpadding="0" border="0"> |
| 10 | <thead> | 10 | <thead> |
| 11 | <tr> | 11 | <tr> |
| 12 | +<th>{i18n}Title{/i18n}</th> | ||
| 12 | <th>{i18n}Name{/i18n}</th> | 13 | <th>{i18n}Name{/i18n}</th> |
| 13 | <th>{i18n}Actions{/i18n}</th> | 14 | <th>{i18n}Actions{/i18n}</th> |
| 14 | </tr> | 15 | </tr> |
| @@ -16,6 +17,9 @@ via the help system and click on <strong>customise this help file</strong>.{/i18 | @@ -16,6 +17,9 @@ via the help system and click on <strong>customise this help file</strong>.{/i18 | ||
| 16 | { foreach item=oHelpReplacement from=$helpreplacements } | 17 | { foreach item=oHelpReplacement from=$helpreplacements } |
| 17 | <tr class="{cycle values="odd,even"}"> | 18 | <tr class="{cycle values="odd,even"}"> |
| 18 | <td> | 19 | <td> |
| 20 | +{ $oHelpReplacement->getTitle() } | ||
| 21 | +</td> | ||
| 22 | +<td> | ||
| 19 | <a href="{addQS}action=editReplacement&id={$oHelpReplacement->getId()}{/addQS}">{ $oHelpReplacement->getName() }</a> | 23 | <a href="{addQS}action=editReplacement&id={$oHelpReplacement->getId()}{/addQS}">{ $oHelpReplacement->getName() }</a> |
| 20 | </td> | 24 | </td> |
| 21 | <td> | 25 | <td> |
templates/ktcore/manage_help_item.smarty
| @@ -12,7 +12,10 @@ tinyMCE.init({ | @@ -12,7 +12,10 @@ tinyMCE.init({ | ||
| 12 | <form method="POST" action="{$smarty.server.PHP_SELF}"> | 12 | <form method="POST" action="{$smarty.server.PHP_SELF}"> |
| 13 | <input type="hidden" name="id" value="{$help->getId()}"> | 13 | <input type="hidden" name="id" value="{$help->getId()}"> |
| 14 | <input type="hidden" name="action" value="updateReplacement"> | 14 | <input type="hidden" name="action" value="updateReplacement"> |
| 15 | -<input type="text" name="title" value="{$help->getTitle()|escape}" /><br /><br /> | 15 | +<h2>{i18n}Title{/i18n}</h2> |
| 16 | +<input type="text" name="title" value="{$help->getTitle()|escape}" /> | ||
| 17 | +<h2>{i18n}Help content{/i18n}</h2> | ||
| 16 | <textarea cols="60" rows="20" name="description">{$help->getDescription()|escape}</textarea> | 18 | <textarea cols="60" rows="20" name="description">{$help->getDescription()|escape}</textarea> |
| 19 | +<br /> | ||
| 17 | <input type="submit" name="submit" value="{i18n}Update{/i18n}" /> | 20 | <input type="submit" name="submit" value="{i18n}Update{/i18n}" /> |
| 18 | </form> | 21 | </form> |