Sha256: ee583b5a92a1bb56f69c95c8b9f27b28927821326d5e3b73266d1607ed5b2611
Contents?: true
Size: 666 Bytes
Versions: 6
Compression:
Stored size: 666 Bytes
Contents
<script> import { Link } from '@inertiajs/svelte' import Form from './Form.svelte' export let <%= singular_table_name %> const handleSubmit = (e) => { const { form } = e.detail form.transform((data) => ({ <%= singular_table_name %>: data })) form.post('<%= js_resources_path %>') } </script> <svelte:head> <title>New <%= human_name.downcase %></title> </svelte:head> <h1>New <%= human_name.downcase %></h1> <Form {<%= singular_table_name %>} submitText="Create <%= human_name.downcase %>" on:submit={handleSubmit} /> <br /> <div> <Link href="<%= js_resources_path %>">Back to <%= human_name.pluralize.downcase %></Link> </div>
Version data entries
6 entries across 6 versions & 1 rubygems