Browse Source

Back to website link from CP login page

Vova Tkach 5 years ago
parent
commit
1cb36d3659

+ 4 - 0
engine/assets/cp.styles.css

@@ -590,6 +590,10 @@ body.cp-first-user {
 	text-align: left;
 	text-align: left;
 }
 }
 
 
+.cp-login .sys-back-link {
+	padding-top: 1.5rem;
+}
+
 /* Control panel skeleton */
 /* Control panel skeleton */
 body.cp {
 body.cp {
 	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
 	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";

File diff suppressed because it is too large
+ 0 - 0
engine/assets/cp.styles.css.go


+ 1 - 1
engine/assets/tmpl.cp.login.go

@@ -1,3 +1,3 @@
 package assets
 package assets
 
 
-var TmplCpLogin = []byte(`<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="theme-color" content="#205081" /><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><title>Please login</title><link rel="stylesheet" href="{{$.System.PathCssBootstrap}}"><link rel="stylesheet" href="{{$.System.PathCssCpStyles}}"><link rel="shortcut icon" href="{{$.System.PathIcoFav}}" type="image/x-icon" /><style type="text/css">html{height:100%;}</style></head><body class="cp-login text-center"><form class="form-signin card" action="/cp/" method="post"><input type="hidden" name="action" value="index-user-sign-in"><h1 class="h3 mb-3 font-weight-normal">Please login</h1><label for="email" class="sr-only">User email</label><input type="email" id="email" name="email" class="form-control" placeholder="User email" required autofocus><label for="password" class="sr-only">User password</label><input type="password" id="password" name="password" class="form-control mb-3" placeholder="User password" required><div class="sys-messages"></div><button class="btn btn-lg btn-primary btn-block" type="submit">Login</button></form><script src="{{$.System.PathJsJquery}}"></script><script src="{{$.System.PathJsPopper}}"></script><script src="{{$.System.PathJsBootstrap}}"></script><script src="{{$.System.PathJsCpScripts}}"></script></body></html>`)
+var TmplCpLogin = []byte(`<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="theme-color" content="#205081" /><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><title>Please login</title><link rel="stylesheet" href="{{$.System.PathCssBootstrap}}"><link rel="stylesheet" href="{{$.System.PathCssCpStyles}}"><link rel="shortcut icon" href="{{$.System.PathIcoFav}}" type="image/x-icon" /><style type="text/css">html{height:100%;}</style></head><body class="cp-login text-center"><form class="form-signin card" action="/cp/" method="post"><input type="hidden" name="action" value="index-user-sign-in"><h1 class="h3 mb-3 font-weight-normal">Please login</h1><label for="email" class="sr-only">User email</label><input type="email" id="email" name="email" class="form-control" placeholder="User email" required autofocus><label for="password" class="sr-only">User password</label><input type="password" id="password" name="password" class="form-control mb-3" placeholder="User password" required><div class="sys-messages"></div><button class="btn btn-lg btn-primary btn-block" type="submit">Login</button><div class="sys-back-link"><a href="/">&larr; Back to website</a></div></form><script src="{{$.System.PathJsJquery}}"></script><script src="{{$.System.PathJsPopper}}"></script><script src="{{$.System.PathJsBootstrap}}"></script><script src="{{$.System.PathJsCpScripts}}"></script></body></html>`)

+ 3 - 0
engine/assets/tmpl.cp.login.html

@@ -20,6 +20,9 @@
 			<input type="password" id="password" name="password" class="form-control mb-3" placeholder="User password" required>
 			<input type="password" id="password" name="password" class="form-control mb-3" placeholder="User password" required>
 			<div class="sys-messages"></div>
 			<div class="sys-messages"></div>
 			<button class="btn btn-lg btn-primary btn-block" type="submit">Login</button>
 			<button class="btn btn-lg btn-primary btn-block" type="submit">Login</button>
+			<div class="sys-back-link">
+				<a href="/">&larr; Back to website</a>
+			</div>
 		</form>
 		</form>
 		<script src="{{$.System.PathJsJquery}}"></script>
 		<script src="{{$.System.PathJsJquery}}"></script>
 		<script src="{{$.System.PathJsPopper}}"></script>
 		<script src="{{$.System.PathJsPopper}}"></script>

Some files were not shown because too many files changed in this diff