github.com/gobuffalo/buffalo-cli/v2@v2.0.0-alpha.15.0.20200919213536-a7350c8e6799/cli/internal/plugins/plush/generators/resource/templates/edit.plush.html.tmpl (about)

     1  <div class="py-4 mb-2">
     2    <h3 class="d-inline-block">Edit {{.Model.Proper}}</h3>
     3  </div>
     4  
     5  <%= formFor({{.Model.VarCaseSingle}}, {action: {{.Name.VarCaseSingle}}Path({ {{.Name.ParamID}}: {{.Model.VarCaseSingle}}.ID }), method: "PUT"}) { %>
     6    <%= partial("{{.Folder}}/form.html") %>
     7    <%= linkTo({{.Name.VarCaseSingle}}Path({ {{.Name.ParamID}}: {{.Model.VarCaseSingle}}.ID }), {class: "btn btn-warning", "data-confirm": "Are you sure?", body: "Cancel"}) %>
     8  <% } %>