mirror of
https://github.com/thewhitetulip/Tasks.git
synced 2025-04-28 13:48:51 +08:00
modified the notification prompt
This commit is contained in:
parent
1752d74589
commit
67ea47248d
@ -54,23 +54,22 @@ textarea {
|
||||
right: 10px;
|
||||
max-width: 400px;
|
||||
padding: 12px;
|
||||
background-color: #FFF;
|
||||
box-shadow: 1px 0px 9px 0px rgba(252, 103, 22, 0.4);
|
||||
border: 1px solid #DEB3A8;
|
||||
background-color: #F2FCFF;
|
||||
box-shadow: 1px 0px 9px 0px rgba(27, 123, 216, 0.4);
|
||||
border: 1px solid #5596CE;
|
||||
border-radius: 10px;
|
||||
border-radius: 10px;
|
||||
z-index: 1100;
|
||||
max-height: 90px;
|
||||
margin-top: 20px;
|
||||
min-width: 200px;
|
||||
}
|
||||
|
||||
.notification-close{
|
||||
background-color: #2037B3;
|
||||
border-radius: 40px;
|
||||
border:none;
|
||||
color: #FFF;
|
||||
align-content: center;
|
||||
position: fixed;
|
||||
margin-top: -20px;
|
||||
#btnMessage {
|
||||
padding: 1px 12px;
|
||||
height: 30px;
|
||||
text-align: center;
|
||||
float: right;
|
||||
}
|
||||
|
||||
/*--------------------------------------
|
||||
|
@ -43,7 +43,7 @@
|
||||
</head>
|
||||
<body>
|
||||
<!-- The navigation bar-->
|
||||
<div class="notification" {{if eq .Message ""}} class="hidden" {{end}}><span id="message">{{.Message}}</span> <button class="notification-close" type="button">×</button></div>
|
||||
<div class="notification hidden" {{if eq .Message ""}} class="hidden" {{end}}><span id="message"><p>{{.Message}} <button id="btnMessage" class="btn btn-default">OK</button></p> </span> </div>
|
||||
<nav class="navbar navbar-default navbar-fixed-top mainHeader">
|
||||
<div class="container-fluid">
|
||||
<div class="navbar-header">
|
||||
@ -101,19 +101,22 @@
|
||||
<hr>
|
||||
|
||||
<li class="sidebar-item">
|
||||
{{$nav := .Navigation}}
|
||||
<h5> Categories</h5>
|
||||
<!--<button title="New category" id="toggleCategoryForm" data-placement="left" data-toggle="tooltip" class="btn glyphicon glyphicon-plus" style="font-size:small; margin-left:120px;"></button>-->
|
||||
<span id="categoryForm">
|
||||
<form action="/add-category/" method="POST">
|
||||
<input type="text" name="category" width="50px" style="border:none;border-bottom:1px solid gray; box-shadow:none;">
|
||||
<input type="submit" text="submit" class="btn btn-default" width="50px" height="30px"/>
|
||||
<span>
|
||||
<input type="text" name="category" width="50px">
|
||||
<input type="submit" text="submit" class="btn btn-primary" value="Submit"/>
|
||||
</span>
|
||||
</form>
|
||||
</span>
|
||||
</li>
|
||||
|
||||
{{ range .Categories }}
|
||||
{{ range $index, $cat := .Categories }}
|
||||
<li class="sidebar-item">
|
||||
<a href="/category/{{.}}" > <span class="glyphicon glyphicon-stop"></span> <span class="nav-item"> {{.}}</span></a>
|
||||
<a href="/category/{{$cat}}" {{ if eq $cat $nav }} class="active" {{end}}> <span class="glyphicon glyphicon-stop"></span> <span class="nav-item"> {{$cat}}</span></a>
|
||||
</li>
|
||||
{{end}}
|
||||
</ul>
|
||||
|
Loading…
x
Reference in New Issue
Block a user