diff --git a/cmd/web-app/static/assets/css/sb-admin-2.css b/cmd/web-app/static/assets/css/sb-admin-2.css index 6fce59a..0c62825 100755 --- a/cmd/web-app/static/assets/css/sb-admin-2.css +++ b/cmd/web-app/static/assets/css/sb-admin-2.css @@ -3243,6 +3243,28 @@ input[type="button"].btn-block { width: 100%; } +.text-blue { + color: #4e73df; +} +.text-green { + color: #1cc88a; +} +.text-aqua { + color: #36b9cc; +} +.text-orange { + color: #f6c23e; +} +.text-red { + color: #e74a3b; +} +.text-purple { + color: #52489C; +} +.text-pink { + color: #D741A7; +} + .fade { -webkit-transition: opacity 0.15s linear; transition: opacity 0.15s linear; @@ -10606,7 +10628,7 @@ a:focus { display: -webkit-box; display: -ms-flexbox; display: flex; - padding-top: 70px; + padding-top: 0px; } #wrapper #content-wrapper { @@ -10621,6 +10643,14 @@ a:focus { flex: 1 0 auto; } +#wrapper.website { + padding-top: 70px; +} + +#page-content { + padding-bottom: 5em; +} + .container, .container-fluid { padding-left: 1.5rem; @@ -10970,7 +11000,7 @@ a:focus { border: 0; font-weight: 900; content: '\f105'; - font-family: 'Font Awesome 5 Free'; + font-family: 'FontAwesome'; } .sidebar .nav-item.dropdown.show .dropdown-toggle::after, @@ -11247,7 +11277,7 @@ a:focus { .sidebar #sidebarToggle::after { font-weight: 900; content: '\f104'; - font-family: 'Font Awesome 5 Free'; + font-family: 'FontAwesome'; margin-right: 0.1rem; } @@ -11266,7 +11296,7 @@ a:focus { .sidebar.toggled #sidebarToggle::after { content: '\f105'; - font-family: 'Font Awesome 5 Free'; + font-family: 'FontAwesome'; margin-left: 0.25rem; } @@ -11350,7 +11380,7 @@ a:focus { border: 0; font-weight: 900; content: '\f107'; - font-family: 'Font Awesome 5 Free'; + font-family: 'FontAwesome'; } .sidebar .nav-item .nav-link[data-toggle="collapse"].collapsed::after { content: '\f105'; @@ -11531,6 +11561,11 @@ a:focus { color: rgba(255, 255, 255, 0.5); } +#buildinfo { + margin-top: 2em; + font-size: 12px; +} + .btn-circle { border-radius: 100%; height: 2.5rem; @@ -11622,7 +11657,7 @@ a:focus { line-height: 51px; font-weight: 900; content: '\f107'; - font-family: 'Font Awesome 5 Free'; + font-family: 'FontAwesome'; color: #d1d3e2; } diff --git a/cmd/web-app/static/images/example-image-resize-galaxy-3000x1600.png b/cmd/web-app/static/images/example-image-resize-galaxy-3000x1600.png new file mode 100644 index 0000000..d8d1851 Binary files /dev/null and b/cmd/web-app/static/images/example-image-resize-galaxy-3000x1600.png differ diff --git a/cmd/web-app/templates/content/account-update.gohtml b/cmd/web-app/templates/content/account-update.gohtml index ddcaaba..0b27332 100644 --- a/cmd/web-app/templates/content/account-update.gohtml +++ b/cmd/web-app/templates/content/account-update.gohtml @@ -3,134 +3,156 @@ {{end}} {{define "content"}} + +
+

Update Account Settings

+
+
-
+
-

Account Details

-
+
+
-
-
- - {{template "invalid-feedback" dict "validationDefaults" $.validationDefaults "validationErrors" $.validationErrors "fieldName" "Name" }} -
-
-
-
- - {{template "invalid-feedback" dict "validationDefaults" $.validationDefaults "validationErrors" $.validationErrors "fieldName" "Address1" }} -
-
- - {{template "invalid-feedback" dict "validationDefaults" $.validationDefaults "validationErrors" $.validationErrors "fieldName" "Address2" }} -
-
-
-
-
- + {{template "invalid-feedback" dict "validationDefaults" $.validationDefaults "validationErrors" $.validationErrors "fieldName" "Name" }} +
+
+
+
+ + + {{template "invalid-feedback" dict "validationDefaults" $.validationDefaults "validationErrors" $.validationErrors "fieldName" "Address1" }} +
+
+ + + {{template "invalid-feedback" dict "validationDefaults" $.validationDefaults "validationErrors" $.validationErrors "fieldName" "Address2" }} +
+
+
+
+ +
+ + {{template "invalid-feedback" dict "validationDefaults" $.validationDefaults "validationErrors" $.validationErrors "fieldName" "Country" }} +
+
+
+
+
+
+ {{template "invalid-feedback" dict "validationDefaults" $.validationDefaults "validationErrors" $.validationErrors "fieldName" "Zipcode" }} +
+
+
+ {{template "invalid-feedback" dict "validationDefaults" $.validationDefaults "validationErrors" $.validationErrors "fieldName" "Region" }} +
+
+ + + {{template "invalid-feedback" dict "validationDefaults" $.validationDefaults "validationErrors" $.validationErrors "fieldName" "City" }} +
+
+ +
+
+ + - {{template "invalid-feedback" dict "validationDefaults" $.validationDefaults "validationErrors" $.validationErrors "fieldName" "Country" }} + + {{template "invalid-feedback" dict "validationDefaults" $.validationDefaults "validationErrors" $.validationErrors "fieldName" "Timezone" }} +
+
+ +
+
+ +
+ + + +
+
+ +
+ + + + +
+
+ + + + +
+
+ + + + +
-
-
-
-
- {{template "invalid-feedback" dict "validationDefaults" $.validationDefaults "validationErrors" $.validationErrors "fieldName" "Zipcode" }} -
-
-
- {{template "invalid-feedback" dict "validationDefaults" $.validationDefaults "validationErrors" $.validationErrors "fieldName" "Region" }} -
-
-
-
- - {{template "invalid-feedback" dict "validationDefaults" $.validationDefaults "validationErrors" $.validationErrors "fieldName" "City" }} -
+
-
-

Account Settings

-
- -
- - - {{template "invalid-feedback" dict "validationDefaults" $.validationDefaults "validationErrors" $.validationErrors "fieldName" "Timezone" }} -
-
- - - - -
-
- - - - -
-
- - - - -
-
- -
+ Cancel
@@ -149,7 +171,7 @@ if ($(this).find('option:selected').attr('data-geonames') == 1) { // Replace the existing region with an empty dropdown. - $('#divAccountRegion').html('
'); + $('#divAccountRegion').html('
'); // Query the API for a list of regions for the selected // country and populate the region dropdown. @@ -172,7 +194,7 @@ }); // Replace the existing zipcode text input with a new one that will supports autocomplete. - $('#divAccountZipcode').html(''); + $('#divAccountZipcode').html(''); $('#inputAccountZipcode').autoComplete({ minLength: 2, events: { @@ -210,10 +232,10 @@ } else { // Replace the existing zipcode input with no autocomplete. - $('#divAccountZipcode').html(''); + $('#divAccountZipcode').html(''); // Replace the existing region select with a text input. - $('#divAccountRegion').html(''); + $('#divAccountRegion').html(''); } diff --git a/cmd/web-app/templates/content/account-view.gohtml b/cmd/web-app/templates/content/account-view.gohtml index 70c7dec..62f76ad 100644 --- a/cmd/web-app/templates/content/account-view.gohtml +++ b/cmd/web-app/templates/content/account-view.gohtml @@ -3,50 +3,81 @@ {{end}} {{define "content"}} + +
+

Account

+ +
+
- -
-
-
-
-

- Name
- {{ .account.Name }} -

- {{ if .account.City }} -

- Address
- {{if .account.Address1 }} - {{ .account.Address1 }}{{ if .account.Address2 }},{{ .account.Address2 }}{{ end }} -
- {{end}} - {{ .account.City }}, {{ .account.Region }}, {{ .account.Zipcode }} -

- {{end}} -

- Timezone
- {{.account.Timezone }} -

-
-
-

- Status
- - {{ if eq .account.Status.Value "active" }} - {{ .account.Status.Title }} - {{else}} - {{.account.Status.Title }} - {{end}} - -

-

- ID
- {{ .account.ID }} -

+
+ +
+
+
Account Details
+ +
+
+ +
+
+

+ Name
+ {{ .account.Name }} +

+ {{ if .account.City }} +

+ Address
+ {{if .account.Address1 }} + {{ .account.Address1 }}{{ if .account.Address2 }},{{ .account.Address2 }}{{ end }} +
+ {{end}} + {{ .account.City }}, {{ .account.Region }}, {{ .account.Zipcode }} + {{ if .account.Country }} +
{{ .account.Country }} + {{end}} +

+ {{end}} +

+ Timezone
+ {{.account.Timezone }} +

+
+
+

+ Status
+ + {{ if eq .account.Status.Value "active" }} + {{ .account.Status.Title }} + {{else}} + {{.account.Status.Title }} + {{end}} + +

+

+ ID
+ {{ .account.ID }} +

+
+
+ +
+
+ +
+ + + {{end}} {{define "js"}} diff --git a/cmd/web-app/templates/content/error-generic.gohtml b/cmd/web-app/templates/content/error-generic.gohtml index c499ddd..04d1e00 100644 --- a/cmd/web-app/templates/content/error-generic.gohtml +++ b/cmd/web-app/templates/content/error-generic.gohtml @@ -2,7 +2,7 @@ {{define "style"}} {{end}} -{{ define "partials/page-wrapper" }} +{{ define "partials/app-wrapper" }}
diff --git a/cmd/web-app/templates/content/examples-images.gohtml b/cmd/web-app/templates/content/examples-images.gohtml index 38b02e2..057e019 100644 --- a/cmd/web-app/templates/content/examples-images.gohtml +++ b/cmd/web-app/templates/content/examples-images.gohtml @@ -4,37 +4,40 @@ {{end}} {{define "content"}} -

S3ImgSrcLarge - -

+

S3ImgSrcLarge

+

320, 480, 800

+ -

S3ImgThumbSrcLarge - -

+

S3ImgThumbSrcLarge

+

320, 480, 800

+ -

S3ImgSrcMedium - -

+

S3ImgSrcMedium

+

320, 640

+ -

S3ImgThumbSrcMedium - -

+

S3ImgThumbSrcMedium

+

320, 640

+ -

S3ImgSrcSmall - -

-

S3ImgThumbSrcSmall - -

+

S3ImgSrcSmall

+

320

+ -

S3ImgSrc - -

-

S3ImgUrl - -

+

S3ImgThumbSrcSmall

+

320

+ + +

S3ImgSrc

+

returns Src array

+ + +

S3ImgUrl

+

Returns URL for file on S3

+ + {{end}} {{define "js"}} diff --git a/cmd/web-app/templates/content/root-dashboard.gohtml b/cmd/web-app/templates/content/root-dashboard.gohtml index 57d4b88..427c4c9 100644 --- a/cmd/web-app/templates/content/root-dashboard.gohtml +++ b/cmd/web-app/templates/content/root-dashboard.gohtml @@ -3,39 +3,27 @@ {{end}} {{define "content"}} - Welcome to the web app -

S3ImgSrcLarge - -

-

S3ImgThumbSrcLarge - -

+
+

Dashboard

+
-

S3ImgSrcMedium - -

-

S3ImgThumbSrcMedium - -

+
+
-

S3ImgSrcSmall - -

+
+
-

S3ImgThumbSrcSmall - -

+

Welcome to the web app

-

S3ImgSrc - -

+
+
+ +
+
-

S3ImgUrl - -

{{end}} diff --git a/cmd/web-app/templates/content/signup-step1.gohtml b/cmd/web-app/templates/content/signup-step1.gohtml index bb6b009..12a2c21 100644 --- a/cmd/web-app/templates/content/signup-step1.gohtml +++ b/cmd/web-app/templates/content/signup-step1.gohtml @@ -3,7 +3,7 @@ {{define "style"}} {{end}} -{{ define "partials/page-wrapper" }} +{{ define "partials/app-wrapper" }}
diff --git a/cmd/web-app/templates/content/user-login.gohtml b/cmd/web-app/templates/content/user-login.gohtml index e70fbf5..614a39b 100644 --- a/cmd/web-app/templates/content/user-login.gohtml +++ b/cmd/web-app/templates/content/user-login.gohtml @@ -3,7 +3,7 @@ {{define "style"}} {{end}} -{{ define "partials/page-wrapper" }} +{{ define "partials/app-wrapper" }}
diff --git a/cmd/web-app/templates/content/user-reset-confirm.gohtml b/cmd/web-app/templates/content/user-reset-confirm.gohtml index 07f1f05..3d869df 100644 --- a/cmd/web-app/templates/content/user-reset-confirm.gohtml +++ b/cmd/web-app/templates/content/user-reset-confirm.gohtml @@ -3,7 +3,7 @@ {{define "style"}} {{end}} -{{ define "partials/page-wrapper" }} +{{ define "partials/app-wrapper" }}
diff --git a/cmd/web-app/templates/content/user-reset-password.gohtml b/cmd/web-app/templates/content/user-reset-password.gohtml index 3867a7c..a1464e3 100644 --- a/cmd/web-app/templates/content/user-reset-password.gohtml +++ b/cmd/web-app/templates/content/user-reset-password.gohtml @@ -3,7 +3,7 @@ {{define "style"}} {{end}} -{{ define "partials/page-wrapper" }} +{{ define "partials/app-wrapper" }}
diff --git a/cmd/web-app/templates/content/user-switch-account.gohtml b/cmd/web-app/templates/content/user-switch-account.gohtml index 460ab05..a2db167 100644 --- a/cmd/web-app/templates/content/user-switch-account.gohtml +++ b/cmd/web-app/templates/content/user-switch-account.gohtml @@ -2,7 +2,7 @@ {{define "style"}} {{end}} -{{ define "partials/page-wrapper" }} +{{ define "partials/app-wrapper" }}
diff --git a/cmd/web-app/templates/content/user-update.gohtml b/cmd/web-app/templates/content/user-update.gohtml index 75a9eda..24f66c4 100644 --- a/cmd/web-app/templates/content/user-update.gohtml +++ b/cmd/web-app/templates/content/user-update.gohtml @@ -3,6 +3,11 @@ {{end}} {{define "content"}} + +
+

Update My Profile

+
+
@@ -29,19 +34,27 @@ {{ end }} - {{template "invalid-feedback" dict "validationDefaults" $.validationDefaults "validationErrors" $.validationErrors "fieldName" "Timezone" }} + {{template "invalid-feedback" dict "validationDefaults" $.userValidationDefaults "validationErrors" $.validationErrors "fieldName" "Timezone" }}
+
+
+ + Cancel +
+
+ -
+
+

Change Password

Optional. You can change your password by specifying a new one below. Otherwise leave the fields empty.

- Generate random password + Generate random password {{template "invalid-feedback" dict "validationDefaults" $.passwordValidationDefaults "validationErrors" $.validationErrors "fieldName" "Password" }}
@@ -51,10 +64,9 @@
-
-
+
- +
diff --git a/cmd/web-app/templates/content/user-view.gohtml b/cmd/web-app/templates/content/user-view.gohtml index 373eaf6..8d1022d 100644 --- a/cmd/web-app/templates/content/user-view.gohtml +++ b/cmd/web-app/templates/content/user-view.gohtml @@ -3,6 +3,13 @@ {{end}} {{define "content"}} + +
+

My Profile

+ Edit Details +
+ +
@@ -10,23 +17,15 @@ gravatar image
-

Name

-

- {{ .user.Name }} -

+

{{ .user.Name }}

+

Update Avatar

-
-

Update Avatar

-
-
-
-
+

Name
@@ -42,7 +41,6 @@ {{.user.Timezone }}

{{end}} -

@@ -51,9 +49,9 @@ {{ range $r := .userAccount.Roles }} {{ if eq $r "admin" }} - {{ $r }} + {{ $r }} {{else}} - {{ $r }} + {{ $r }} {{end}} {{ end }} @@ -64,11 +62,11 @@ {{ if .userAccount }} {{ if eq .userAccount.Status.Value "active" }} - {{ .userAccount.Status.Title }} + {{ .userAccount.Status.Title }} {{ else if eq .userAccount.Status.Value "invited" }} - {{ .userAccount.Status.Title }} + {{ .userAccount.Status.Title }} {{else}} - {{.userAccount.Status.Title }} + {{.userAccount.Status.Title }} {{end}} {{ end }} diff --git a/cmd/web-app/templates/content/user-virtual-login.gohtml b/cmd/web-app/templates/content/user-virtual-login.gohtml index db24a4a..c73f183 100644 --- a/cmd/web-app/templates/content/user-virtual-login.gohtml +++ b/cmd/web-app/templates/content/user-virtual-login.gohtml @@ -2,7 +2,7 @@ {{define "style"}} {{end}} -{{ define "partials/page-wrapper" }} +{{ define "partials/app-wrapper" }}

diff --git a/cmd/web-app/templates/layouts/base.gohtml b/cmd/web-app/templates/layouts/base.gohtml index af124f5..488c043 100644 --- a/cmd/web-app/templates/layouts/base.gohtml +++ b/cmd/web-app/templates/layouts/base.gohtml @@ -41,7 +41,7 @@ - {{ template "partials/page-wrapper" . }} + {{ template "partials/app-wrapper" . }} diff --git a/cmd/web-app/templates/layouts/site.gohtml b/cmd/web-app/templates/layouts/site.gohtml index a1f05bd..bb6d767 100644 --- a/cmd/web-app/templates/layouts/site.gohtml +++ b/cmd/web-app/templates/layouts/site.gohtml @@ -54,7 +54,7 @@ -
+
diff --git a/cmd/web-app/templates/partials/sidebar.tmpl b/cmd/web-app/templates/partials/app-sidebar.tmpl similarity index 99% rename from cmd/web-app/templates/partials/sidebar.tmpl rename to cmd/web-app/templates/partials/app-sidebar.tmpl index c1bc627..0d0a295 100644 --- a/cmd/web-app/templates/partials/sidebar.tmpl +++ b/cmd/web-app/templates/partials/app-sidebar.tmpl @@ -1,4 +1,4 @@ -{{ define "partials/sidebar" }} +{{ define "partials/app-sidebar" }}