You've already forked golang-saas-starter-kit
mirror of
https://github.com/raseels-repos/golang-saas-starter-kit.git
synced 2025-07-15 01:34:32 +02:00
Merge branch 'issue16/web-app-signup' of gitlab.com:geeks-accelerator/oss/saas-starter-kit into issue16/web-app-signup
This commit is contained in:
@ -11641,20 +11641,20 @@ a:focus {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.bg-login-image {
|
.bg-login-image {
|
||||||
background: url("https://source.unsplash.com/K4mSJ7kc0As/600x800");
|
background: url("https://dzuyel7n94hma.cloudfront.net/accelerator/img/saas-starter-kit-go-lang-login-600x800.png");
|
||||||
background-position: center;
|
background-position: top center;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bg-register-image {
|
.bg-register-image {
|
||||||
background: url("https://source.unsplash.com/Mv9hjnEUHR4/600x800");
|
background: url("https://dzuyel7n94hma.cloudfront.net/accelerator/img/saas-starter-kit-go-lang-join-600x1000.png");
|
||||||
background-position: center;
|
background-position: top center;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bg-password-image {
|
.bg-password-image {
|
||||||
background: url("https://source.unsplash.com/oWTW-jNGl9I/600x800");
|
background: url("https://dzuyel7n94hma.cloudfront.net/accelerator/img/saas-starter-kit-go-lang-green-600x800.png");
|
||||||
background-position: center;
|
background-position: top center;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -11674,6 +11674,19 @@ form.user .btn-user {
|
|||||||
padding: 0.75rem 1rem;
|
padding: 0.75rem 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.form-control-select-wrapper {
|
||||||
|
font-size: 0.8rem;
|
||||||
|
border-radius: 10rem;
|
||||||
|
padding: .55rem 1rem;
|
||||||
|
border: 1px solid #d1d3e2;
|
||||||
|
}
|
||||||
|
.form-control-select-box {
|
||||||
|
font-size: 0.8rem;
|
||||||
|
padding: 0;
|
||||||
|
border: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.btn-google {
|
.btn-google {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
background-color: #ea4335;
|
background-color: #ea4335;
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
|
|
||||||
<!-- Error Text -->
|
<!-- Error Text -->
|
||||||
<div class="text-center">
|
<div class="text-center mt-5">
|
||||||
<div class="error mx-auto" data-text="{{ .statusCode }}">{{ .statusCode }}</div>
|
<div class="error mx-auto" data-text="{{ .statusCode }}">{{ .statusCode }}</div>
|
||||||
<p class="lead text-gray-800 mb-5">{{ .errorMessage }}</p>
|
<p class="lead text-gray-800 mb-5">{{ .errorMessage }}</p>
|
||||||
{{ if .fullError }}
|
{{ if .fullError }}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{{define "title"}}Crean an Account{{end}}
|
{{define "title"}}Create an Account{{end}}
|
||||||
{{define "style"}}
|
{{define "style"}}
|
||||||
|
|
||||||
{{end}}
|
{{end}}
|
||||||
@ -19,7 +19,13 @@
|
|||||||
{{ template "top-error" . }}
|
{{ template "top-error" . }}
|
||||||
{{ template "validation-error" . }}
|
{{ template "validation-error" . }}
|
||||||
|
|
||||||
|
<hr>
|
||||||
<form class="user" method="post" novalidate>
|
<form class="user" method="post" novalidate>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<h2 class="h5 text-gray-900 mt-3 mb-3">Your Organization details</h2>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<div class="col-sm-6 mb-3 mb-sm-0">
|
<div class="col-sm-6 mb-3 mb-sm-0">
|
||||||
<input type="text" class="form-control form-control-user {{ ValidationFieldClass $.validationErrors "Account.Name" }}" name="Account.Name" value="{{ $.form.Account.Name }}" placeholder="Company Name" required>
|
<input type="text" class="form-control form-control-user {{ ValidationFieldClass $.validationErrors "Account.Name" }}" name="Account.Name" value="{{ $.form.Account.Name }}" placeholder="Company Name" required>
|
||||||
@ -38,16 +44,18 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<div class="col-sm-6 mb-3 mb-sm-0">
|
<div class="col-sm-6 mb-3 mb-sm-0">
|
||||||
<select class="form-control {{ ValidationFieldClass $.validationErrors "Account.Country" }}" id="selectAccountCountry" name="Account.Country" placeholder="Country" required>
|
<div class="form-control-select-wrapper">
|
||||||
{{ range $i := $.countries }}
|
<select class="form-control form-control-select-box {{ ValidationFieldClass $.validationErrors "Account.Country" }}" id="selectAccountCountry" name="Account.Country" placeholder="Country" required>
|
||||||
{{ $hasGeonames := false }}
|
{{ range $i := $.countries }}
|
||||||
{{ range $c := $.geonameCountries }}
|
{{ $hasGeonames := false }}
|
||||||
{{ if eq $c $i.Code }}{{ $hasGeonames = true }}{{ end }}
|
{{ range $c := $.geonameCountries }}
|
||||||
|
{{ if eq $c $i.Code }}{{ $hasGeonames = true }}{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
<option value="{{ $i.Code }}" data-geonames="{{ if $hasGeonames }}1{{ else }}0{{ end }}" {{ if eq $.form.Account.Country $i.Code }}selected="selected"{{ end }}>{{ $i.Name }}</option>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<option value="{{ $i.Code }}" data-geonames="{{ if $hasGeonames }}1{{ else }}0{{ end }}" {{ if eq $.form.Account.Country $i.Code }}selected="selected"{{ end }}>{{ $i.Name }}</option>
|
</select>
|
||||||
{{ end }}
|
{{template "invalid-feedback" dict "validationDefaults" $.validationDefaults "validationErrors" $.validationErrors "fieldName" "Account.Country" }}
|
||||||
</select>
|
</div>
|
||||||
{{template "invalid-feedback" dict "validationDefaults" $.validationDefaults "validationErrors" $.validationErrors "fieldName" "Account.Country" }}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
@ -60,7 +68,7 @@
|
|||||||
{{template "invalid-feedback" dict "validationDefaults" $.validationDefaults "validationErrors" $.validationErrors "fieldName" "Account.Region" }}
|
{{template "invalid-feedback" dict "validationDefaults" $.validationDefaults "validationErrors" $.validationErrors "fieldName" "Account.Region" }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group row">
|
<div class="form-group row mb-4">
|
||||||
<div class="col-sm-6 mb-3 mb-sm-0">
|
<div class="col-sm-6 mb-3 mb-sm-0">
|
||||||
<input type="text" class="form-control form-control-user {{ ValidationFieldClass $.validationErrors "Account.City" }}" id="inputAccountCity" name="Account.City" value="{{ $.form.Account.City }}" placeholder="City" required>
|
<input type="text" class="form-control form-control-user {{ ValidationFieldClass $.validationErrors "Account.City" }}" id="inputAccountCity" name="Account.City" value="{{ $.form.Account.City }}" placeholder="City" required>
|
||||||
{{template "invalid-feedback" dict "validationDefaults" $.validationDefaults "validationErrors" $.validationErrors "fieldName" "Account.City" }}
|
{{template "invalid-feedback" dict "validationDefaults" $.validationDefaults "validationErrors" $.validationErrors "fieldName" "Account.City" }}
|
||||||
@ -73,6 +81,10 @@
|
|||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<h2 class="h5 text-gray-900 mt-3 mb-3">Your User details</h2>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<div class="col-sm-6 mb-3 mb-sm-0">
|
<div class="col-sm-6 mb-3 mb-sm-0">
|
||||||
<input type="text" class="form-control form-control-user {{ ValidationFieldClass $.validationErrors "User.FirstName" }}" name="User.FirstName" value="{{ $.form.User.FirstName }}" placeholder="First Name" required>
|
<input type="text" class="form-control form-control-user {{ ValidationFieldClass $.validationErrors "User.FirstName" }}" name="User.FirstName" value="{{ $.form.User.FirstName }}" placeholder="First Name" required>
|
||||||
@ -131,7 +143,7 @@
|
|||||||
if ($(this).find('option:selected').attr('data-geonames') == 1) {
|
if ($(this).find('option:selected').attr('data-geonames') == 1) {
|
||||||
|
|
||||||
// Replace the existing region with an empty dropdown.
|
// Replace the existing region with an empty dropdown.
|
||||||
$('#divAccountRegion').html('<select class="form-control {{ ValidationFieldClass $.validationErrors "Account.Region" }}" id="inputAccountRegion" name="Account.Region" value="{{ $.form.Account.Region }}" placeholder="Region" required></select>');
|
$('#divAccountRegion').html('<div class="form-control-select-wrapper"><select class="form-control form-control-select-box {{ ValidationFieldClass $.validationErrors "Account.Region" }}" id="inputAccountRegion" name="Account.Region" value="{{ $.form.Account.Region }}" placeholder="Region" required></select></div>');
|
||||||
|
|
||||||
// Query the API for a list of regions for the selected
|
// Query the API for a list of regions for the selected
|
||||||
// country and populate the region dropdown.
|
// country and populate the region dropdown.
|
||||||
@ -168,7 +180,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
// Replace the existing zipcode text input with a new one that will supports autocomplete.
|
// Replace the existing zipcode text input with a new one that will supports autocomplete.
|
||||||
$('#divAccountZipcode').html('<input class="form-control {{ ValidationFieldClass $.validationErrors "Account.Zipcode" }}" id="inputAccountZipcode" name="Account.Zipcode" value="{{ $.form.Account.Zipcode }}" placeholder="Zipcode" required>');
|
$('#divAccountZipcode').html('<input class="form-control form-control-user {{ ValidationFieldClass $.validationErrors "Account.Zipcode" }}" id="inputAccountZipcode" name="Account.Zipcode" value="{{ $.form.Account.Zipcode }}" placeholder="Zipcode" required>');
|
||||||
$('#inputAccountZipcode').autoComplete({
|
$('#inputAccountZipcode').autoComplete({
|
||||||
minLength: 2,
|
minLength: 2,
|
||||||
events: {
|
events: {
|
||||||
|
@ -44,7 +44,6 @@
|
|||||||
</button>
|
</button>
|
||||||
<hr>
|
<hr>
|
||||||
</form>
|
</form>
|
||||||
<hr>
|
|
||||||
<div class="text-center">
|
<div class="text-center">
|
||||||
<a class="small" href="/user/reset-password">Forgot Password?</a>
|
<a class="small" href="/user/reset-password">Forgot Password?</a>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user