2013-12-18 03:56:28 +00:00
|
|
|
<div class="loading" ng-show="creating">
|
|
|
|
<div class="quay-spinner"></div>
|
2013-11-07 20:19:52 +00:00
|
|
|
</div>
|
|
|
|
|
2013-12-18 03:56:28 +00:00
|
|
|
<div class="container create-org" ng-show="!creating">
|
2013-11-07 20:19:52 +00:00
|
|
|
|
|
|
|
<div class="row header-row">
|
2014-08-12 21:08:16 +00:00
|
|
|
<div class="col-md-12">
|
2013-11-07 20:19:52 +00:00
|
|
|
<h2>Create Organization</h2>
|
|
|
|
|
|
|
|
<div class="steps-container" ng-show="false">
|
|
|
|
<ul class="steps">
|
|
|
|
<li class="step" ng-class="!user || user.anonymous ? 'active' : ''">
|
|
|
|
<i class="fa fa-sign-in"></i>
|
|
|
|
<span class="title">Login with an account</span>
|
|
|
|
</li>
|
|
|
|
<li class="step" ng-class="!user.anonymous && !created ? 'active' : ''">
|
|
|
|
<i class="fa fa-gear"></i>
|
|
|
|
<span class="title">Setup your organization</span>
|
|
|
|
</li>
|
|
|
|
<li class="step" ng-class="!user.anonymous && created ? 'active' : ''">
|
|
|
|
<i class="fa fa-group"></i>
|
|
|
|
<span class="title">Create teams</span>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Step 1 -->
|
|
|
|
<div class="row" ng-show="!user || user.anonymous">
|
2013-11-08 21:22:20 +00:00
|
|
|
<div class="col-md-10 col-md-offset-1 page-description">
|
|
|
|
In order to create a new organization, <b>you must first be signed in</b> as the
|
2013-12-11 23:20:24 +00:00
|
|
|
user that <b>will become an admin</b> for the organization.
|
2013-11-08 21:22:20 +00:00
|
|
|
</div>
|
2013-11-07 20:19:52 +00:00
|
|
|
<div class="col-sm-6 col-sm-offset-3">
|
|
|
|
<div class="step-container" >
|
2013-12-11 23:20:24 +00:00
|
|
|
<div class="user-setup" redirect-url="'/organizations/new'" sign-in-started="signinStarted()"
|
|
|
|
signed-in="signedIn()"></div>
|
2013-11-07 20:19:52 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Step 2 -->
|
|
|
|
<div class="row" ng-show="user && !user.anonymous && !created">
|
2014-08-12 21:08:16 +00:00
|
|
|
<div class="col-md-12">
|
2013-11-07 20:19:52 +00:00
|
|
|
<div class="step-container">
|
|
|
|
<h3>Setup the new organization</h3>
|
|
|
|
|
|
|
|
<form method="post" name="newOrgForm" id="newOrgForm" ng-submit="createNewOrg()">
|
2014-03-20 19:46:13 +00:00
|
|
|
<div class="form-group nested">
|
2013-11-07 20:19:52 +00:00
|
|
|
<label for="orgName">Organization Name</label>
|
|
|
|
<input id="orgName" name="orgName" type="text" class="form-control" placeholder="Organization Name"
|
|
|
|
ng-model="org.name" required autofocus data-trigger="manual" data-content="{{ createError }}"
|
2014-08-18 22:21:53 +00:00
|
|
|
data-placement="bottom" data-container="body" ng-pattern="/^[a-z0-9_]{4,30}$/">
|
2013-11-07 20:19:52 +00:00
|
|
|
<span class="description">This will also be the namespace for your repositories</span>
|
|
|
|
</div>
|
|
|
|
|
2014-03-20 19:46:13 +00:00
|
|
|
<div class="form-group nested">
|
2013-11-07 20:19:52 +00:00
|
|
|
<label for="orgName">Organization Email</label>
|
|
|
|
<input id="orgEmail" name="orgEmail" type="email" class="form-control" placeholder="Organization Email"
|
|
|
|
ng-model="org.email" required>
|
|
|
|
<span class="description">This address must be different from your account's email</span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Plans Table -->
|
2014-04-06 04:36:19 +00:00
|
|
|
<div class="form-group nested plan-group" quay-require="['BILLING']">
|
2013-11-07 20:19:52 +00:00
|
|
|
<strong>Choose your organization's plan</strong>
|
2014-04-06 04:36:19 +00:00
|
|
|
<div class="plans-table" plans="plans" current-plan="holder.currentPlan"></div>
|
2013-11-07 20:19:52 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="button-bar">
|
2014-04-06 04:36:19 +00:00
|
|
|
<button class="btn btn-large btn-success" type="submit"
|
|
|
|
ng-disabled="newOrgForm.$invalid || (Features.BILLING && !holder.currentPlan)"
|
2013-12-21 03:38:53 +00:00
|
|
|
analytics-on analytics-event="create_organization">
|
2013-11-07 20:19:52 +00:00
|
|
|
Create Organization
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Step 3 -->
|
|
|
|
<div class="row" ng-show="user && !user.anonymous && created">
|
2014-08-12 21:08:16 +00:00
|
|
|
<div class="col-md-12">
|
2013-11-07 20:19:52 +00:00
|
|
|
<div class="step-container">
|
|
|
|
<h3>Organization Created</h3>
|
|
|
|
<h4><a href="/organization/{{ org.name }}">Manage Teams Now</a></h4>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|