@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 +1 -1
- package/src/views/article_revisions/general/_form.ejs +17 -0
- package/src/views/article_revisions/general/edit_form.ejs +1 -17
- package/src/views/event_revisions/general/_form.ejs +19 -0
- package/src/views/event_revisions/general/edit_form.ejs +1 -19
- package/src/views/page_revisions/general/_form.ejs +16 -0
- package/src/views/page_revisions/general/edit_form.ejs +1 -16
package/package.json
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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>
|