added buttons to view/edit page on both pages

This commit is contained in:
BroodjeAap 2022-11-21 20:15:59 +00:00
parent 74b30a5c81
commit c4a95b95b2
3 changed files with 23 additions and 15 deletions

View file

@ -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>

View file

@ -7,7 +7,10 @@
<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">
{{ .Watch.Name }}
<a href="/watch/edit/{{ .Watch.ID }}" class="btn btn-sm btn-success">Edit</a>
</div>
{{ if not .Watch.CronEntry }} {{ if not .Watch.CronEntry }}
<h5>No Schedule</h5> <h5>No Schedule</h5>
{{ else }} {{ else }}
@ -20,6 +23,7 @@
<div class="col-8">{{ .Watch.CronEntry.Next.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>
{{ end }} {{ end }}
</div> </div>
</div> </div>
</div> </div>

View file

@ -2,4 +2,3 @@
- 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