Sha256: db65ec97d0f7e47aa5f0c340da4a804c6628b5bbc87b3474362b20a65f283603
Contents?: true
Size: 905 Bytes
Versions: 1
Compression:
Stored size: 905 Bytes
Contents
<template> <Head title="<%= human_name.pluralize %>" /> <p v-if="flash.notice" class="notice">{{ flash.notice }}</p> <h1><%= human_name.pluralize %></h1> <div> <div v-for="<%= singular_table_name %> in <%= plural_table_name %>" :key="<%= singular_table_name %>.id"> <<%= inertia_component_name %> :<%= singular_table_name %>="<%= singular_table_name %>" /> <p> <Link :href="`<%= js_resource_path %>`">Show this <%= human_name.downcase %></Link> </p> </div> </div> <Link href="<%= js_new_resource_path %>">New <%= human_name.downcase %></Link> </template> <script setup> import { Head, Link } from '@inertiajs/vue3' import <%= inertia_component_name %> from './<%= inertia_component_name %>.vue' const { <%= plural_table_name %>, flash } = defineProps(['<%= plural_table_name %>', 'flash']) </script> <style scoped> .notice { color: green; } </style>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
inertia_rails-3.5.0 | lib/generators/inertia_templates/scaffold/templates/vue/Index.vue.tt |