projects-index.gohtml 1.31 KB
Newer Older
Lee Brown's avatar
Lee Brown committed
1 2
{{define "title"}}Projects{{end}}
{{define "content"}}
3

Lucas Brown's avatar
Lucas Brown committed
4 5 6 7 8 9 10
    <nav aria-label="breadcrumb">
        <ol class="breadcrumb">
            <li class="breadcrumb-item"><a href="/projects">Projects</a></li>
            <li class="breadcrumb-item active" aria-current="page">Index</li>
        </ol>
    </nav>

11
    <div class="d-sm-flex align-items-center justify-content-between mb-4">
Lucas Brown's avatar
Lucas Brown committed
12

13 14
        <h1 class="h3 mb-0 text-gray-800">Projects</h1>
        {{ if HasRole $._Ctx "admin" }}
Lee Brown's avatar
Lee Brown committed
15 16
            <a href="{{ .urlProjectsCreate }}" class="d-none d-sm-inline-block btn btn-sm btn-primary shadow-sm">
                <i class="fas fa-folder-plus fa-sm text-white-50 mr-1"></i>Create Project</a>
17 18 19
        {{ end }}
    </div>

Lee Brown's avatar
Lee Brown committed
20 21 22
    <div class="row">
        <div class="col">
            <form method="post">
23
                <div class="card shadow">
Lee Brown's avatar
Lee Brown committed
24 25 26 27 28 29 30 31 32 33 34 35 36 37
                    <div class="table-responsive dataTable_card">
                        {{ template "partials/datatable/html" . }}
                    </div>
                </div>
            </form>
        </div>
    </div>
{{end}}
{{define "style"}}
    {{ template "partials/datatable/style" . }}
{{ end }}
{{define "js"}}
    {{ template "partials/datatable/js" . }}

Lee Brown's avatar
Lee Brown committed
38 39 40 41 42
    <script>
        $(document).ready(function(){
            //$("#dataTable_filter").hide();
        });
    </script>
Lee Brown's avatar
Lee Brown committed
43 44

{{end}}