account-view.gohtml 4.05 KB
Newer Older
1
2
3
4
5
{{define "title"}}Account Settings{{end}}
{{define "style"}}

{{end}}
{{define "content"}}
6

7
8
9
10
11
12
13
    <nav aria-label="breadcrumb">
        <ol class="breadcrumb">
            <li class="breadcrumb-item"><a href="/account">Account</a></li>
            <li class="breadcrumb-item active" aria-current="page">View</li>
        </ol>
    </nav>

14
15
16
    <div class="d-sm-flex align-items-center justify-content-between mb-4">
        <h1 class="h3 mb-0 text-gray-800">Account</h1>
        <!-- a href="/account/update" class="d-none d-sm-inline-block btn btn-sm btn-primary shadow-sm"><i class="far fa-edit fa-sm text-white-50 mr-1"></i>Edit Details</a -->
17
    </div>
18

19
    <div class="row">
20
21
22
23
        <div class="col">

            <div class="card shadow mb-4">
                <div class="card-header py-3 d-flex flex-row align-items-center justify-content-between">
24
                    <h6 class="m-0 font-weight-bold text-dark">Account Details</h6>
25
26
27
28
29
30
                    <div class="dropdown no-arrow show">
                        <a class="dropdown-toggle" href="#" role="button" id="dropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
                            <i class="fas fa-ellipsis-v fa-sm fa-fw text-gray-400"></i>
                        </a>
                        <div class="dropdown-menu dropdown-menu-right shadow animated--fade-in" aria-labelledby="dropdownMenuLink" x-placement="bottom-end" style="position: absolute; transform: translate3d(-156px, 19px, 0px); top: 0px; left: 0px; will-change: transform;">
                            <div class="dropdown-header">Actions</div>
31
                            <a class="dropdown-item" href="/account/update">Update Details</a>
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
                        </div>
                    </div>
                </div>
                <div class="card-body">

                    <div class="row">
                        <div class="col-md-6">
                            <p>
                                <small>Name</small><br/>
                                <b>{{ .account.Name }}</b>
                            </p>
                            {{ if .account.City }}
                                <p>
                                    <small>Address</small><br/>
                                    {{if .account.Address1 }}
                                        <b>{{ .account.Address1 }}{{ if  .account.Address2 }},{{  .account.Address2 }}{{ end }}</b>
                                        <br/>
                                    {{end}}
                                    <b>{{ .account.City }}, {{ .account.Region }}, {{ .account.Zipcode }}</b>
                                    {{ if .account.Country }}
                                        <br/><b>{{ .account.Country }}</b>
                                    {{end}}
                                </p>
                            {{end}}
                            <p>
                                <small>Timezone</small><br/>
                                <b>{{.account.Timezone }}</b>
                            </p>
                        </div>
                        <div class="col-md-6">
                            <p>
                                <small>Status</small><br/>
                                <b>
                                    {{ if eq .account.Status.Value "active" }}
66
                                        <span class="text-green"><i class="fas fa-circle mr-1"></i>{{ .account.Status.Title }}</span>
67
                                    {{else}}
68
                                        <span class="text-orange"><i class="fas fa-circle-notch mr-1"></i>{{.account.Status.Title }}</span>
69
70
71
72
73
74
75
76
77
78
79
80
81
82
                                    {{end}}
                                </b>
                            </p>
                            <p>
                                <small>ID</small><br/>
                                <b>{{ .account.ID }}</b>
                            </p>
                        </div>
                    </div>

                </div>
            </div>


83
84
        </div>
    </div>
85
86
87



88
89
90
91
{{end}}
{{define "js"}}

{{end}}