user-login.gohtml 4.14 KB
Newer Older
1
{{define "title"}}User Login{{end}}
2
{{define "description"}}Login to the Software-as-a-Service web app by SaaS Company.{{end}}
3 4 5
{{define "style"}}

{{end}}
6
{{ define "partials/app-wrapper" }}
7
    <div class="container" id="page-content">
8 9 10 11 12

        <!-- Outer Row -->
        <div class="row justify-content-center">

            <div class="col-xl-10 col-lg-12 col-md-9">
13

14 15 16 17 18 19 20
                <div class="card o-hidden border-0 shadow-lg my-5">
                    <div class="card-body p-0">
                        <!-- Nested Row within Card Body -->
                        <div class="row">
                            <div class="col-lg-6 d-none d-lg-block bg-login-image"></div>
                            <div class="col-lg-6">
                                <div class="p-5">
Lee Brown's avatar
Lee Brown committed
21 22
                                    {{ template "app-flashes" . }}

23 24 25
                                    <div class="text-center">
                                        <h1 class="h4 text-gray-900 mb-4">Welcome Back!</h1>
                                    </div>
Lee Brown's avatar
Lee Brown committed
26 27 28

                                    {{ template "validation-error" . }}

29
                                    <form class="user" method="post" novalidate>
30
                                        <div class="form-group">
Lee Brown's avatar
Lee Brown committed
31 32 33 34
                                            <input type="email"
                                                   class="form-control form-control-user {{ ValidationFieldClass $.validationErrors "AuthenticateRequest.Email" }}"
                                                   name="Email" value="{{ $.form.Email }}" placeholder="Enter Email Address...">
                                            {{template "invalid-feedback" dict "fieldName" "AuthenticateRequest.Email" "validationDefaults" $.validationDefaults "validationErrors" $.validationErrors }}
35 36
                                        </div>
                                        <div class="form-group">
Lee Brown's avatar
Lee Brown committed
37 38 39 40
                                            <input type="password"
                                                   class="form-control form-control-user {{ ValidationFieldClass $.validationErrors "AuthenticateRequest.Password" }}"
                                                   name="Password" value="{{ $.form.Password }}" placeholder="Password">
                                            {{template "invalid-feedback" dict "fieldName" "AuthenticateRequest.Password" "validationDefaults" $.validationDefaults "validationErrors" $.validationErrors }}
41 42 43
                                        </div>
                                        <div class="form-group">
                                            <div class="custom-control custom-checkbox small">
Lee Brown's avatar
Lee Brown committed
44 45
                                                <input type="checkbox" class="custom-control-input"
                                                       id="inputRemberMe" name="RememberMe" value="1" {{ if $.form.RememberMe }}checked="checked"{{end}}>
Lee Brown's avatar
Lee Brown committed
46
                                                <label class="custom-control-label" for="inputRemberMe">Remember Me</label>
47 48
                                            </div>
                                        </div>
49
                                        <button class="btn btn-primary btn-user btn-block">
50
                                            Login
51
                                        </button>
52 53 54
                                        <hr>
                                    </form>
                                    <div class="text-center">
55
                                        <a class="small" href="/user/reset-password">Forgot Password?</a>
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
                                    </div>
                                    <div class="text-center">
                                        <a class="small" href="/signup">Create an Account!</a>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

            </div>

        </div>

    </div>
71
{{end}}
72 73 74 75 76 77
{{define "js"}}
<script>
    $(document).ready(function() {
        $(document).find('body').addClass('bg-gradient-primary');
    });
</script>
78
{{end}}