use smarty3 for config forms

This commit is contained in:
Tobias Diekershoff 2015-07-11 20:17:33 +02:00
parent d24bfb97de
commit 631476ff6e
2 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,2 @@
{{include file="field_input.tpl" field=$appid}}
<div class="submit"><input type="submit" name="curweather-submit" value="{{$submit}}" /></div>

View File

@ -0,0 +1,17 @@
<span id="settings_curweather_inflated" class="settings-block fakelink"
style="display: block;" onclick="openClose('settings_curweather_expanded');
openClose('settings_curweather_inflated');">
<h3>{{$header}}</h3>
</span>
<div id="settings_curweather_expanded" class="settings-block" style="display: none;">
<span class="fakelink" onclick="openClose('settings_curweather_expanded'); openClose('settings_curweather_inflated');">
<h3>{{$header}}</h3>
</span>
<div style="color: red; font-weight: bold;">{{$noappidtext}}</div>
{{include file="field_input.tpl" field=$curweather_loc}}
{{include file="field_select.tpl" field=$curweather_units}}
{{include file="field_checkbox.tpl" field=$enabled}}
<div class="settings-submit-wrapper" >
<input type="submit" id="curweather-settings-submit" name="curweather-settings-submit" class="settings-submit" value="{{$submit}}" />
</div>
</div>