@raketa-cloud/admin 0.0.21 → 0.0.22

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.21",
3
+ "version": "0.0.22",
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",
@@ -2,7 +2,7 @@
2
2
  <form action="<%= resource?.id ? `/${_context.locale}/articles/${resource.id}` : `/${_context.locale}/articles` %>" method="post" class="form">
3
3
  <%- f.field('resource.title', { required: true }) %>
4
4
  <%- f.field('resource.slug', { label: "URL", required: true }) %>
5
- <%- f.field('resource.publish_at', { required: true, type: 'datetime-local' }) %>
5
+ <%- f.field('general_settings.publish_at', { required: true, type: 'datetime-local', label: 'Publish at (UTC)' }) %>
6
6
 
7
7
  <%- f.field('resource.visibility', { as: 'select', required: true, options: visibilityOptions }) %>
8
8
 
@@ -18,10 +18,7 @@
18
18
  <%- f.field('resource.meta_title', { required: true }) %>
19
19
  <%- f.field('resource.meta_description', { as: "textarea", required: true }) %>
20
20
 
21
- <raketa-image-picker
22
- name="resource[meta_image]"
23
- value="<%= JSON.stringify(resource.meta_image) %>"
24
- ></raketa-image-picker>
21
+ <raketa-image-picker name="resource[meta_image]" value="<%= JSON.stringify(resource.meta_image) %>"></raketa-image-picker>
25
22
 
26
23
  <%- f.field('resource.tags', { as: 'checkbox_group', required: true, options: tags.map(tag => [tag.id, tag.name]) }) %>
27
24
 
@@ -2,9 +2,9 @@
2
2
  <form action="<%= resource?.id ? `/${_context.locale}/events/${resource.id}` : `/${_context.locale}/events` %>" method="post" class="form">
3
3
  <%- f.field('resource.title', { required: true }) %>
4
4
  <%- f.field('resource.slug', { label: "URL", required: true }) %>
5
- <%- f.field('resource.publish_at', { required: true, type: 'datetime-local' }) %>
6
- <%- f.field('resource.starts_at', { required: true, type: 'datetime-local' }) %>
7
- <%- f.field('resource.ends_at', { required: true, type: 'datetime-local' }) %>
5
+ <%- f.field('general_settings.publish_at', { required: true, type: 'datetime-local', label: 'Publish at (UTC)' }) %>
6
+ <%- f.field('general_settings.starts_at', { required: true, type: 'datetime-local', label: 'Starts at (UTC)' }) %>
7
+ <%- f.field('general_settings.ends_at', { required: true, type: 'datetime-local', label: 'Ends at (UTC)' }) %>
8
8
 
9
9
  <%- f.field('resource.visibility', { as: 'select', required: true, options: visibilityOptions }) %>
10
10
 
@@ -20,10 +20,7 @@
20
20
  <%- f.field('resource.meta_title', { required: true }) %>
21
21
  <%- f.field('resource.meta_description', { as: "textarea", required: true }) %>
22
22
 
23
- <raketa-image-picker
24
- name="resource[meta_image]"
25
- value="<%= JSON.stringify(resource.meta_image) %>"
26
- ></raketa-image-picker>
23
+ <raketa-image-picker name="resource[meta_image]" value="<%= JSON.stringify(resource.meta_image) %>"></raketa-image-picker>
27
24
 
28
25
  <%- f.field('resource.tags', { as: 'checkbox_group', required: true, options: tags.map(tag => [tag.id, tag.name]) }) %>
29
26
 
@@ -23,4 +23,4 @@
23
23
  </div>
24
24
  </div>
25
25
 
26
- </div>
26
+ </div>
@@ -19,4 +19,4 @@
19
19
  </form>
20
20
  <% }) %>
21
21
  </div>
22
- </div>
22
+ </div>