Move pesticide settings outside the mocks

And build a system for pulling common code out of the handlers
This commit is contained in:
Eli Ribble 2026-02-16 20:16:57 +00:00
parent f6879ac094
commit 38f64783ac
No known key found for this signature in database
3 changed files with 56 additions and 5 deletions

View file

@ -1,6 +1,6 @@
{{ template "sync/layout/base.html" . }}
{{ template "sync/layout/authenticated.html" . }}
{{ define "title" }}Dash{{ end }}
{{ define "title" }}Settings - Pesticide{{ end }}
{{ define "extraheader" }}
<style>
.target-icon {
@ -39,7 +39,7 @@
<div class="d-flex justify-content-between align-items-center mb-4">
<h1 class="mb-0">Pesticide Products Configuration</h1>
<a
href="{{ .URLs.SettingPesticideAdd }}"
href="{{ .URL.SettingPesticideAdd }}"
class="btn btn-primary"
id="addProductBtn"
>