added buttons to view/edit page on both pages
This commit is contained in:
parent
74b30a5c81
commit
c4a95b95b2
3 changed files with 23 additions and 15 deletions
|
@ -44,6 +44,11 @@
|
||||||
Open Log
|
Open Log
|
||||||
</button>
|
</button>
|
||||||
</td>
|
</td>
|
||||||
|
<td>
|
||||||
|
<a href="/watch/view/{{ .Watch.ID }}" class="btn btn-outline-secondary btn-sm">
|
||||||
|
View Watch
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|
|
@ -7,19 +7,23 @@
|
||||||
<div class="d-flex justify-content-around">
|
<div class="d-flex justify-content-around">
|
||||||
<div class="card d-flex justify-content-around">
|
<div class="card d-flex justify-content-around">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<h4 class="card-title text-center">{{ .Watch.Name }}</h4>
|
<div class="card-title text-center h4">
|
||||||
{{ if not .Watch.CronEntry }}
|
{{ .Watch.Name }}
|
||||||
<h5>No Schedule</h5>
|
<a href="/watch/edit/{{ .Watch.ID }}" class="btn btn-sm btn-success">Edit</a>
|
||||||
{{ else }}
|
</div>
|
||||||
<div class="row">
|
{{ if not .Watch.CronEntry }}
|
||||||
<div class="col-4">Previous</div>
|
<h5>No Schedule</h5>
|
||||||
<div class="col-8">{{ .Watch.CronEntry.Prev.Format "2006-01-02 15:04:05" }}</div>
|
{{ else }}
|
||||||
</div>
|
<div class="row">
|
||||||
<div class="row">
|
<div class="col-4">Previous</div>
|
||||||
<div class="col-4">Next</div>
|
<div class="col-8">{{ .Watch.CronEntry.Prev.Format "2006-01-02 15:04:05" }}</div>
|
||||||
<div class="col-8">{{ .Watch.CronEntry.Next.Format "2006-01-02 15:04:05" }}</div>
|
</div>
|
||||||
</div>
|
<div class="row">
|
||||||
{{ end }}
|
<div class="col-4">Next</div>
|
||||||
|
<div class="col-8">{{ .Watch.CronEntry.Next.Format "2006-01-02 15:04:05" }}</div>
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
3
todo.md
3
todo.md
|
@ -1,5 +1,4 @@
|
||||||
# Todo
|
# Todo
|
||||||
- make generic 'notifier' interface
|
- make generic 'notifier' interface
|
||||||
- header/post body for get url ?
|
- header/post body for get url ?
|
||||||
- add lua filter
|
- add lua filter
|
||||||
- edit button on watch view page
|
|
Loading…
Add table
Reference in a new issue