@sealcode/sealgen 0.17.18 → 0.17.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -67,15 +67,17 @@ async function createItemFormTemplate(create_action_name, newfilefullpath, colle
|
|
|
67
67
|
}
|
|
68
68
|
`,
|
|
69
69
|
render: ` async render(ctx: Context, data: FormData, show_field_errors: boolean) {
|
|
70
|
-
return html(
|
|
70
|
+
return html({
|
|
71
71
|
ctx,
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
title: "Create ${toKebabCase(collection_name)}",
|
|
73
|
+
body: tempstream/* HTML */ \` <div class="sealgen-crud-form">
|
|
74
74
|
<a class="" href="\${${list_action}URL}"
|
|
75
75
|
>\u2190 Back to ${collection_name} list</a
|
|
76
76
|
>
|
|
77
77
|
\${await super.render(ctx, data, show_field_errors)}
|
|
78
|
-
|
|
78
|
+
</div>\`,
|
|
79
|
+
description: ""
|
|
80
|
+
}
|
|
79
81
|
);
|
|
80
82
|
}`
|
|
81
83
|
});
|
|
@@ -143,15 +143,16 @@ async function editItemFormTemplate(edit_action_name, newfilefullpath, collectio
|
|
|
143
143
|
}
|
|
144
144
|
`,
|
|
145
145
|
render: ` async render(ctx: Context, data: FormData, show_field_errors: boolean) {
|
|
146
|
-
return html(
|
|
146
|
+
return html({
|
|
147
147
|
ctx,
|
|
148
|
-
|
|
149
|
-
|
|
148
|
+
title: "Edit ${toPascalCase(collection_name)}",
|
|
149
|
+
body: tempstream/* HTML */ \` <div class="sealgen-crud-form">
|
|
150
150
|
<a class="" href="\${${list_action}URL}"
|
|
151
151
|
>\u2190 Back to ${collection_name} list</a
|
|
152
152
|
>
|
|
153
153
|
\${await super.render(ctx, data, show_field_errors)}
|
|
154
|
-
|
|
154
|
+
</div>\`,
|
|
155
|
+
description: ""}
|
|
155
156
|
);
|
|
156
157
|
}`
|
|
157
158
|
});
|
package/package.json
CHANGED
|
@@ -106,15 +106,17 @@ export async function createItemFormTemplate(
|
|
|
106
106
|
}
|
|
107
107
|
`,
|
|
108
108
|
render: ` async render(ctx: Context, data: FormData, show_field_errors: boolean) {
|
|
109
|
-
return html(
|
|
109
|
+
return html({
|
|
110
110
|
ctx,
|
|
111
|
-
|
|
112
|
-
|
|
111
|
+
title: "Create ${toKebabCase(collection_name)}",
|
|
112
|
+
body: tempstream/* HTML */ \` <div class="sealgen-crud-form">
|
|
113
113
|
<a class="" href="\${${list_action}URL}"
|
|
114
114
|
>← Back to ${collection_name} list</a
|
|
115
115
|
>
|
|
116
116
|
\${await super.render(ctx, data, show_field_errors)}
|
|
117
|
-
|
|
117
|
+
</div>\`,
|
|
118
|
+
description: ""
|
|
119
|
+
}
|
|
118
120
|
);
|
|
119
121
|
}`,
|
|
120
122
|
});
|
|
@@ -186,15 +186,16 @@ export async function editItemFormTemplate(
|
|
|
186
186
|
`,
|
|
187
187
|
|
|
188
188
|
render: ` async render(ctx: Context, data: FormData, show_field_errors: boolean) {
|
|
189
|
-
return html(
|
|
189
|
+
return html({
|
|
190
190
|
ctx,
|
|
191
|
-
|
|
192
|
-
|
|
191
|
+
title: "Edit ${toPascalCase(collection_name)}",
|
|
192
|
+
body: tempstream/* HTML */ \` <div class="sealgen-crud-form">
|
|
193
193
|
<a class="" href="\${${list_action}URL}"
|
|
194
194
|
>← Back to ${collection_name} list</a
|
|
195
195
|
>
|
|
196
196
|
\${await super.render(ctx, data, show_field_errors)}
|
|
197
|
-
|
|
197
|
+
</div>\`,
|
|
198
|
+
description: ""}
|
|
198
199
|
);
|
|
199
200
|
}`,
|
|
200
201
|
});
|