Commit 0d731da2cbe7997398b05520fe9d1077aef15f26
1 parent
47e0b84a
KTS-4149. Added default text to the configuration settings template to display w…
…hen no settings have been defined for that configuration area. The settings for Electronic Signature should not be appearing on the Community Edition Fixed Committed By: Paul Barrett Reviewed by: Kevin Fourie
Showing
1 changed file
with
22 additions
and
18 deletions
templates/ktcore/configsettings.smarty
| @@ -32,31 +32,35 @@ | @@ -32,31 +32,35 @@ | ||
| 32 | {$group} | 32 | {$group} |
| 33 | </span></h3> | 33 | </span></h3> |
| 34 | <span class='descriptiveText'>{$groupItem.description}</span> | 34 | <span class='descriptiveText'>{$groupItem.description}</span> |
| 35 | + <div id='{$groupItem.id}' style='visibility: visible;'> | ||
| 36 | + <fieldset> | ||
| 35 | 37 | ||
| 36 | - <div id='{$groupItem.id}' style='visibility: visible;'> | ||
| 37 | - <fieldset> | 38 | + {* <!-- Display the settings, render the input according to the setting type (dropdown / radio / etc) --> *} |
| 39 | + {foreach from=$groupSettings.$group item=settings} | ||
| 38 | 40 | ||
| 39 | - {* <!-- Display the settings, render the input according to the setting type (dropdown / radio / etc) --> *} | ||
| 40 | - {foreach from=$groupSettings.$group item=settings} | 41 | + <p style='padding-bottom: 15px;'> |
| 42 | + {$settings.display_name}<br> | ||
| 43 | + {if $settings.description} | ||
| 44 | + <span class='descriptiveText'>{$settings.description}</span><br> | ||
| 45 | + {/if} | ||
| 46 | + {$context->renderInput($settings.id, $settings.type, $settings.value, $settings.default_value, $settings.options)}<br> | ||
| 47 | + </p> | ||
| 41 | 48 | ||
| 42 | - <p style='padding-bottom: 15px;'> | ||
| 43 | - {$settings.display_name}<br> | ||
| 44 | - {if $settings.description} | ||
| 45 | - <span class='descriptiveText'>{$settings.description}</span><br> | ||
| 46 | - {/if} | ||
| 47 | - {$context->renderInput($settings.id, $settings.type, $settings.value, $settings.default_value, $settings.options)}<br> | ||
| 48 | - </p> | 49 | + {/foreach} |
| 49 | 50 | ||
| 50 | - {/foreach} | 51 | + </fieldset> |
| 52 | + </div> | ||
| 53 | + {/foreach} | ||
| 51 | 54 | ||
| 52 | - </fieldset> | ||
| 53 | - </div> | 55 | + <br><hr> |
| 56 | + <input type="submit" name="AlterConfig" value="{i18n}Save Config Settings{/i18n}" /> | ||
| 54 | 57 | ||
| 55 | - {/foreach} | 58 | +{else} |
| 56 | 59 | ||
| 57 | -{/if} | 60 | + <p style='padding-top: 15px;padding-bottom: 15px;'> |
| 61 | + {i18n}This page defines configuration options which are currently reserved for future development.{/i18n} | ||
| 62 | + </p> | ||
| 58 | 63 | ||
| 59 | -<br><hr> | ||
| 60 | -<input type="submit" name="AlterConfig" value="{i18n}Save Config Settings{/i18n}" /> | 64 | +{/if} |
| 61 | 65 | ||
| 62 | </form> | 66 | </form> |
| 63 | \ No newline at end of file | 67 | \ No newline at end of file |