|
|
@ -3,7 +3,11 @@
|
|
|
|
<head>
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<title>Title</title>
|
|
|
|
<title>Title</title>
|
|
|
|
|
|
|
|
<script type="text/javascript" src="../../../../static/lib/jquery/jquery-2.1.4.min.js"></script>
|
|
|
|
|
|
|
|
<script type="text/javascript" src="../../../../static/lib/angularjs/angular.min.js"></script>
|
|
|
|
|
|
|
|
<script type="text/javascript" src="../../../../static/lib/angularjs/angular-messages.js"></script>
|
|
|
|
|
|
|
|
<script type="text/javascript" src="../../../../static/lib/bootstrap/js/bootstrap.min.js"></script>
|
|
|
|
|
|
|
|
<script type="text/javascript" src="../../../../static/lib/blocs.min.js"></script>
|
|
|
|
<style>
|
|
|
|
<style>
|
|
|
|
.col-centered {
|
|
|
|
.col-centered {
|
|
|
|
float: none;
|
|
|
|
float: none;
|
|
|
@ -17,12 +21,150 @@
|
|
|
|
</head>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<body>
|
|
|
|
<div class="row">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-3 col-centered">
|
|
|
|
<div class="col-md-5 col-centered">
|
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-body outer-container">
|
|
|
|
<div class="panel-body outer-container">
|
|
|
|
<h3 class="text-center m-t-40">
|
|
|
|
<h3 class="text-center m-t-40" style="margin-bottom: 20px">
|
|
|
|
Register
|
|
|
|
Register
|
|
|
|
</h3>
|
|
|
|
</h3>
|
|
|
|
|
|
|
|
<form novalidate name="partnerForm" action="" method="post">
|
|
|
|
|
|
|
|
<div class="form-group has-feedback"
|
|
|
|
|
|
|
|
ng-class="{'has-error':partnerForm.loginId.$invalid && partnerForm.loginId.$dirty}">
|
|
|
|
|
|
|
|
<input type="text" class="form-control" ng-model="partner.loginId" name="loginId"
|
|
|
|
|
|
|
|
placeholder="Login ID" required>
|
|
|
|
|
|
|
|
<div ng-messages="partnerForm.loginId.$error"
|
|
|
|
|
|
|
|
ng-if="partnerForm.loginId.$dirty">
|
|
|
|
|
|
|
|
<p class="small text-danger" ng-message="required">Required Field</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="form-group has-feedback"
|
|
|
|
|
|
|
|
ng-class="{'has-error':partnerForm.password.$invalid && partnerForm.password.$dirty}">
|
|
|
|
|
|
|
|
<input type="password" class="form-control" ng-model="partner.password" name="password"
|
|
|
|
|
|
|
|
placeholder="Password" required>
|
|
|
|
|
|
|
|
<div ng-messages="partnerForm.password.$error"
|
|
|
|
|
|
|
|
ng-if="partnerForm.password.$dirty">
|
|
|
|
|
|
|
|
<p class="small text-danger" ng-message="required">Required Field</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="form-group has-feedback"
|
|
|
|
|
|
|
|
ng-class="{'has-error':partnerForm.password_again.$invalid && partnerForm.password_again.$dirty}">
|
|
|
|
|
|
|
|
<input type="password" class="form-control" ng-model="partner.password_again" name="password_again"
|
|
|
|
|
|
|
|
placeholder="Enter the password again" required>
|
|
|
|
|
|
|
|
<div ng-messages="partnerForm.password_again.$error"
|
|
|
|
|
|
|
|
ng-if="partnerForm.password_again.$dirty">
|
|
|
|
|
|
|
|
<p class="small text-danger" ng-message="required">Required Field</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="form-group has-feedback"
|
|
|
|
|
|
|
|
ng-class="{'has-error':partnerForm.shopifyShop.$invalid && partnerForm.shopifyShop.$dirty}">
|
|
|
|
|
|
|
|
<input type="text" class="form-control" ng-model="partner.shopifyShop" name="shopifyShop"
|
|
|
|
|
|
|
|
placeholder="Shop" required>
|
|
|
|
|
|
|
|
<p class="help-block">Example: geek-test-shop.myshopify.com</p>
|
|
|
|
|
|
|
|
<div ng-messages="partnerForm.shopifyShop.$error"
|
|
|
|
|
|
|
|
ng-if="partnerForm.shopifyShop.$dirty">
|
|
|
|
|
|
|
|
<p class="small text-danger" ng-message="required">Required Field</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="form-group has-feedback"
|
|
|
|
|
|
|
|
ng-class="{'has-error':partnerForm.companyName.$invalid && partnerForm.companyName.$dirty}">
|
|
|
|
|
|
|
|
<input type="text" class="form-control" ng-model="partner.companyName" name="companyName"
|
|
|
|
|
|
|
|
placeholder="Store Name /Company Name" required maxlength="15">
|
|
|
|
|
|
|
|
<div ng-messages="partnerForm.companyName.$error"
|
|
|
|
|
|
|
|
ng-if="partnerForm.companyName.$dirty">
|
|
|
|
|
|
|
|
<p class="small text-danger" ng-message="required">Required Field</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="form-group has-feedback"
|
|
|
|
|
|
|
|
ng-class="{'has-error':partnerForm.address.$invalid && partnerForm.address.$dirty}">
|
|
|
|
|
|
|
|
<textarea class="form-control" ng-model="partner.address" placeholder="Address" name="address"
|
|
|
|
|
|
|
|
required></textarea>
|
|
|
|
|
|
|
|
<div ng-messages="partnerForm.address.$error"
|
|
|
|
|
|
|
|
ng-if="partnerForm.address.$dirty">
|
|
|
|
|
|
|
|
<p class="small text-danger" ng-message="required">Required Field</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="form-group has-feedback"
|
|
|
|
|
|
|
|
ng-class="{'has-error':partnerForm.suburb.$invalid && partnerForm.suburb.$dirty}">
|
|
|
|
|
|
|
|
<input class="form-control" ng-model="partner.suburb" placeholder="Suburb" name="suburb"
|
|
|
|
|
|
|
|
required >
|
|
|
|
|
|
|
|
<div ng-messages="partnerForm.suburb.$error"
|
|
|
|
|
|
|
|
ng-if="partnerForm.suburb.$dirty">
|
|
|
|
|
|
|
|
<p class="small text-danger" ng-message="required">Required Field</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="form-group has-feedback"
|
|
|
|
|
|
|
|
ng-class="{'has-error':partnerForm.postcode.$invalid && partnerForm.postcode.$dirty}">
|
|
|
|
|
|
|
|
<input class="form-control" ng-model="partner.postcode" placeholder="Postcode"
|
|
|
|
|
|
|
|
name="postcode"
|
|
|
|
|
|
|
|
required>
|
|
|
|
|
|
|
|
<div ng-messages="partnerForm.postcode.$error"
|
|
|
|
|
|
|
|
ng-if="partnerForm.postcode.$dirty">
|
|
|
|
|
|
|
|
<p class="small text-danger" ng-message="required">Required Field</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="form-group has-feedback"
|
|
|
|
|
|
|
|
ng-class="{'has-error':partnerForm.state.$invalid && partnerForm.state.$dirty}">
|
|
|
|
|
|
|
|
<select class="form-control" name="state"
|
|
|
|
|
|
|
|
ng-model="partner.state"
|
|
|
|
|
|
|
|
id="state-input" required
|
|
|
|
|
|
|
|
ng-options="state.value as state.label for state in states">
|
|
|
|
|
|
|
|
<option value="">State</option>
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
<div ng-messages="partnerForm.state.$error"
|
|
|
|
|
|
|
|
ng-if="partnerForm.state.$dirty">
|
|
|
|
|
|
|
|
<p class="small text-danger" ng-message="required">Required Field</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="form-group has-feedback"
|
|
|
|
|
|
|
|
ng-class="{'has-error':partnerForm.contactPerson.$invalid && partnerForm.contactPerson.$dirty}">
|
|
|
|
|
|
|
|
<input class="form-control" ng-model="partner.contactPerson" placeholder="Contact Person"
|
|
|
|
|
|
|
|
required maxlength="50" name="contactPerson">
|
|
|
|
|
|
|
|
<div ng-messages="partnerForm.contactPerson.$error"
|
|
|
|
|
|
|
|
ng-if="partnerForm.contactPerson.$dirty">
|
|
|
|
|
|
|
|
<p class="small text-danger" ng-message="required">Required Field</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="form-group has-feedback"
|
|
|
|
|
|
|
|
ng-class="{'has-error':partnerForm.contactPhone.$invalid && partnerForm.contactPhone.$dirty}">
|
|
|
|
|
|
|
|
<input class="form-control" ng-model="partner.contactPhone" placeholder="Contact Phone"
|
|
|
|
|
|
|
|
required maxlength="20" name="contactPhone">
|
|
|
|
|
|
|
|
<div ng-messages="partnerForm.contactPhone.$error"
|
|
|
|
|
|
|
|
ng-if="partnerForm.contactPhone.$dirty">
|
|
|
|
|
|
|
|
<p class="small text-danger" ng-message="required">Required Field</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group has-feedback"
|
|
|
|
|
|
|
|
ng-class="{'has-error':partnerForm.contactEmail.$invalid && partnerForm.contactEmail.$dirty}">
|
|
|
|
|
|
|
|
<input class="form-control" ng-model="partner.contactEmail" placeholder="Email" required
|
|
|
|
|
|
|
|
maxlength="50" name="contactEmail">
|
|
|
|
|
|
|
|
<div ng-messages="partnerForm.contactEmail.$error"
|
|
|
|
|
|
|
|
ng-if="partnerForm.contactEmail.$dirty">
|
|
|
|
|
|
|
|
<p class="small text-danger" ng-message="required">Required Field</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
|
|
<div class="col-xs-12 margin-bottom">
|
|
|
|
|
|
|
|
<button type="button" id="login-btn" class="btn btn-success btn-block btn-flat"
|
|
|
|
|
|
|
|
ng-click="saveForm(partnerForm)">Submit
|
|
|
|
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
|
|
|
<p ng-if="resError" style="padding: 6px 12px;font-size: 14px;"
|
|
|
|
|
|
|
|
class="small text-danger">{{resError}}</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|