diff options
author | Mario Vavti <mario@mariovavti.com> | 2017-02-02 14:19:23 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2017-02-02 14:19:23 +0100 |
commit | 63e06578c46a104b377b196aec27c6409fe9baf1 (patch) | |
tree | 0f523ac6b5fe6c4e873f721b3dfe6ff29d1353ba /view/tpl | |
parent | a1f03015ec4245bc3c2c85e75327e191744ad559 (diff) | |
download | volse-hubzilla-63e06578c46a104b377b196aec27c6409fe9baf1.tar.gz volse-hubzilla-63e06578c46a104b377b196aec27c6409fe9baf1.tar.bz2 volse-hubzilla-63e06578c46a104b377b196aec27c6409fe9baf1.zip |
use bootstrap dropdown for login
Diffstat (limited to 'view/tpl')
-rwxr-xr-x | view/tpl/login.tpl | 6 | ||||
-rwxr-xr-x | view/tpl/nav.tpl | 12 |
2 files changed, 8 insertions, 10 deletions
diff --git a/view/tpl/login.tpl b/view/tpl/login.tpl index 1c2841adf..3d3faa41c 100755 --- a/view/tpl/login.tpl +++ b/view/tpl/login.tpl @@ -1,6 +1,3 @@ -{{if $login_page}} -<div class="generic-content-wrapper-styled"> -{{/if}} <form action="{{$dest_url}}" id="{{$form_id}}" method="post" > <input type="hidden" name="auth-params" value="login" /> <div id="login-main"> @@ -20,6 +17,5 @@ {{/foreach}} </form> {{if $login_page}} -</div> <script type="text/javascript"> $(document).ready(function() { $("#id_{{$lname.0}}").focus();} );</script> -{{/if}}
\ No newline at end of file +{{/if}} diff --git a/view/tpl/nav.tpl b/view/tpl/nav.tpl index 5b4492c1b..933a33745 100755 --- a/view/tpl/nav.tpl +++ b/view/tpl/nav.tpl @@ -143,11 +143,13 @@ {{/if}} {{if $nav.login && !$userinfo}} - <li class="nav-login hidden-xs"> - <a onclick="openClose('nav-login'); return false;" href="#" title="{{$nav.loginmenu.0.3}}" id="{{$nav.loginmenu.0.4}}">{{$nav.loginmenu.0.1}} <span class="caret" id="loginmenu-caret"></span></a> - <div id="nav-login" class="login-dropdown-menu" style="display:none; width:150%;"> - {{$nav.login}} - {{$nav.remote_login}} + <li class=""> + <a href="#" class="dropdown-toggle" title="{{$nav.loginmenu.0.3}}" id="{{$nav.loginmenu.0.4}}" data-toggle="dropdown">{{$nav.loginmenu.0.1}} <span class="caret" id="loginmenu-caret"></span></a> + <div id="nav-login" class="dropdown-menu"> + <div class="form-group"> + {{$nav.login}} + </div> + {{$nav.remote_login}} </div> </li> {{/if}} |