diff options
Diffstat (limited to 'polygerrit-ui/app/elements/settings/gr-account-info/gr-account-info.html')
-rw-r--r-- | polygerrit-ui/app/elements/settings/gr-account-info/gr-account-info.html | 28 |
1 files changed, 21 insertions, 7 deletions
diff --git a/polygerrit-ui/app/elements/settings/gr-account-info/gr-account-info.html b/polygerrit-ui/app/elements/settings/gr-account-info/gr-account-info.html index 0c619983ee..55164e0b1f 100644 --- a/polygerrit-ui/app/elements/settings/gr-account-info/gr-account-info.html +++ b/polygerrit-ui/app/elements/settings/gr-account-info/gr-account-info.html @@ -19,12 +19,15 @@ limitations under the License. <link rel="import" href="../../shared/gr-date-formatter/gr-date-formatter.html"> <link rel="import" href="../../shared/gr-rest-api-interface/gr-rest-api-interface.html"> -<link rel="import" href="../../../styles/gr-settings-styles.html"> +<link rel="import" href="../../../styles/gr-form-styles.html"> +<link rel="import" href="../../../styles/shared-styles.html"> + <dom-module id="gr-account-info"> <template> - <style include="gr-settings-styles"></style> - <div class="gr-settings-styles"> + <style include="shared-styles"></style> + <style include="gr-form-styles"></style> + <div class="gr-form-styles"> <section> <span class="title">ID</span> <span class="value">[[_account._account_id]]</span> @@ -41,17 +44,28 @@ limitations under the License. date-str="[[_account.registered_on]]"></gr-date-formatter> </span> </section> - <section> + <section id="usernameSection"> <span class="title">Username</span> - <span class="value">[[_account.username]]</span> + <span + hidden$="[[usernameMutable]]" + class="value">[[_username]]</span> + <span + hidden$="[[!usernameMutable]]" + class="value"> + <input + is="iron-input" + id="usernameInput" + disabled="[[_saving]]" + on-keydown="_handleKeydown" + bind-value="{{_username}}"> </section> <section id="nameSection"> <span class="title">Full name</span> <span - hidden$="[[mutable]]" + hidden$="[[nameMutable]]" class="value">[[_account.name]]</span> <span - hidden$="[[!mutable]]" + hidden$="[[!nameMutable]]" class="value"> <input is="iron-input" |