##// END OF EJS Templates
user-accounts: show info about password for external accounts.
marcink -
r4240:86414242 stable
parent child Browse files
Show More
@@ -76,6 +76,7 b' class MyAccountView(BaseAppView, DataGri'
76 76 def my_account_profile(self):
77 77 c = self.load_default_context()
78 78 c.active = 'profile'
79 c.extern_type = c.user.extern_type
79 80 return self._get_template_context(c)
80 81
81 82 @LoginRequired()
@@ -71,7 +71,7 b''
71 71 <div class="input">
72 72 ${h.text('description', class_='medium', placeholder=_('Description'))}
73 73 ${h.hidden('lifetime')}
74 ${h.select('role', '', c.role_options)}
74 ${h.select('role', request.GET.get('token_role', ''), c.role_options)}
75 75
76 76 % if c.allow_scoped_tokens:
77 77 ${h.hidden('scope_repo_id')}
@@ -4,7 +4,9 b''
4 4
5 5 % if c.extern_type != 'rhodecode':
6 6 <p>${_('Your user account details are managed by an external source. Details cannot be managed here.')}
7 <br/>${_('Source type')}: <strong>${c.extern_type}</strong>
7 <br/>${_('For VCS access please generate')}
8 <a href="${h.route_path('my_account_auth_tokens', _query={'token_role':'token_role_vcs'})}">Authentication Token</a> or <a href="${h.route_path('my_account_ssh_keys_generate')}">SSH Key</a>.
9 <br/>${_('Source type')}: <strong>${c.extern_type}</strong>
8 10 </p>
9 11 % else:
10 12 ${c.form.render() | n}
@@ -8,6 +8,17 b''
8 8 </div>
9 9
10 10 <div class="panel-body fields">
11 %if c.extern_type != 'rhodecode':
12 <% readonly = "readonly" %>
13 <% disabled = " disabled" %>
14 <div class="alert-warning" style="margin:0px 0px 20px 0px; padding: 10px">
15 <strong>${_('This user was created from external source (%s). Editing some of the settings is limited.' % c.extern_type)}</strong>
16 </div>
17 <div style="margin:-10px 0px 20px 0px;">
18 ${_('For VCS access please generate')}
19 <a href="${h.route_path('my_account_auth_tokens', _query={'token_role':'token_role_vcs'})}">Authentication Token</a> or <a href="${h.route_path('my_account_ssh_keys_generate')}">SSH Key</a>.
20 </div>
21 %endif
11 22 <div class="field">
12 23 <div class="label">
13 24 ${_('Photo')}:
@@ -11,13 +11,19 b''
11 11
12 12 %if c.extern_type != 'rhodecode':
13 13 <% readonly = "readonly" %>
14 <% disabled = "disabled" %>
14 <% disabled = " disabled" %>
15 <div class="alert-warning" style="margin:0px 0px 20px 0px; padding: 10px">
16 <strong>${_('This user was created from external source (%s). Editing some of the settings is limited.' % c.extern_type)}</strong>
17 </div>
18 <div style="margin:-10px 0px 20px 0px;">
19 ${_('For VCS access please generate')}
20 <a href="${h.route_path('my_account_auth_tokens', _query={'token_role':'token_role_vcs'})}">Authentication Token</a> or <a href="${h.route_path('my_account_ssh_keys_generate')}">SSH Key</a>.
21 </div>
22 %endif
23
24 %if c.extern_type != 'rhodecode':
15 25 <div class="infoform">
16 26 <div class="fields">
17 <p>${_('Your user account details are managed by an external source. Details cannot be managed here.')}
18 <br/>${_('Source type')}: <strong>${c.extern_type}</strong>
19 </p>
20
21 27 <div class="field">
22 28 <div class="label">
23 29 <label for="username">${_('Username')}:</label>
General Comments 0
You need to be logged in to leave comments. Login now