diff options
Diffstat (limited to 'templates/admin_stats.tpl')
| -rw-r--r-- | templates/admin_stats.tpl | 33 |
1 files changed, 12 insertions, 21 deletions
diff --git a/templates/admin_stats.tpl b/templates/admin_stats.tpl index 4c5e5f2..7121a6f 100644 --- a/templates/admin_stats.tpl +++ b/templates/admin_stats.tpl @@ -3,29 +3,20 @@ {form legend="Statistics Settings"} <input type="hidden" name="page" value="{$page}" /> - <div class="form-group"> - {formlabel label="Google Analytics UA" for="analytics_google_ua"} - {forminput} - <input type="text" class="form-control" name="analytics_google_ua" id="analytics_google_ua" value="{$gBitSystem->getConfig('analytics_google_ua')|escape}" /> - {formhelp note="UA from anayltics.google.com"} - {/forminput} - </div> - - <div class="form-group"> - {formlabel label="Microsoft Analytics TI" for="analytics_microsoft_ti"} - {forminput} - <input type="text" class="form-control" name="analytics_microsoft_ti" id="analytics_microsoft_ti" value="{$gBitSystem->getConfig('analytics_microsoft_ti')|escape}" /> - {formhelp note="TI from ads.microsoft.com conversion javascript"} - {/forminput} - </div> - {foreach from=$formFeaturesBit key=feature item=output} <div class="form-group"> - {formlabel label=$output.label for=$feature} - {forminput label="checkbox"} - {html_checkboxes name="$feature" values="y" checked=$gBitSystem->getConfig($feature) labels=false id=$feature} - {formhelp note=$output.note page=$output.page} - {/forminput} + {if $output.type == 'text'} + {forminput} + {formlabel label=$output.label for=$feature} + <input type="text" class="form-control" name="{$feature}" id="{$feature}" value="{$gBitSystem->getConfig($feature)|escape}" /> + {formhelp note=$output.note page=$output.page link=$output.link} + {/forminput} + {else} + {forminput label="checkbox"} + {html_checkboxes name="$feature" values="y" checked=$gBitSystem->getConfig($feature) labels=false id=$feature} {tr}{$output.label}{/tr} + {formhelp note=$output.note page=$output.page link=$output.link} + {/forminput} + {/if} </div> {/foreach} |
