projects-view.gohtml 3.19 KB
Newer Older
Lee Brown's avatar
Lee Brown committed
1 2 3 4 5
{{define "title"}}Project - {{ .project.Name }}{{end}}
{{define "style"}}

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

Lucas Brown's avatar
Lucas Brown committed
7 8 9 10 11 12 13 14
    <nav aria-label="breadcrumb">
        <ol class="breadcrumb">
            <li class="breadcrumb-item"><a href="/projects">Projects</a></li>
            <li class="breadcrumb-item"><a href="{{ .urlProjectsView }}">{{ .project.Name }}</a></li>
            <li class="breadcrumb-item active" aria-current="page">View</li>
        </ol>
    </nav>

15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
    <div class="d-sm-flex align-items-center justify-content-between mb-4">
        <h1 class="h3 mb-0 text-gray-800">{{ .project.Name }}</h1>
        <!-- a href="{{ .urlProjectsUpdate }}" 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 -->
    </div>

    <div class="card shadow mb-4">
        <div class="card-header py-3 d-flex flex-row align-items-center justify-content-between">
            <h6 class="m-0 font-weight-bold text-dark">Project Details</h6>
            <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>
                    <a class="dropdown-item" href="{{ .urlProjectsUpdate }}">Update Details</a>
                    {{ if HasRole $._Ctx "admin" }}
                        <form method="post"><input type="hidden" name="action" value="archive" /><input type="submit" value="Archive Project" class="dropdown-item"></form>
                    {{ end }}
Lee Brown's avatar
Lee Brown committed
33 34 35
                </div>
            </div>
        </div>
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
        <div class="card-body">
            <div class="row">
                <div class="col-md-6">
                    <p>
                        <small>Name</small><br/>
                        <b>{{ .project.Name }}</b>
                    </p>
                    <p>
                        <small>Status</small><br/>
                        {{ if .project }}
                            <b>
                                {{ if eq .project.Status.Value "active" }}
                                    <span class="text-green"><i class="fas fa-circle mr-1"></i>{{ .project.Status.Title }}</span>
                                {{else}}
                                    <span class="text-orange"><i class="fas fa-circle-notch mr-1"></i>{{.project.Status.Title }}</span>
                                {{end}}
                            </b>
                        {{ end }}
                    </p>
                </div>
                <div class="col-md-6">
                    <p>
                        <small>ID</small><br/>
                        <b>{{ .project.ID }}</b>
                    </p>
                </div>
            </div>
Lee Brown's avatar
Lee Brown committed
63 64
        </div>
    </div>
65

Lee Brown's avatar
Lee Brown committed
66 67 68 69
{{end}}
{{define "js"}}

{{end}}