aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2018-09-27 22:45:43 +0200
committerMario <mario@mariovavti.com>2018-09-27 22:45:43 +0200
commitc15de3b68b2fecdaec70e5978f9b592ddfc57013 (patch)
tree937a8070edb8f4f50b0ec99cb68173c3bb5e75c1
parentf17261020d977e217e6b05475baaba7bd06500af (diff)
downloadvolse-hubzilla-c15de3b68b2fecdaec70e5978f9b592ddfc57013.tar.gz
volse-hubzilla-c15de3b68b2fecdaec70e5978f9b592ddfc57013.tar.bz2
volse-hubzilla-c15de3b68b2fecdaec70e5978f9b592ddfc57013.zip
more checks
-rw-r--r--view/tpl/settings_addon.tpl19
1 files changed, 14 insertions, 5 deletions
diff --git a/view/tpl/settings_addon.tpl b/view/tpl/settings_addon.tpl
index b5665f579..93bf3d083 100644
--- a/view/tpl/settings_addon.tpl
+++ b/view/tpl/settings_addon.tpl
@@ -3,11 +3,20 @@
<h2>{{$title}}</h2>
</div>
<div class="section-content-wrapper">
+ {{if $action_url}}
<form action="{{$action_url}}" method="post" autocomplete="off">
- <input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
- {{$content}}
- <div class="settings-submit-wrapper" >
- <button type="submit" name="submit" class="btn btn-primary">{{$submit}}</button>
- </div>
+ {{/if}}
+ {{if $form_security_token}}
+ <input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
+ {{/if}}
+ {{$content}}
+ {{if $submit}}
+ <div class="settings-submit-wrapper" >
+ <button type="submit" name="submit" class="btn btn-primary">{{$submit}}</button>
+ </div>
+ {{/if}}
+ {{if $action_url}}
+ </form>
+ {{/if}}
</div>
</div>