]> git.mxchange.org Git - friendica-addons.git/commitdiff
use smarty3 for config forms
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Sat, 11 Jul 2015 18:17:33 +0000 (20:17 +0200)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Sat, 11 Jul 2015 18:17:33 +0000 (20:17 +0200)
curweather/templates/admin.tpl [new file with mode: 0644]
curweather/templates/settings.tpl [new file with mode: 0644]

diff --git a/curweather/templates/admin.tpl b/curweather/templates/admin.tpl
new file mode 100644 (file)
index 0000000..5f0c11b
--- /dev/null
@@ -0,0 +1,2 @@
+{{include file="field_input.tpl" field=$appid}}
+<div class="submit"><input type="submit" name="curweather-submit" value="{{$submit}}" /></div>
diff --git a/curweather/templates/settings.tpl b/curweather/templates/settings.tpl
new file mode 100644 (file)
index 0000000..1453b21
--- /dev/null
@@ -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>