Allow a user to register from the landing page. Fix spacing issues.
This commit is contained in:
parent
70685e2aa8
commit
0d6d463fc1
5 changed files with 205 additions and 137 deletions
|
@ -6,6 +6,7 @@ from functools import wraps
|
||||||
|
|
||||||
from data import model
|
from data import model
|
||||||
from app import app
|
from app import app
|
||||||
|
from util.email import send_confirmation_email
|
||||||
from util.names import parse_repository_name
|
from util.names import parse_repository_name
|
||||||
from util.gravatar import compute_hash
|
from util.gravatar import compute_hash
|
||||||
from auth.permissions import (ReadRepositoryPermission,
|
from auth.permissions import (ReadRepositoryPermission,
|
||||||
|
@ -36,7 +37,7 @@ def welcome():
|
||||||
return make_response('welcome', 200)
|
return make_response('welcome', 200)
|
||||||
|
|
||||||
|
|
||||||
@app.route('/api/user/')
|
@app.route('/api/user/', methods=['GET'])
|
||||||
def get_logged_in_user():
|
def get_logged_in_user():
|
||||||
if current_user.is_anonymous():
|
if current_user.is_anonymous():
|
||||||
return jsonify({'anonymous': True})
|
return jsonify({'anonymous': True})
|
||||||
|
@ -51,6 +52,23 @@ def get_logged_in_user():
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
@app.route('/api/user/', methods=['POST'])
|
||||||
|
def create_user_api():
|
||||||
|
user_data = request.get_json()
|
||||||
|
try:
|
||||||
|
new_user = model.create_user(user_data['username'], user_data['password'],
|
||||||
|
user_data['email'])
|
||||||
|
code = model.create_confirm_email_code(new_user)
|
||||||
|
send_confirmation_email(new_user.username, new_user.email, code.code)
|
||||||
|
return make_response('Created', 201)
|
||||||
|
except model.DataModelException as ex:
|
||||||
|
error_resp = jsonify({
|
||||||
|
'message': ex.message,
|
||||||
|
})
|
||||||
|
error_resp.status_code = 400
|
||||||
|
return error_resp
|
||||||
|
|
||||||
|
|
||||||
@app.route('/api/users/<prefix>', methods=['GET'])
|
@app.route('/api/users/<prefix>', methods=['GET'])
|
||||||
@api_login_required
|
@api_login_required
|
||||||
def get_matching_users(prefix):
|
def get_matching_users(prefix):
|
||||||
|
|
|
@ -36,6 +36,18 @@
|
||||||
margin-left: 0px;
|
margin-left: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.form-signup input.ng-invalid.ng-dirty {
|
||||||
|
background-color: #FDD7D9;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-signup input.ng-valid.ng-dirty {
|
||||||
|
background-color: #DDFFEE;
|
||||||
|
}
|
||||||
|
|
||||||
|
.landing .popover-content {
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
|
||||||
.landing .message {
|
.landing .message {
|
||||||
font-size: 3.4em;
|
font-size: 3.4em;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
|
|
|
@ -7,14 +7,14 @@ $.fn.spin = function(opts) {
|
||||||
if (spinner) spinner.stop();
|
if (spinner) spinner.stop();
|
||||||
if (opts !== false) {
|
if (opts !== false) {
|
||||||
options = {
|
options = {
|
||||||
color: $this.css('color') || '#000',
|
color: $this.css('color') || '#000',
|
||||||
lines: 12, // The number of lines to draw
|
lines: 12, // The number of lines to draw
|
||||||
length: 7, // The length of each line
|
length: 7, // The length of each line
|
||||||
width: 4, // The line thickness
|
width: 4, // The line thickness
|
||||||
radius: 10, // The radius of the inner circle
|
radius: 10, // The radius of the inner circle
|
||||||
speed: 1, // Rounds per second
|
speed: 1, // Rounds per second
|
||||||
trail: 100, // Afterglow percentage
|
trail: 100, // Afterglow percentage
|
||||||
shadow: false // Whether to render a shadow
|
shadow: false // Whether to render a shadow
|
||||||
};
|
};
|
||||||
|
|
||||||
opts = $.extend(options, opts);
|
opts = $.extend(options, opts);
|
||||||
|
@ -54,6 +54,18 @@ quayApp = angular.module('quay', ['restangular', 'angularMoment'], function($pro
|
||||||
return userService;
|
return userService;
|
||||||
}])
|
}])
|
||||||
}).
|
}).
|
||||||
|
directive('match', function($parse) {
|
||||||
|
return {
|
||||||
|
require: 'ngModel',
|
||||||
|
link: function(scope, elem, attrs, ctrl) {
|
||||||
|
scope.$watch(function() {
|
||||||
|
return $parse(attrs.match)(scope) === ctrl.$modelValue;
|
||||||
|
}, function(currentValue) {
|
||||||
|
ctrl.$setValidity('mismatch', currentValue);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}).
|
||||||
config(['$routeProvider', '$locationProvider', function($routeProvider, $locationProvider) {
|
config(['$routeProvider', '$locationProvider', function($routeProvider, $locationProvider) {
|
||||||
$routeProvider.
|
$routeProvider.
|
||||||
when('/repository/:namespace/:name', {templateUrl: '/static/partials/view-repo.html', controller: RepoCtrl}).
|
when('/repository/:namespace/:name', {templateUrl: '/static/partials/view-repo.html', controller: RepoCtrl}).
|
||||||
|
|
|
@ -2,17 +2,17 @@ function getFirstTextLine(commentString) {
|
||||||
if (!commentString) { return; }
|
if (!commentString) { return; }
|
||||||
|
|
||||||
var lines = commentString.split('\n');
|
var lines = commentString.split('\n');
|
||||||
var MARKDOWN_CHARS = {
|
var MARKDOWN_CHARS = {
|
||||||
'#': true,
|
'#': true,
|
||||||
'-': true,
|
'-': true,
|
||||||
'>': true,
|
'>': true,
|
||||||
'`': true
|
'`': true
|
||||||
};
|
};
|
||||||
|
|
||||||
for (var i = 0; i < lines.length; ++i) {
|
for (var i = 0; i < lines.length; ++i) {
|
||||||
// Skip code lines.
|
// Skip code lines.
|
||||||
if (lines[i].indexOf(' ') == 0) {
|
if (lines[i].indexOf(' ') == 0) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Skip empty lines.
|
// Skip empty lines.
|
||||||
|
@ -22,7 +22,7 @@ function getFirstTextLine(commentString) {
|
||||||
|
|
||||||
// Skip control lines.
|
// Skip control lines.
|
||||||
if (MARKDOWN_CHARS[$.trim(lines[i])[0]]) {
|
if (MARKDOWN_CHARS[$.trim(lines[i])[0]]) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
return getMarkedDown(lines[i]);
|
return getMarkedDown(lines[i]);
|
||||||
|
@ -43,30 +43,30 @@ function HeaderCtrl($scope, UserService) {
|
||||||
$('#repoSearch').typeahead({
|
$('#repoSearch').typeahead({
|
||||||
name: 'repositories',
|
name: 'repositories',
|
||||||
remote: {
|
remote: {
|
||||||
url: '/api/repository/find/%QUERY',
|
url: '/api/repository/find/%QUERY',
|
||||||
filter: function(data) {
|
filter: function(data) {
|
||||||
var datums = [];
|
var datums = [];
|
||||||
for (var i = 0; i < data.repositories.length; ++i) {
|
for (var i = 0; i < data.repositories.length; ++i) {
|
||||||
var repo = data.repositories[i];
|
var repo = data.repositories[i];
|
||||||
datums.push({
|
datums.push({
|
||||||
'value': repo.name,
|
'value': repo.name,
|
||||||
'tokens': [repo.name, repo.namespace],
|
'tokens': [repo.name, repo.namespace],
|
||||||
'repo': repo
|
'repo': repo
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
return datums;
|
return datums;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
template: function (datum) {
|
template: function (datum) {
|
||||||
template = '<div class="repo-mini-listing">';
|
template = '<div class="repo-mini-listing">';
|
||||||
template += '<i class="icon-hdd icon-large"></i>'
|
template += '<i class="icon-hdd icon-large"></i>'
|
||||||
template += '<span class="name">' + datum.repo.namespace +'/' + datum.repo.name + '</span>'
|
template += '<span class="name">' + datum.repo.namespace +'/' + datum.repo.name + '</span>'
|
||||||
if (datum.repo.description) {
|
if (datum.repo.description) {
|
||||||
template += '<span class="description">' + getFirstTextLine(datum.repo.description) + '</span>'
|
template += '<span class="description">' + getFirstTextLine(datum.repo.description) + '</span>'
|
||||||
}
|
}
|
||||||
|
|
||||||
template += '</div>'
|
template += '</div>'
|
||||||
return template;
|
return template;
|
||||||
},
|
},
|
||||||
|
|
||||||
});
|
});
|
||||||
|
@ -98,8 +98,26 @@ function RepoListCtrl($scope, Restangular) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function LandingCtrl($scope) {
|
function LandingCtrl($scope, $timeout, Restangular, UserService) {
|
||||||
|
$('.form-signup').popover();
|
||||||
|
|
||||||
|
$scope.$watch( function () { return UserService.currentUser(); }, function (currentUser) {
|
||||||
|
$scope.user = currentUser;
|
||||||
|
}, true);
|
||||||
|
|
||||||
|
$scope.awaitingConfirmation = false;
|
||||||
|
$scope.register = function() {
|
||||||
|
var newUserPost = Restangular.one('user/');
|
||||||
|
newUserPost.customPOST($scope.newUser).then(function() {
|
||||||
|
$scope.awaitingConfirmation = true;
|
||||||
|
}, function(result) {
|
||||||
|
console.log("Displaying error message.");
|
||||||
|
$scope.registerError = result.data.message;
|
||||||
|
$timeout(function() {
|
||||||
|
$('.form-signup').popover('show');
|
||||||
|
});
|
||||||
|
});
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
function RepoCtrl($scope, Restangular, $routeParams, $rootScope) {
|
function RepoCtrl($scope, Restangular, $routeParams, $rootScope) {
|
||||||
|
@ -108,27 +126,27 @@ function RepoCtrl($scope, Restangular, $routeParams, $rootScope) {
|
||||||
$rootScope.title = 'Loading...';
|
$rootScope.title = 'Loading...';
|
||||||
|
|
||||||
$scope.showTab = function(tabName) {
|
$scope.showTab = function(tabName) {
|
||||||
for (var i = 0; i < tabs.length; ++i) {
|
for (var i = 0; i < tabs.length; ++i) {
|
||||||
$('#' + tabs[i]).hide();
|
$('#' + tabs[i]).hide();
|
||||||
$('#' + tabs[i] + '-tab').removeClass('active');
|
$('#' + tabs[i] + '-tab').removeClass('active');
|
||||||
}
|
}
|
||||||
|
|
||||||
$('#' + tabName).show();
|
$('#' + tabName).show();
|
||||||
$('#' + tabName + '-tab').addClass('active');
|
$('#' + tabName + '-tab').addClass('active');
|
||||||
|
|
||||||
if (tabName == 'image-history') {
|
if (tabName == 'image-history') {
|
||||||
$scope.listImages();
|
$scope.listImages();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.editDescription = function() {
|
$scope.editDescription = function() {
|
||||||
if (!$scope.repo.can_write) { return; }
|
if (!$scope.repo.can_write) { return; }
|
||||||
|
|
||||||
if (!$scope.markdownDescriptionEditor) {
|
if (!$scope.markdownDescriptionEditor) {
|
||||||
var converter = Markdown.getSanitizingConverter();
|
var converter = Markdown.getSanitizingConverter();
|
||||||
var editor = new Markdown.Editor(converter, '-description');
|
var editor = new Markdown.Editor(converter, '-description');
|
||||||
editor.run();
|
editor.run();
|
||||||
$scope.markdownDescriptionEditor = editor;
|
$scope.markdownDescriptionEditor = editor;
|
||||||
}
|
}
|
||||||
|
|
||||||
$('#wmd-input-description')[0].value = $scope.repo.description;
|
$('#wmd-input-description')[0].value = $scope.repo.description;
|
||||||
|
@ -155,12 +173,12 @@ function RepoCtrl($scope, Restangular, $routeParams, $rootScope) {
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.listImages = function() {
|
$scope.listImages = function() {
|
||||||
if ($scope.imageHistory) { return; }
|
if ($scope.imageHistory) { return; }
|
||||||
|
|
||||||
var imageFetch = Restangular.one('repository/' + namespace + '/' + name + '/tag/' + $scope.currentTag.name + '/images');
|
var imageFetch = Restangular.one('repository/' + namespace + '/' + name + '/tag/' + $scope.currentTag.name + '/images');
|
||||||
imageFetch.get().then(function(resp) {
|
imageFetch.get().then(function(resp) {
|
||||||
$scope.imageHistory = resp.images;
|
$scope.imageHistory = resp.images;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
var namespace = $routeParams.namespace;
|
var namespace = $routeParams.namespace;
|
||||||
|
@ -178,14 +196,14 @@ function RepoCtrl($scope, Restangular, $routeParams, $rootScope) {
|
||||||
|
|
||||||
var clip = new ZeroClipboard($('#copyClipboard'), { 'moviePath': 'static/lib/ZeroClipboard.swf' });
|
var clip = new ZeroClipboard($('#copyClipboard'), { 'moviePath': 'static/lib/ZeroClipboard.swf' });
|
||||||
clip.on('complete', function() {
|
clip.on('complete', function() {
|
||||||
// Resets the animation.
|
// Resets the animation.
|
||||||
var elem = $('#clipboardCopied')[0];
|
var elem = $('#clipboardCopied')[0];
|
||||||
elem.style.display = 'none';
|
elem.style.display = 'none';
|
||||||
|
|
||||||
// Show the notification.
|
// Show the notification.
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
elem.style.display = 'block';
|
elem.style.display = 'block';
|
||||||
}, 1);
|
}, 1);
|
||||||
});
|
});
|
||||||
|
|
||||||
$scope.loading = false;
|
$scope.loading = false;
|
||||||
|
@ -201,35 +219,34 @@ function RepoAdminCtrl($scope, Restangular, $routeParams, $rootScope) {
|
||||||
var name = $routeParams.name;
|
var name = $routeParams.name;
|
||||||
|
|
||||||
$('#userSearch').typeahead({
|
$('#userSearch').typeahead({
|
||||||
name: 'users',
|
name: 'users',
|
||||||
remote: {
|
remote: {
|
||||||
url: '/api/users/%QUERY',
|
url: '/api/users/%QUERY',
|
||||||
filter: function(data) {
|
filter: function(data) {
|
||||||
var datums = [];
|
var datums = [];
|
||||||
for (var i = 0; i < data.users.length; ++i) {
|
for (var i = 0; i < data.users.length; ++i) {
|
||||||
var user = data.users[i];
|
var user = data.users[i];
|
||||||
datums.push({
|
datums.push({
|
||||||
'value': user,
|
'value': user,
|
||||||
'tokens': [user],
|
'tokens': [user],
|
||||||
'username': user
|
'username': user
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
return datums;
|
return datums;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
template: function (datum) {
|
template: function (datum) {
|
||||||
template = '<div class="user-mini-listing">';
|
template = '<div class="user-mini-listing">';
|
||||||
template += '<i class="icon-user icon-large"></i>'
|
template += '<i class="icon-user icon-large"></i>'
|
||||||
template += '<span class="name">' + datum.username + '</span>'
|
template += '<span class="name">' + datum.username + '</span>'
|
||||||
template += '</div>'
|
template += '</div>'
|
||||||
return template;
|
return template;
|
||||||
},
|
},
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#userSearch').on('typeahead:selected', function(e, datum) {
|
$('#userSearch').on('typeahead:selected', function(e, datum) {
|
||||||
$('#userSearch').typeahead('setQuery', '');
|
$('#userSearch').typeahead('setQuery', '');
|
||||||
$scope.addNewPermission(datum.username);
|
$scope.addNewPermission(datum.username);
|
||||||
});
|
});
|
||||||
|
|
||||||
$scope.addNewPermission = function(username) {
|
$scope.addNewPermission = function(username) {
|
||||||
|
@ -239,34 +256,34 @@ function RepoAdminCtrl($scope, Restangular, $routeParams, $rootScope) {
|
||||||
// Need the $scope.apply for both the permission stuff to change and for
|
// Need the $scope.apply for both the permission stuff to change and for
|
||||||
// the XHR call to be made.
|
// the XHR call to be made.
|
||||||
$scope.$apply(function() {
|
$scope.$apply(function() {
|
||||||
$scope.addRole(username, 'read')
|
$scope.addRole(username, 'read')
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.deleteRole = function(username) {
|
$scope.deleteRole = function(username) {
|
||||||
var permissionDelete = Restangular.one('repository/' + namespace + '/' + name + '/permissions/' + username);
|
var permissionDelete = Restangular.one('repository/' + namespace + '/' + name + '/permissions/' + username);
|
||||||
permissionDelete.customDELETE().then(function() {
|
permissionDelete.customDELETE().then(function() {
|
||||||
delete $scope.permissions[username];
|
delete $scope.permissions[username];
|
||||||
}, function(result) {
|
}, function(result) {
|
||||||
if (result.status == 409) {
|
if (result.status == 409) {
|
||||||
$('#onlyadminModal').modal({});
|
$('#onlyadminModal').modal({});
|
||||||
} else {
|
} else {
|
||||||
$('#cannotchangeModal').modal({});
|
$('#cannotchangeModal').modal({});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.addRole = function(username, role) {
|
$scope.addRole = function(username, role) {
|
||||||
var permission = {
|
var permission = {
|
||||||
'role': role
|
'role': role
|
||||||
};
|
};
|
||||||
|
|
||||||
var permissionPost = Restangular.one('repository/' + namespace + '/' + name + '/permissions/' + username);
|
var permissionPost = Restangular.one('repository/' + namespace + '/' + name + '/permissions/' + username);
|
||||||
permissionPost.customPOST(permission).then(function() {
|
permissionPost.customPOST(permission).then(function() {
|
||||||
$scope.permissions[username] = permission;
|
$scope.permissions[username] = permission;
|
||||||
$scope.permissions = $scope.permissions;
|
$scope.permissions = $scope.permissions;
|
||||||
}, function(result) {
|
}, function(result) {
|
||||||
$('#cannotchangeModal').modal({});
|
$('#cannotchangeModal').modal({});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -277,50 +294,50 @@ function RepoAdminCtrl($scope, Restangular, $routeParams, $rootScope) {
|
||||||
|
|
||||||
var permissionPut = Restangular.one('repository/' + namespace + '/' + name + '/permissions/' + username);
|
var permissionPut = Restangular.one('repository/' + namespace + '/' + name + '/permissions/' + username);
|
||||||
permissionPut.customPUT(permission).then(function() {}, function(result) {
|
permissionPut.customPUT(permission).then(function() {}, function(result) {
|
||||||
if (result.status == 409) {
|
if (result.status == 409) {
|
||||||
permission.role = currentRole;
|
permission.role = currentRole;
|
||||||
$('#onlyadminModal').modal({});
|
$('#onlyadminModal').modal({});
|
||||||
} else {
|
} else {
|
||||||
$('#cannotchangeModal').modal({});
|
$('#cannotchangeModal').modal({});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.askChangeAccess = function(newAccess) {
|
$scope.askChangeAccess = function(newAccess) {
|
||||||
$('#make' + newAccess + 'Modal').modal({});
|
$('#make' + newAccess + 'Modal').modal({});
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.changeAccess = function(newAccess) {
|
$scope.changeAccess = function(newAccess) {
|
||||||
$('#make' + newAccess + 'Modal').modal('hide');
|
$('#make' + newAccess + 'Modal').modal('hide');
|
||||||
|
|
||||||
var visibility = {
|
var visibility = {
|
||||||
'visibility': newAccess
|
'visibility': newAccess
|
||||||
};
|
};
|
||||||
var visibilityPost = Restangular.one('repository/' + namespace + '/' + name + '/changevisibility');
|
var visibilityPost = Restangular.one('repository/' + namespace + '/' + name + '/changevisibility');
|
||||||
visibilityPost.customPOST(visibility).then(function() {
|
visibilityPost.customPOST(visibility).then(function() {
|
||||||
$scope.repo.is_public = newAccess == 'public';
|
$scope.repo.is_public = newAccess == 'public';
|
||||||
}, function() {
|
}, function() {
|
||||||
$('#cannotchangeModal').modal({});
|
$('#cannotchangeModal').modal({});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.askDelete = function() {
|
$scope.askDelete = function() {
|
||||||
$('#confirmdeleteModal').modal({});
|
$('#confirmdeleteModal').modal({});
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.deleteRepo = function() {
|
$scope.deleteRepo = function() {
|
||||||
$('#confirmdeleteModal').modal('hide');
|
$('#confirmdeleteModal').modal('hide');
|
||||||
|
|
||||||
var deleteAction = Restangular.one('repository/' + namespace + '/' + name);
|
var deleteAction = Restangular.one('repository/' + namespace + '/' + name);
|
||||||
deleteAction.customDELETE().then(function() {
|
deleteAction.customDELETE().then(function() {
|
||||||
$scope.repo = null;
|
$scope.repo = null;
|
||||||
|
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
document.location = '/#/repository';
|
document.location = '/#/repository';
|
||||||
}, 1000);
|
}, 1000);
|
||||||
}, function() {
|
}, function() {
|
||||||
$('#cannotchangeModal').modal({});
|
$('#cannotchangeModal').modal({});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
$('.spin').spin();
|
$('.spin').spin();
|
||||||
|
|
|
@ -8,12 +8,21 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="signup-container">
|
<div class="signup-container">
|
||||||
<form method="post" class="form-signup">
|
<div ng-show="user.anonymous">
|
||||||
<input type="text" class="form-control" placeholder="Create a username" name="username" autofocus>
|
<form class="form-signup" name="signupForm" ng-submit="register()" data-trigger="manual" data-content="{{ registerError }}" data-placement="left" ng-show="!awaitingConfirmation">
|
||||||
<input type="text" class="form-control" placeholder="Email address" name="email">
|
<input type="text" class="form-control" placeholder="Create a username" name="username" ng-model="newUser.username" autofocus required>
|
||||||
<input type="password" class="form-control" placeholder="Create a password" name="password">
|
<input type="email" class="form-control" placeholder="Email address" ng-model="newUser.email" required>
|
||||||
<button class="btn btn-lg btn-primary btn-block" type="submit">Get Started!</button>
|
<input type="password" class="form-control" placeholder="Create a password" ng-model="newUser.password" required>
|
||||||
</form>
|
<input type="password" class="form-control" placeholder="Verify your password" ng-model="newUser.repeatePassword" match="newUser.password" required>
|
||||||
|
<button class="btn btn-lg btn-primary btn-block" ng-disabled="signupForm.$invalid" type="submit">Get Started!</button>
|
||||||
|
</form>
|
||||||
|
<div ng-show="awaitingConfirmation">
|
||||||
|
<div class="sub-message">Thank you for registering! We have sent you an activation email. You must <b>verify your email address</b> before you can continue.</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div ng-show="!user.anonymous">
|
||||||
|
<div class="sub-message">Some message about how awesome it is to be a Quay user goes here.</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="shoutouts">
|
<div class="shoutouts">
|
||||||
|
|
Reference in a new issue