users-index.gohtml 1.48 KB
Newer Older
Lee Brown's avatar
Lee Brown committed
1 2
{{define "title"}}Users{{end}}
{{define "content"}}
3

4 5 6 7 8 9 10
    <nav aria-label="breadcrumb">
        <ol class="breadcrumb">
            <li class="breadcrumb-item"><a href="/users">Users</a></li>
            <li class="breadcrumb-item active" aria-current="page">Index</li>
        </ol>
    </nav>

11 12
    <div class="d-sm-flex align-items-center justify-content-between mb-4">
        <h1 class="h3 mb-0 text-gray-800">Users</h1>
13
        {{ if HasRole $._Ctx "admin" }}
14 15 16 17
            <div>
                <a href="{{ .urlUsersCreate }}" class="d-none d-sm-inline-block btn btn-sm btn-primary shadow-sm mr-2"><i class="fas fa-user-plus fa-sm text-white-50 mr-1"></i>Create User</a>
                <a href="{{ .urlUsersInvite }}" class="d-none d-sm-inline-block btn btn-sm btn-primary shadow-sm"><i class="fas fa-restroom fa-sm text-white-50 mr-1"></i>Invite Users</a>
            </div>
18
        {{ end }}
19 20
    </div>

Lee Brown's avatar
Lee Brown committed
21 22 23
    <div class="row">
        <div class="col">
            <form method="post">
24
                <div class="card shadow">
Lee Brown's avatar
Lee Brown committed
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
                    <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" . }}

<script>
    $(document).ready(function(){
        //$("#dataTable_filter").hide();
    });
</script>

{{end}}