<script>
  export let {{ $.Singular }} = {}
</script>

<h1>Edit {{ $.Title }}</h1>

<form method="post" action={`{{ $.Controller.ShowPath }}`}>
  <input type="hidden" name="_method" value="patch" />
  <!-- Add input fields here -->
  <input type="submit" value="Update {{ $.Title }}" />
</form>

<br />

<a href={`{{ $.Controller.IndexPath }}`}>Back</a>
<span> | </span>
<a href={`{{ $.Controller.ShowPath }}`}>Show {{ $.Title }}</a>
