2016-09-08 22:43:50 +00:00
|
|
|
<div class="cor-loader-inline" ng-if="user.anonymous || state == 'updating'"></div>
|
|
|
|
|
2016-11-04 21:57:55 +00:00
|
|
|
<!-- Confirm username -->
|
2016-09-08 22:43:50 +00:00
|
|
|
<div class="update-user" ng-show="hasPrompt(user, 'confirm_username') && state != 'updating'">
|
|
|
|
<h2>Confirm Username</h2>
|
|
|
|
<p>
|
|
|
|
The username <strong>{{ user.username }}</strong> was automatically generated to conform to the
|
|
|
|
Docker CLI guidelines for use as a namespace in <span class="registry-title"></span>.
|
|
|
|
</p>
|
|
|
|
<p>Please confirm the selected username or enter a different username below:</p>
|
2016-11-04 21:57:55 +00:00
|
|
|
<form name="usernameForm" ng-submit="updateUser({'username': username})">
|
2016-09-08 22:43:50 +00:00
|
|
|
<div class="namespace-input" binding="username" is-back-incompat="isBackIncompat"
|
|
|
|
namespace-title="Username" style="margin-bottom: 20px;"
|
|
|
|
has-external-error="state == 'existing'"></div>
|
|
|
|
|
|
|
|
<input type="submit" class="btn btn-primary"
|
|
|
|
ng-disabled="usernameForm.$invalid || state != 'confirmed'"
|
|
|
|
value="Confirm Username">
|
|
|
|
<span class="cor-loader-inline" ng-show="state == 'confirming'"></span>
|
|
|
|
<span class="username-status" ng-show="state == 'confirmed' && !isBackIncompat">
|
|
|
|
<i class="fa fa-check-circle"></i> Username valid
|
|
|
|
</span>
|
|
|
|
<span class="username-status" ng-show="state == 'existing'">
|
|
|
|
<i class="fa fa-ban"></i> Username already taken
|
|
|
|
</span>
|
|
|
|
<span class="username-status" ng-show="state == 'error'">
|
|
|
|
<i class="fa fa-exclamation-triangle"></i> Could not check username
|
|
|
|
</span>
|
|
|
|
<span class="username-status" ng-show="state == 'editing' && usernameForm.$invalid">
|
|
|
|
Usernames must be alphanumeric and be at least four characters in length
|
|
|
|
</span>
|
|
|
|
<span class="username-status" ng-show="state == 'confirmed' && isBackIncompat">
|
2016-11-28 20:22:45 +00:00
|
|
|
<i class="fa fa-exclamation-triangle"></i> Note: Usernames with dots or dashes are incompatible with Docker version 1.8 or older
|
2016-09-08 22:43:50 +00:00
|
|
|
</span>
|
|
|
|
</form>
|
2016-11-04 21:57:55 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Enter metadata -->
|
|
|
|
<div class="update-user" ng-show="!hasPrompt(user, 'confirm_username') && (hasPrompt(user, 'enter_name') || hasPrompt(user, 'enter_company')) && state != 'updating'">
|
|
|
|
<h2>Tell us a bit more about yourself</h2>
|
|
|
|
<div>This information will be displayed in your user profile.</div>
|
|
|
|
|
|
|
|
<form name="metadataForm" ng-submit="updateUser(metadata)" style="margin-top: 20px;">
|
|
|
|
<div class="form-group nested">
|
2016-11-09 20:29:53 +00:00
|
|
|
<label for="givenName">Given Name</label>
|
2016-11-04 21:57:55 +00:00
|
|
|
<div class="field-row">
|
|
|
|
<span class="field-container">
|
2016-11-09 20:29:53 +00:00
|
|
|
<input type="text" class="form-control" placeholder="Given Name" ng-model="metadata.given_name" name="givenName">
|
2016-11-04 21:57:55 +00:00
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group nested">
|
2016-11-09 20:29:53 +00:00
|
|
|
<label for="familyName">Family Name</label>
|
2016-11-04 21:57:55 +00:00
|
|
|
<div class="field-row">
|
|
|
|
<span class="field-container">
|
2016-11-09 20:29:53 +00:00
|
|
|
<input type="text" class="form-control" placeholder="Family Name" ng-model="metadata.family_name" name="familyName">
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group nested">
|
|
|
|
<label for="company">Company</label>
|
|
|
|
<div class="field-row">
|
|
|
|
<span class="field-container">
|
|
|
|
<input type="text" class="form-control" placeholder="Company name" ng-model="metadata.company" name="company"></span>
|
2016-11-04 21:57:55 +00:00
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div style="margin-top: 20px">
|
|
|
|
<input type="submit" class="btn btn-primary" value="Save Details"
|
|
|
|
ng-disabled="!metadata.name && !metadata.company">
|
|
|
|
<button class="btn btn-default"
|
|
|
|
ng-click="updateUser({'company': '', 'name': ''})">
|
|
|
|
No thanks</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
2016-09-08 22:43:50 +00:00
|
|
|
</div>
|