You've already forked golang-saas-starter-kit
mirror of
https://github.com/raseels-repos/golang-saas-starter-kit.git
synced 2025-08-10 22:41:25 +02:00
Added breakcrumbs
This commit is contained in:
@@ -292,7 +292,7 @@ func (h *Projects) View(ctx context.Context, w http.ResponseWriter, r *http.Requ
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
data["project"] = prj.Response(ctx)
|
data["project"] = prj.Response(ctx)
|
||||||
|
data["urlProjectsView"] = urlProjectsView(projectID)
|
||||||
data["urlProjectsUpdate"] = urlProjectsUpdate(projectID)
|
data["urlProjectsUpdate"] = urlProjectsUpdate(projectID)
|
||||||
|
|
||||||
return h.Renderer.Render(ctx, w, r, TmplLayoutBase, "projects-view.gohtml", web.MIMETextHTMLCharsetUTF8, http.StatusOK, data)
|
return h.Renderer.Render(ctx, w, r, TmplLayoutBase, "projects-view.gohtml", web.MIMETextHTMLCharsetUTF8, http.StatusOK, data)
|
||||||
@@ -373,6 +373,8 @@ func (h *Projects) Update(ctx context.Context, w http.ResponseWriter, r *http.Re
|
|||||||
}
|
}
|
||||||
data["project"] = prj.Response(ctx)
|
data["project"] = prj.Response(ctx)
|
||||||
|
|
||||||
|
data["urlProjectsView"] = urlProjectsView(projectID)
|
||||||
|
|
||||||
if req.ID == "" {
|
if req.ID == "" {
|
||||||
req.Name = &prj.Name
|
req.Name = &prj.Name
|
||||||
req.Status = &prj.Status
|
req.Status = &prj.Status
|
||||||
|
@@ -4,6 +4,13 @@
|
|||||||
{{end}}
|
{{end}}
|
||||||
{{define "content"}}
|
{{define "content"}}
|
||||||
|
|
||||||
|
<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">Create</li>
|
||||||
|
</ol>
|
||||||
|
</nav>
|
||||||
|
|
||||||
<div class="d-sm-flex align-items-center justify-content-between mb-4">
|
<div class="d-sm-flex align-items-center justify-content-between mb-4">
|
||||||
<h1 class="h3 mb-0 text-gray-800">Create Project</h1>
|
<h1 class="h3 mb-0 text-gray-800">Create Project</h1>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -1,7 +1,15 @@
|
|||||||
{{define "title"}}Projects{{end}}
|
{{define "title"}}Projects{{end}}
|
||||||
{{define "content"}}
|
{{define "content"}}
|
||||||
|
|
||||||
|
<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>
|
||||||
|
|
||||||
<div class="d-sm-flex align-items-center justify-content-between mb-4">
|
<div class="d-sm-flex align-items-center justify-content-between mb-4">
|
||||||
|
|
||||||
<h1 class="h3 mb-0 text-gray-800">Projects</h1>
|
<h1 class="h3 mb-0 text-gray-800">Projects</h1>
|
||||||
{{ if HasRole $._Ctx "admin" }}
|
{{ if HasRole $._Ctx "admin" }}
|
||||||
<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>
|
<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>
|
||||||
|
@@ -4,6 +4,15 @@
|
|||||||
{{end}}
|
{{end}}
|
||||||
{{define "content"}}
|
{{define "content"}}
|
||||||
|
|
||||||
|
<nav aria-label="breadcrumb">
|
||||||
|
<ol class="breadcrumb">
|
||||||
|
<li class="breadcrumb-item"><a href="/projects">Projects</a></li>
|
||||||
|
<li class="breadcrumb-item"><a href="{{ .urlProjectsView }}">{{ .form.Name }}</a></li>
|
||||||
|
<li class="breadcrumb-item active" aria-current="page">Update</li>
|
||||||
|
</ol>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
<div class="d-sm-flex align-items-center justify-content-between mb-4">
|
<div class="d-sm-flex align-items-center justify-content-between mb-4">
|
||||||
<h1 class="h3 mb-0 text-gray-800">Update Project</h1>
|
<h1 class="h3 mb-0 text-gray-800">Update Project</h1>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -4,6 +4,14 @@
|
|||||||
{{end}}
|
{{end}}
|
||||||
{{define "content"}}
|
{{define "content"}}
|
||||||
|
|
||||||
|
<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>
|
||||||
|
|
||||||
<div class="d-sm-flex align-items-center justify-content-between mb-4">
|
<div class="d-sm-flex align-items-center justify-content-between mb-4">
|
||||||
<h1 class="h3 mb-0 text-gray-800">{{ .project.Name }}</h1>
|
<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 -->
|
<!-- 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 -->
|
||||||
|
Reference in New Issue
Block a user