github.com/wawandco/ox@v0.13.6-0.20230809142027-913b3d837f2a/plugins/tools/ox/resource/templates/edit.html.tmpl (about) 1 <div class="py-4 mb-2"> 2 <h3 class="d-inline-block">Edit {{.Name.Proper}}</h3> 3 </div> 4 5 <%= formFor({{.Name.VarCaseSingle}}, {action: {{ .Name.VarCaseSingle }}Path({ {{ .Name.ParamID }}: {{ .Name.VarCaseSingle }}.ID }), method: "PUT"}) { %> 6 <%= partial("{{ .Name.Folder.Pluralize }}/form.html") %> 7 <%= linkTo({{ .Name.VarCaseSingle }}Path({ {{ .Name.ParamID }}: {{ .Name.VarCaseSingle }}.ID }), {class: "btn btn-warning", "data-confirm": "Are you sure?", body: "Cancel"}) %> 8 <% } %>