From 5807af8b8f05204431d133c296060674111a288d Mon Sep 17 00:00:00 2001 From: Ben Roberts Date: Sat, 27 Aug 2011 19:53:35 +0100 Subject: [PATCH] Move admin settings value into dedicated template file --- webui/source/templates/admin/settings.tpl | 26 +------------------ .../fragments/admin-setting-value.tpl | 25 ++++++++++++++++++ 2 files changed, 26 insertions(+), 25 deletions(-) create mode 100644 webui/source/templates/fragments/admin-setting-value.tpl diff --git a/webui/source/templates/admin/settings.tpl b/webui/source/templates/admin/settings.tpl index 7cf3361..874a6d3 100644 --- a/webui/source/templates/admin/settings.tpl +++ b/webui/source/templates/admin/settings.tpl @@ -13,31 +13,7 @@ {$name} - {switch $type} - {case Sihnon_Config::TYPE_BOOL} - - {/case} - {case Sihnon_Config::TYPE_INT} - - {/case} - {case Sihnon_Config::TYPE_STRING} - - {/case} - {case Sihnon_Config::TYPE_STRING_LIST} -
- {foreach from=$value item=line name=settings} -
- - -
- {/foreach} -
-
- - -
- {/case} - {/switch} + {include file="fragments/admin-setting-value.tpl"} {/foreach} diff --git a/webui/source/templates/fragments/admin-setting-value.tpl b/webui/source/templates/fragments/admin-setting-value.tpl new file mode 100644 index 0000000..7ffcf9a --- /dev/null +++ b/webui/source/templates/fragments/admin-setting-value.tpl @@ -0,0 +1,25 @@ +{switch $type} + {case Sihnon_Config::TYPE_BOOL} + + {/case} + {case Sihnon_Config::TYPE_INT} + + {/case} + {case Sihnon_Config::TYPE_STRING} + + {/case} + {case Sihnon_Config::TYPE_STRING_LIST} +
+ {foreach from=$value item=line name=settings} +
+ + +
+ {/foreach} +
+
+ + +
+ {/case} +{/switch} \ No newline at end of file