diff options
author | Mario Vavti <mario@mariovavti.com> | 2016-02-29 22:01:13 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2016-02-29 22:01:13 +0100 |
commit | d27a627c4f65ca67bcc0f46fb830368c713043cd (patch) | |
tree | 7311b1ee2e397e16f3cb1a80ab5a83fbc35474f1 /view/tpl/profile_advanced.tpl | |
parent | 55ab5360d984700e3145a5933cd1275cfb54b76c (diff) | |
download | volse-hubzilla-d27a627c4f65ca67bcc0f46fb830368c713043cd.tar.gz volse-hubzilla-d27a627c4f65ca67bcc0f46fb830368c713043cd.tar.bz2 volse-hubzilla-d27a627c4f65ca67bcc0f46fb830368c713043cd.zip |
simplify profile edit button(s) and make it useful for multiple profiles
Diffstat (limited to 'view/tpl/profile_advanced.tpl')
-rwxr-xr-x | view/tpl/profile_advanced.tpl | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/view/tpl/profile_advanced.tpl b/view/tpl/profile_advanced.tpl index 780626cf9..3d09b762d 100755 --- a/view/tpl/profile_advanced.tpl +++ b/view/tpl/profile_advanced.tpl @@ -12,8 +12,19 @@ <i class="icon-thumbs-up-alt" title="{{$profile.likethis}}"></i> </button> {{/if}} - {{if $edit}} - <a href="{{$edit.link}}" class="btn btn-primary btn-xs"><i class="icon-pencil"></i> {{$edit.label}}</a> + {{if $editmenu.multi}} + <a class="btn btn-primary btn-xs dropdown-toggle" data-toggle="dropdown" href="#" ><i class="icon-pencil"></i> {{$editmenu.edit.3}}</a> + <ul class="dropdown-menu" role="menu"> + {{foreach $editmenu.menu.entries as $e}} + <li> + <a href="profiles/{{$e.id}}"><img class="dropdown-menu-img-xs" src='{{$e.photo}}'>{{$e.profile_name}}<div class='clear'></div></a> + </li> + {{/foreach}} + <li><a href="profile_photo" >{{$editmenu.menu.chg_photo}}</a></li> + {{if $editmenu.menu.cr_new}}<li><a href="profiles/new" id="profile-listing-new-link">{{$editmenu.menu.cr_new}}</a></li>{{/if}} + </ul> + {{else}} + <a class="btn btn-primary btn-xs" href="{{$editmenu.edit.0}}" ><i class="icon-pencil"></i> {{$editmenu.edit.3}}</a> {{/if}} </div> <h2>{{$title}}</h2> |