@raketa-cloud/admin 0.0.58 → 0.0.59

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raketa-cloud/admin",
3
- "version": "0.0.58",
3
+ "version": "0.0.59",
4
4
  "main": "src/index.js",
5
5
  "scripts": {
6
6
  "dev": "npx tailwindcss -i ./src/styles/application.css -o ../../apps/admin/static/application.css --watch",
@@ -0,0 +1,17 @@
1
+ <% form_for({ resource }, errors, (f) => { %>
2
+ <form action="<%= `/${_context.locale}/${_context.resourceConfig.articleType}_revisions/${resource.id}/general` %>" method="POST" class="form">
3
+ <%- f.field('resource.title', { required: true }) %>
4
+ <%- f.field('resource.slug', { label: "URL", required: true }) %>
5
+ <%- f.field('resource.publishAt', { required: true, type: 'datetime-local', label: 'Publish at (UTC)' }) %>
6
+ <%- f.field('resource.visibility', { as: 'select', required: true, options: visibilityOptions }) %>
7
+
8
+ <%- include('../../_shared/_credentials_input.ejs', { f, visibilityFieldId: "f_resource_visibility"}) %>
9
+
10
+ <div class="form-actions">
11
+ <div class="btn-toolbar">
12
+ <%- f.submit('Save changes', { class: 'btn-primary' }) %>
13
+ <a href="<%= `/${_context.locale}/${_context.resourceConfig.articleTypePlural}/${resource.originalId}` %>" class="btn-secondary">Back</a>
14
+ </div>
15
+ </div>
16
+ </form>
17
+ <% }) %>
@@ -7,23 +7,7 @@
7
7
 
8
8
  <div class="grid gap-4 md:grid-cols-3">
9
9
  <div>
10
- <% form_for({ resource }, errors, (f) => { %>
11
- <form action="<%= `/${_context.locale}/${_context.resourceConfig.articleType}_revisions/${resource.id}/general` %>" method="POST" class="form">
12
- <%- f.field('resource.title', { required: true }) %>
13
- <%- f.field('resource.slug', { label: "URL", required: true }) %>
14
- <%- f.field('resource.publishAt', { required: true, type: 'datetime-local', label: 'Publish at (UTC)' }) %>
15
- <%- f.field('resource.visibility', { as: 'select', required: true, options: visibilityOptions }) %>
16
-
17
- <%- include('../../_shared/_credentials_input.ejs', { f, visibilityFieldId: "f_resource_visibility"}) %>
18
-
19
- <div class="form-actions">
20
- <div class="btn-toolbar">
21
- <%- f.submit('Save changes', { class: 'btn-primary' }) %>
22
- <a href="<%= `/${_context.locale}/${_context.resourceConfig.articleTypePlural}/${resource.originalId}` %>" class="btn-secondary">Back</a>
23
- </div>
24
- </div>
25
- </form>
26
- <% }) %>
10
+ <%- render_partial('_form.ejs') %>
27
11
  </div>
28
12
 
29
13
  <div>
@@ -0,0 +1,19 @@
1
+ <% form_for({ resource }, errors, (f) => { %>
2
+ <form action="<%= `/${_context.locale}/${_context.resourceConfig.eventType}_revisions/${resource.id}/general` %>" method="POST" class="form">
3
+ <%- f.field('resource.title', { required: true }) %>
4
+ <%- f.field('resource.slug', { label: "URL", required: true }) %>
5
+ <%- f.field('resource.publishAt', { required: true, type: 'datetime-local', label: 'Publish at (UTC)' }) %>
6
+ <%- f.field('resource.startsAt', { required: true, type: 'datetime-local', label: 'Starts at (UTC)' }) %>
7
+ <%- f.field('resource.endsAt', { required: true, type: 'datetime-local', label: 'Ends at (UTC)' }) %>
8
+ <%- f.field('resource.visibility', { as: 'select', required: true, options: visibilityOptions }) %>
9
+
10
+ <%- include('../../_shared/_credentials_input.ejs', { f, visibilityFieldId: "f_resource_visibility"}) %>
11
+
12
+ <div class="form-actions">
13
+ <div class="btn-toolbar">
14
+ <%- f.submit('Save changes', { class: 'btn-primary' }) %>
15
+ <a href="<%= `/${_context.locale}/${_context.resourceConfig.eventTypePlural}/${resource.originalId}` %>" class="btn-secondary">Back</a>
16
+ </div>
17
+ </div>
18
+ </form>
19
+ <% }) %>
@@ -7,25 +7,7 @@
7
7
 
8
8
  <div class="grid gap-4 md:grid-cols-3">
9
9
  <div>
10
- <% form_for({ resource }, errors, (f) => { %>
11
- <form action="<%= `/${_context.locale}/${_context.resourceConfig.eventType}_revisions/${resource.id}/general` %>" method="POST" class="form">
12
- <%- f.field('resource.title', { required: true }) %>
13
- <%- f.field('resource.slug', { label: "URL", required: true }) %>
14
- <%- f.field('resource.publishAt', { required: true, type: 'datetime-local', label: 'Publish at (UTC)' }) %>
15
- <%- f.field('resource.startsAt', { required: true, type: 'datetime-local', label: 'Starts at (UTC)' }) %>
16
- <%- f.field('resource.endsAt', { required: true, type: 'datetime-local', label: 'Ends at (UTC)' }) %>
17
- <%- f.field('resource.visibility', { as: 'select', required: true, options: visibilityOptions }) %>
18
-
19
- <%- include('../../_shared/_credentials_input.ejs', { f, visibilityFieldId: "f_resource_visibility"}) %>
20
-
21
- <div class="form-actions">
22
- <div class="btn-toolbar">
23
- <%- f.submit('Save changes', { class: 'btn-primary' }) %>
24
- <a href="<%= `/${_context.locale}/${_context.resourceConfig.eventTypePlural}/${resource.originalId}` %>" class="btn-secondary">Back</a>
25
- </div>
26
- </div>
27
- </form>
28
- <% }) %>
10
+ <%- render_partial('_form.ejs') %>
29
11
  </div>
30
12
 
31
13
  <div>
@@ -0,0 +1,16 @@
1
+ <% form_for({ resource }, errors, (f) => { %>
2
+ <form action="<%= `/${_context.locale}/${_context.resourceConfig.pageType}_revisions/${resource.id}/general` %>" method="POST" class="form">
3
+ <%- f.field('resource.title', { required: true }) %>
4
+ <%- f.field('resource.slug', { label: "URL", required: true }) %>
5
+ <%- f.field('resource.visibility', { as: 'select', required: true, options: visibilityOptions }) %>
6
+
7
+ <%- include('../../_shared/_credentials_input.ejs', { f, visibilityFieldId: "f_resource_visibility"}) %>
8
+
9
+ <div class="form-actions">
10
+ <div class="btn-toolbar">
11
+ <%- f.submit('Save changes', { class: 'btn-primary' }) %>
12
+ <a href="<%= `/${_context.locale}/${_context.resourceConfig.pageTypePlural}/${resource.originalId}` %>" class="btn-secondary">Back</a>
13
+ </div>
14
+ </div>
15
+ </form>
16
+ <% }) %>
@@ -7,22 +7,7 @@
7
7
 
8
8
  <div class="grid gap-4 md:grid-cols-3">
9
9
  <div>
10
- <% form_for({ resource }, errors, (f) => { %>
11
- <form action="<%= `/${_context.locale}/${_context.resourceConfig.pageType}_revisions/${resource.id}/general` %>" method="POST" class="form">
12
- <%- f.field('resource.title', { required: true }) %>
13
- <%- f.field('resource.slug', { label: "URL", required: true }) %>
14
- <%- f.field('resource.visibility', { as: 'select', required: true, options: visibilityOptions }) %>
15
-
16
- <%- include('../../_shared/_credentials_input.ejs', { f, visibilityFieldId: "f_resource_visibility"}) %>
17
-
18
- <div class="form-actions">
19
- <div class="btn-toolbar">
20
- <%- f.submit('Save changes', { class: 'btn-primary' }) %>
21
- <a href="<%= `/${_context.locale}/${_context.resourceConfig.pageTypePlural}/${resource.originalId}` %>" class="btn-secondary">Back</a>
22
- </div>
23
- </div>
24
- </form>
25
- <% }) %>
10
+ <%- render_partial('_form.ejs') %>
26
11
  </div>
27
12
 
28
13
  <div>