diff options
author | Mario Vavti <mario@mariovavti.com> | 2018-03-14 10:24:08 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2018-03-14 10:24:08 +0100 |
commit | 75721b7e8242701cc690a635175b8ef63ddba4fe (patch) | |
tree | f7983231638f1dffe7efdef5de7fdc2ea35980a5 /view/tpl/profile_edit.tpl | |
parent | fa3e7a574fdfef87f86dc89fbb30bbfef7e98463 (diff) | |
download | volse-hubzilla-75721b7e8242701cc690a635175b8ef63ddba4fe.tar.gz volse-hubzilla-75721b7e8242701cc690a635175b8ef63ddba4fe.tar.bz2 volse-hubzilla-75721b7e8242701cc690a635175b8ef63ddba4fe.zip |
reveal the profile name field only if multi prifiles feature is enabled
Diffstat (limited to 'view/tpl/profile_edit.tpl')
-rwxr-xr-x | view/tpl/profile_edit.tpl | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/view/tpl/profile_edit.tpl b/view/tpl/profile_edit.tpl index 95183fdf4..c967fa02c 100755 --- a/view/tpl/profile_edit.tpl +++ b/view/tpl/profile_edit.tpl @@ -4,7 +4,7 @@ <button type="button" class="btn btn-outline-secondary btn-sm dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <i class="fa fa-cog"></i> {{$tools_label}} </button> - <div class="dropdown-menu"> + <div class="dropdown-menu dropdown-menu-right"> <a class="dropdown-item" href="profile_photo" id="profile-photo_upload-link" title="{{$profpic}}"><i class="fa fa-fw fa-user"></i> {{$profpic}}</a> {{if $is_default}} <a class="dropdown-item" href="cover_photo" id="cover-photo_upload-link" title="{{$coverpic}}"><i class="fa fa-fw fa-picture-o"></i> {{$coverpic}}</a> @@ -15,7 +15,7 @@ <a class="dropdown-item" href="thing" id="profile-edit-thing-link" title="{{$addthing}}"><i class="fa fa-fw fa-plus-circle"></i> {{$addthing}}</a> <div class="dropdown-divider"></div> <a class="dropdown-item" href="profile/{{$profile_id}}/view" id="profile-edit-view-link" title="{{$viewprof}}">{{$viewprof}}</a> - {{if $profile_clone_link}} + {{if $multi_profiles}} <div class="dropdown-divider"></div> <a class="dropdown-item" href="{{$profile_clone_link}}" id="profile-edit-clone-link" title="{{$cr_prof}}">{{$cl_prof}}</a> {{/if}} @@ -56,7 +56,11 @@ </div> <div id="personal-collapse" class="panel-collapse collapse show" data-parent="#profile-edit-wrapper" role="tabpanel" aria-labelledby="personal"> <div class="section-content-tools-wrapper"> + {{if $multi_profiles}} {{include file="field_input.tpl" field=$profile_name}} + {{else}} + <input type="hidden" name="{{$profile_name.0}}" value="{{$profile_name.2}}"> + {{/if}} {{include file="field_input.tpl" field=$name}} |