|
@@ -16,7 +16,7 @@
|
16
|
16
|
%>
|
17
|
17
|
<a title="${_('Edit current user')}" class="btn btn-default" data-toggle="modal" data-target="#user-edit-modal-dialog" data-remote="${user_edit_url}" >${ICON.FA('fa-edit t-less-visible')} ${_('Edit user')}</a>
|
18
|
18
|
|
19
|
|
- % if auth_is_internal:
|
|
19
|
+ % if tmpl_context.auth_is_internal:
|
20
|
20
|
<a title="${_('Change password')}" class="btn btn-default" data-toggle="modal" data-target="#user-edit-password-modal-dialog" data-remote="${user_password_edit_url}" >${ICON.FA('fa-key t-less-visible')} ${_('Password')}</a>
|
21
|
21
|
% endif
|
22
|
22
|
|
|
@@ -43,10 +43,10 @@
|
43
|
43
|
user_edit_url = tg.url('/user/{}/edit'.format(current_user.id), {'next_url': '/home'})
|
44
|
44
|
user_password_edit_url = tg.url('/user/{}/password/edit'.format(current_user.id))
|
45
|
45
|
%>
|
46
|
|
- <a title="${_('Edit my profile')}" class="btn btn-default" data-toggle="modal" data-target="#user-edit-modal-dialog" data-remote="${user_edit_url}" >${ICON.FA('fa-edit t-less-visible')} ${_('Edit my profile')}</a>
|
|
46
|
+ <a title="${_('Edit my profile')}" class="btn btn-default edit-profile-btn" data-toggle="modal" data-target="#user-edit-modal-dialog" data-remote="${user_edit_url}" >${ICON.FA('fa-edit t-less-visible')} ${_('Edit my profile')}</a>
|
47
|
47
|
|
48
|
|
- % if auth_is_internal:
|
49
|
|
- <a title="${_('Change password')}" class="btn btn-default" data-toggle="modal" data-target="#user-edit-password-modal-dialog" data-remote="${user_password_edit_url}" >${ICON.FA('fa-key t-less-visible')} ${_('Password')}</a>
|
|
48
|
+ % if tmpl_context.auth_is_internal:
|
|
49
|
+ <a title="${_('Change password')}" class="btn btn-default change-password-btn" data-toggle="modal" data-target="#user-edit-password-modal-dialog" data-remote="${user_password_edit_url}" >${ICON.FA('fa-key t-less-visible')} ${_('Password')}</a>
|
50
|
50
|
% endif
|
51
|
51
|
|
52
|
52
|
</div>
|