##// 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 def my_account_profile(self):
76 def my_account_profile(self):
77 c = self.load_default_context()
77 c = self.load_default_context()
78 c.active = 'profile'
78 c.active = 'profile'
79 c.extern_type = c.user.extern_type
79 return self._get_template_context(c)
80 return self._get_template_context(c)
80
81
81 @LoginRequired()
82 @LoginRequired()
@@ -71,7 +71,7 b''
71 <div class="input">
71 <div class="input">
72 ${h.text('description', class_='medium', placeholder=_('Description'))}
72 ${h.text('description', class_='medium', placeholder=_('Description'))}
73 ${h.hidden('lifetime')}
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 % if c.allow_scoped_tokens:
76 % if c.allow_scoped_tokens:
77 ${h.hidden('scope_repo_id')}
77 ${h.hidden('scope_repo_id')}
@@ -4,6 +4,8 b''
4
4
5 % if c.extern_type != 'rhodecode':
5 % if c.extern_type != 'rhodecode':
6 <p>${_('Your user account details are managed by an external source. Details cannot be managed here.')}
6 <p>${_('Your user account details are managed by an external source. Details cannot be managed here.')}
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>.
7 <br/>${_('Source type')}: <strong>${c.extern_type}</strong>
9 <br/>${_('Source type')}: <strong>${c.extern_type}</strong>
8 </p>
10 </p>
9 % else:
11 % else:
@@ -8,6 +8,17 b''
8 </div>
8 </div>
9
9
10 <div class="panel-body fields">
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 <div class="field">
22 <div class="field">
12 <div class="label">
23 <div class="label">
13 ${_('Photo')}:
24 ${_('Photo')}:
@@ -12,12 +12,18 b''
12 %if c.extern_type != 'rhodecode':
12 %if c.extern_type != 'rhodecode':
13 <% readonly = "readonly" %>
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 <div class="infoform">
25 <div class="infoform">
16 <div class="fields">
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 <div class="field">
27 <div class="field">
22 <div class="label">
28 <div class="label">
23 <label for="username">${_('Username')}:</label>
29 <label for="username">${_('Username')}:</label>
General Comments 0
You need to be logged in to leave comments. Login now