diff options
author | Mario <mario@mariovavti.com> | 2018-09-27 22:45:43 +0200 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2018-09-27 22:45:43 +0200 |
commit | c15de3b68b2fecdaec70e5978f9b592ddfc57013 (patch) | |
tree | 937a8070edb8f4f50b0ec99cb68173c3bb5e75c1 /view | |
parent | f17261020d977e217e6b05475baaba7bd06500af (diff) | |
download | volse-hubzilla-c15de3b68b2fecdaec70e5978f9b592ddfc57013.tar.gz volse-hubzilla-c15de3b68b2fecdaec70e5978f9b592ddfc57013.tar.bz2 volse-hubzilla-c15de3b68b2fecdaec70e5978f9b592ddfc57013.zip |
more checks
Diffstat (limited to 'view')
-rw-r--r-- | view/tpl/settings_addon.tpl | 19 |
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> |