mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2024-12-27 05:49:04 +01:00
Fix block overwrite issue for navbar
This commit is contained in:
parent
7c901a57f9
commit
221fe54545
@ -69,28 +69,28 @@
|
|||||||
{{end}}
|
{{end}}
|
||||||
{{end}}
|
{{end}}
|
||||||
</ul>
|
</ul>
|
||||||
{{end}}
|
{{if .Infos.username }}
|
||||||
{{if .Infos.username }}
|
<div class="d-flex align-items-end">
|
||||||
<div class="d-flex align-items-end">
|
<ul class="navbar-nav ml-auto">
|
||||||
<ul class="navbar-nav ml-auto">
|
<li class="nav-item">
|
||||||
<li class="nav-item">
|
<form method="post" action="/logout">
|
||||||
<form method="post" action="/logout">
|
<button type="submit" class="btn btn-link nav-link fs-5">
|
||||||
<button type="submit" class="btn btn-link nav-link fs-5">
|
<span class="cc-nav-text">{{ .Infos.username }} Logout</span>
|
||||||
<span class="cc-nav-text">{{ .Infos.username }} Logout</span>
|
<i class="bi-box-arrow-right"></i>
|
||||||
<i class="bi-box-arrow-right"></i>
|
</button>
|
||||||
</button>
|
</form>
|
||||||
</form>
|
</li>
|
||||||
</li>
|
</ul>
|
||||||
</ul>
|
<form class="d-flex my-0" onsubmit="this.action='/search';">
|
||||||
<form class="d-flex my-0" onsubmit="this.action='/search';">
|
{{if .Infos.admin }}
|
||||||
{{if .Infos.admin }}
|
<input class="form-control me-2" type="search" name="searchId" placeholder="jobId / userId" id="searchId" aria-label="Search">
|
||||||
<input class="form-control me-2" type="search" name="searchId" placeholder="jobId / userId" id="searchId" aria-label="Search">
|
{{else}}
|
||||||
{{else}}
|
<input class="form-control me-2" type="search" name="searchId" placeholder="jobId" id="searchId" aria-label="Search">
|
||||||
<input class="form-control me-2" type="search" name="searchId" placeholder="jobId" id="searchId" aria-label="Search">
|
{{end}}
|
||||||
{{end}}
|
<button class="btn btn-outline-success fs-6" type="submit">Search</button>
|
||||||
<button class="btn btn-outline-success fs-6" type="submit">Search</button>
|
</form>
|
||||||
</form>
|
</div>
|
||||||
</div>
|
{{end}}
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
{{define "navigation"}}
|
{{define "navigation"}}
|
||||||
|
{{""}}
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{define "content"}}
|
{{define "content"}}
|
||||||
@ -32,7 +33,7 @@
|
|||||||
<label class="form-label" for="password">Password</label>
|
<label class="form-label" for="password">Password</label>
|
||||||
<input class="form-control" type="password" id="password" name="password" required/>
|
<input class="form-control" type="password" id="password" name="password" required/>
|
||||||
</div>
|
</div>
|
||||||
<button type="submit" class="btn btn-success">Login</button>
|
<button type="submit" class="btn btn-success">Submit</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user