alchemy_cms 8.2.7 → 8.3.0

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.
Files changed (189) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -1
  3. data/app/assets/builds/alchemy/admin.css +1 -1
  4. data/app/assets/builds/alchemy/alchemy_admin.min.js +1 -1
  5. data/app/assets/builds/alchemy/alchemy_admin.min.js.map +1 -1
  6. data/app/assets/builds/alchemy/dark-theme.css +1 -1
  7. data/app/assets/builds/alchemy/light-theme.css +1 -1
  8. data/app/assets/builds/alchemy/preview.min.js +1 -1
  9. data/app/assets/builds/alchemy/theme.css +1 -1
  10. data/app/assets/builds/alchemy/welcome.css +1 -1
  11. data/app/assets/builds/tinymce/skins/content/alchemy/content.min.css +1 -1
  12. data/app/assets/builds/tinymce/skins/content/alchemy-dark/content.min.css +1 -1
  13. data/app/assets/builds/tinymce/skins/ui/alchemy/skin.min.css +1 -1
  14. data/app/assets/builds/tinymce/skins/ui/alchemy-dark/skin.min.css +1 -1
  15. data/app/assets/images/alchemy/admin/logo.svg +27 -0
  16. data/app/assets/images/alchemy/icons-sprite.svg +1 -1
  17. data/app/components/alchemy/admin/dashboard/widget.rb +40 -0
  18. data/app/components/alchemy/admin/dashboard/widgets/attachment_counts.rb +17 -0
  19. data/app/components/alchemy/admin/dashboard/widgets/element_usage.rb +37 -0
  20. data/app/components/alchemy/admin/dashboard/widgets/greeting.html.erb +13 -0
  21. data/app/components/alchemy/admin/dashboard/widgets/greeting.rb +21 -0
  22. data/app/components/alchemy/admin/dashboard/widgets/locked_pages.html.erb +54 -0
  23. data/app/components/alchemy/admin/dashboard/widgets/locked_pages.rb +20 -0
  24. data/app/components/alchemy/admin/dashboard/widgets/online_users.html.erb +22 -0
  25. data/app/components/alchemy/admin/dashboard/widgets/online_users.rb +19 -0
  26. data/app/components/alchemy/admin/dashboard/widgets/page_counts.rb +23 -0
  27. data/app/components/alchemy/admin/dashboard/widgets/page_usage.rb +46 -0
  28. data/app/components/alchemy/admin/dashboard/widgets/picture_counts.rb +17 -0
  29. data/app/components/alchemy/admin/dashboard/widgets/recent_pages.html.erb +41 -0
  30. data/app/components/alchemy/admin/dashboard/widgets/recent_pages.rb +16 -0
  31. data/app/components/alchemy/admin/dashboard/widgets/sites.html.erb +29 -0
  32. data/app/components/alchemy/admin/dashboard/widgets/sites.rb +15 -0
  33. data/app/components/alchemy/admin/dashboard/widgets/stat_widget.html.erb +23 -0
  34. data/app/components/alchemy/admin/dashboard/widgets/stat_widget.rb +19 -0
  35. data/app/components/alchemy/admin/dashboard/widgets/system_info.html.erb +32 -0
  36. data/app/components/alchemy/admin/dashboard/widgets/system_info.rb +37 -0
  37. data/app/components/alchemy/admin/dashboard/widgets/usage_widget.html.erb +42 -0
  38. data/app/components/alchemy/admin/dashboard/widgets/usage_widget.rb +66 -0
  39. data/app/components/alchemy/admin/dashboard/widgets/user_counts.rb +25 -0
  40. data/app/components/alchemy/admin/element_editor.html.erb +27 -20
  41. data/app/components/alchemy/admin/element_schedule_timestamps.rb +33 -0
  42. data/app/components/alchemy/admin/element_select.rb +4 -3
  43. data/app/components/alchemy/admin/page_node.html.erb +1 -20
  44. data/app/components/alchemy/admin/page_publication_fields.html.erb +30 -0
  45. data/app/components/alchemy/admin/page_publication_fields.rb +18 -0
  46. data/app/components/alchemy/admin/page_status_indicators.html.erb +29 -0
  47. data/app/components/alchemy/admin/page_status_indicators.rb +9 -0
  48. data/app/components/alchemy/admin/publish_element_button.html.erb +12 -4
  49. data/app/components/alchemy/ingredients/headline_editor.rb +1 -1
  50. data/app/controllers/alchemy/admin/dashboard/widgets_controller.rb +21 -0
  51. data/app/controllers/alchemy/admin/dashboard_controller.rb +3 -12
  52. data/app/controllers/alchemy/pages_controller.rb +5 -4
  53. data/app/helpers/alchemy/elements_block_helper.rb +1 -0
  54. data/app/javascript/alchemy_admin/components/auto_submit.js +15 -9
  55. data/app/javascript/alchemy_admin/components/char_counter.js +17 -7
  56. data/app/javascript/alchemy_admin/components/clipboard_button.js +2 -6
  57. data/app/javascript/alchemy_admin/components/color_select.js +13 -4
  58. data/app/javascript/alchemy_admin/components/datepicker.js +11 -14
  59. data/app/javascript/alchemy_admin/components/dialog_link.js +5 -2
  60. data/app/javascript/alchemy_admin/components/element_editor/delete_element_button.js +6 -3
  61. data/app/javascript/alchemy_admin/components/element_editor.js +45 -28
  62. data/app/javascript/alchemy_admin/components/element_select.js +7 -4
  63. data/app/javascript/alchemy_admin/components/elements_window.js +38 -31
  64. data/app/javascript/alchemy_admin/components/elements_window_handle.js +7 -3
  65. data/app/javascript/alchemy_admin/components/file_editor.js +5 -2
  66. data/app/javascript/alchemy_admin/components/ingredient_group.js +6 -4
  67. data/app/javascript/alchemy_admin/components/link_buttons/link_button.js +1 -2
  68. data/app/javascript/alchemy_admin/components/link_buttons/unlink_button.js +1 -2
  69. data/app/javascript/alchemy_admin/components/link_buttons.js +6 -2
  70. data/app/javascript/alchemy_admin/components/list_filter.js +44 -29
  71. data/app/javascript/alchemy_admin/components/message.js +22 -15
  72. data/app/javascript/alchemy_admin/components/overlay.js +5 -7
  73. data/app/javascript/alchemy_admin/components/page_publication_fields.js +38 -25
  74. data/app/javascript/alchemy_admin/components/picture_description_select.js +5 -2
  75. data/app/javascript/alchemy_admin/components/picture_editor.js +5 -10
  76. data/app/javascript/alchemy_admin/components/picture_thumbnail.js +4 -5
  77. data/app/javascript/alchemy_admin/components/preview_window.js +5 -10
  78. data/app/javascript/alchemy_admin/components/publish_page_button.js +2 -5
  79. data/app/javascript/alchemy_admin/components/remote_select.js +53 -23
  80. data/app/javascript/alchemy_admin/components/select.js +169 -26
  81. data/app/javascript/alchemy_admin/components/sortable_elements.js +1 -1
  82. data/app/javascript/alchemy_admin/components/spinner.js +11 -11
  83. data/app/javascript/alchemy_admin/components/tags_autocomplete.js +9 -1
  84. data/app/javascript/alchemy_admin/components/tinymce.js +16 -22
  85. data/app/javascript/alchemy_admin/components/uploader/file_upload.js +48 -45
  86. data/app/javascript/alchemy_admin/components/uploader/progress.js +70 -84
  87. data/app/javascript/alchemy_admin/components/uploader.js +71 -46
  88. data/app/javascript/alchemy_admin/dialog.js +3 -0
  89. data/app/javascript/alchemy_admin/hotkeys.js +0 -18
  90. data/app/javascript/alchemy_admin/image_cropper.js +7 -9
  91. data/app/javascript/alchemy_admin/initializer.js +21 -0
  92. data/app/javascript/alchemy_admin/utils/dispatch_page_dirty_event.js +7 -0
  93. data/app/javascript/tinymce/plugins/alchemy_link/index.js +9 -0
  94. data/app/jobs/alchemy/base_job.rb +2 -2
  95. data/app/jobs/alchemy/invalidate_elements_cache_job.rb +33 -0
  96. data/app/models/alchemy/page/page_naming.rb +28 -5
  97. data/app/models/alchemy/page/page_natures.rb +7 -2
  98. data/app/models/alchemy/page/page_scopes.rb +2 -2
  99. data/app/models/alchemy/page/url_path.rb +7 -2
  100. data/app/models/alchemy/page.rb +2 -2
  101. data/app/models/alchemy/page_definition.rb +1 -0
  102. data/app/models/alchemy/permissions.rb +1 -1
  103. data/app/models/concerns/alchemy/relatable_resource.rb +8 -0
  104. data/app/services/alchemy/page_finder.rb +88 -0
  105. data/app/stylesheets/alchemy/_custom-properties.scss +6 -4
  106. data/app/stylesheets/alchemy/_mixins.scss +1 -7
  107. data/app/stylesheets/alchemy/_themes.scss +13 -1
  108. data/app/stylesheets/alchemy/admin/_tom-select.scss +240 -0
  109. data/app/stylesheets/alchemy/admin/archive.scss +0 -1
  110. data/app/stylesheets/alchemy/admin/base.scss +0 -19
  111. data/app/stylesheets/alchemy/admin/dashboard.scss +395 -28
  112. data/app/stylesheets/alchemy/admin/elements.scss +14 -17
  113. data/app/stylesheets/alchemy/admin/form_fields.scss +3 -3
  114. data/app/stylesheets/alchemy/admin/forms.scss +107 -93
  115. data/app/stylesheets/alchemy/admin/icons.scss +28 -0
  116. data/app/stylesheets/alchemy/admin/image_library.scss +20 -10
  117. data/app/stylesheets/alchemy/admin/navigation.scss +4 -1
  118. data/app/stylesheets/alchemy/admin/popover.scss +3 -5
  119. data/app/stylesheets/alchemy/admin/resource_info.scss +11 -17
  120. data/app/stylesheets/alchemy/admin/shoelace.scss +8 -0
  121. data/app/stylesheets/alchemy/admin/sitemap.scss +5 -0
  122. data/app/stylesheets/alchemy/admin/tables.scss +32 -3
  123. data/app/stylesheets/alchemy/admin/toolbar.scss +0 -1
  124. data/app/stylesheets/alchemy/admin.scss +1 -0
  125. data/app/stylesheets/tinymce/skins/ui/alchemy/skin.scss +0 -4
  126. data/app/stylesheets/tinymce/skins/ui/alchemy-dark/skin.scss +0 -4
  127. data/app/types/alchemy/wildcard_url_type.rb +48 -0
  128. data/app/views/alchemy/_menubar.html.erb +1 -5
  129. data/app/views/alchemy/admin/attachments/edit.html.erb +6 -3
  130. data/app/views/alchemy/admin/dashboard/_dashboard.html.erb +3 -2
  131. data/app/views/alchemy/admin/dashboard/_footer.html.erb +22 -0
  132. data/app/views/alchemy/admin/dashboard/_stats.html.erb +7 -0
  133. data/app/views/alchemy/admin/dashboard/_top.html.erb +4 -12
  134. data/app/views/alchemy/admin/dashboard/_widgets.html.erb +7 -0
  135. data/app/views/alchemy/admin/dashboard/index.html.erb +0 -17
  136. data/app/views/alchemy/admin/dashboard/info.html.erb +1 -62
  137. data/app/views/alchemy/admin/dashboard/widgets/show.html.erb +3 -0
  138. data/app/views/alchemy/admin/elements/_form.html.erb +2 -1
  139. data/app/views/alchemy/admin/elements/_schedule.html.erb +2 -15
  140. data/app/views/alchemy/admin/elements/_schedule_fields.html.erb +2 -0
  141. data/app/views/alchemy/admin/layoutpages/edit.html.erb +6 -3
  142. data/app/views/alchemy/admin/nodes/_page_nodes.html.erb +10 -8
  143. data/app/views/alchemy/admin/pages/_form.html.erb +25 -19
  144. data/app/views/alchemy/admin/pages/_publication_fields.html.erb +2 -32
  145. data/app/views/alchemy/admin/pages/_table.html.erb +1 -18
  146. data/app/views/alchemy/admin/pages/configure.html.erb +2 -2
  147. data/app/views/alchemy/admin/pages/info.html.erb +6 -0
  148. data/app/views/alchemy/admin/resources/_form.html.erb +7 -4
  149. data/app/views/alchemy/admin/resources/edit.html.erb +3 -1
  150. data/app/views/alchemy/admin/resources/new.html.erb +3 -1
  151. data/app/views/alchemy/admin/styleguide/index.html.erb +52 -30
  152. data/app/views/alchemy/admin/translations/_en.js +4 -0
  153. data/app/views/layouts/alchemy/admin.html.erb +3 -3
  154. data/config/importmap.rb +2 -0
  155. data/config/locales/alchemy.en.yml +15 -0
  156. data/config/routes.rb +1 -0
  157. data/lib/alchemy/configuration/class_option.rb +46 -3
  158. data/lib/alchemy/configuration/collection_option.rb +4 -0
  159. data/lib/alchemy/configurations/dashboard.rb +79 -0
  160. data/lib/alchemy/configurations/main.rb +15 -0
  161. data/lib/alchemy/engine.rb +9 -3
  162. data/lib/alchemy/sprockets/skip_builds_compression.rb +33 -0
  163. data/lib/alchemy/test_support/capybara_helpers.rb +17 -0
  164. data/lib/alchemy/test_support/relatable_resource_examples.rb +20 -0
  165. data/lib/alchemy/test_support/rspec_matchers.rb +8 -0
  166. data/lib/alchemy/test_support/shared_publishable_examples.rb +38 -31
  167. data/lib/alchemy/tinymce.rb +1 -1
  168. data/lib/alchemy/version.rb +17 -3
  169. data/vendor/javascript/cropperjs.min.js +1 -1
  170. data/vendor/javascript/flatpickr.min.js +1 -1
  171. data/vendor/javascript/floating-ui.min.js +1 -0
  172. data/vendor/javascript/keymaster.min.js +1 -1
  173. data/vendor/javascript/rails-ujs.min.js +1 -1
  174. data/vendor/javascript/shoelace.min.js +93 -93
  175. data/vendor/javascript/sortable.min.js +1 -1
  176. data/vendor/javascript/tinymce.min.js +5 -1
  177. data/vendor/javascript/tom-select.min.js +1 -0
  178. metadata +57 -18
  179. data/app/javascript/alchemy_admin/components/alchemy_html_element.js +0 -129
  180. data/app/views/alchemy/admin/dashboard/_left_column.html.erb +0 -4
  181. data/app/views/alchemy/admin/dashboard/_right_column.html.erb +0 -9
  182. data/app/views/alchemy/admin/dashboard/widgets/_locked_pages.html.erb +0 -52
  183. data/app/views/alchemy/admin/dashboard/widgets/_recent_pages.html.erb +0 -34
  184. data/app/views/alchemy/admin/dashboard/widgets/_sites.html.erb +0 -25
  185. data/app/views/alchemy/admin/dashboard/widgets/_users.html.erb +0 -21
  186. data/app/views/alchemy/admin/languages/edit.html.erb +0 -1
  187. data/app/views/alchemy/admin/languages/new.html.erb +0 -1
  188. data/app/views/alchemy/admin/sites/edit.html.erb +0 -1
  189. data/app/views/alchemy/admin/sites/new.html.erb +0 -1
@@ -2,8 +2,11 @@
2
2
  url: {action: :update, q: search_filter_params[:q], page: params[:page]}) do |f| -%>
3
3
  <%= f.input :name, input_html: {autofocus: true} %>
4
4
  <%= f.input :file_name, input_html: {autofocus: true}, hint: Alchemy.t(:attachment_filename_notice) %>
5
- <%= render Alchemy::Admin::TagsAutocomplete.new do %>
6
- <%= f.input :tag_list, input_html: { value: f.object.tag_list.join(",") } %>
7
- <% end %>
5
+ <div class="input">
6
+ <%= f.label :tag_list, class: "control-label" %>
7
+ <%= render Alchemy::Admin::TagsAutocomplete.new do %>
8
+ <%= f.text_field :tag_list, value: f.object.tag_list.join(",") %>
9
+ <% end %>
10
+ </div>
8
11
  <%= f.submit Alchemy.t(:save) %>
9
12
  <% end %>
@@ -1,3 +1,4 @@
1
1
  <%= render "top" %>
2
- <%= render "left_column" %>
3
- <%= render "right_column" %>
2
+ <%= render "stats" %>
3
+ <%= render "widgets" %>
4
+ <%= render "footer" %>
@@ -0,0 +1,22 @@
1
+ <footer>
2
+ <div id="legal_info">
3
+ <%= Alchemy.t('Alchemy is open software and itself uses open software and free resources:') %>
4
+ <ul>
5
+ <li>
6
+ <a href="https://rubyonrails.org" target="_blank">Ruby on Rails</a>
7
+ </li>
8
+ <li>
9
+ <a href="https://jquery.com" target="_blank">jQuery</a>
10
+ </li>
11
+ <li>
12
+ <a href="https://shoelace.style" target="_blank">Shoelace</a>
13
+ </li>
14
+ <li>
15
+ <a href="https://www.tiny.cloud" target="_blank">TinyMCE</a>
16
+ </li>
17
+ <li>
18
+ <a href="https://remixicon.com" target="_blank">Remix Icons</a>
19
+ </li>
20
+ </ul>
21
+ </div>
22
+ </footer>
@@ -0,0 +1,7 @@
1
+ <% if Alchemy.config.dashboard.stats.any? %>
2
+ <div class="stats">
3
+ <% Alchemy.config.dashboard.stats.each do |stat, args| %>
4
+ <%= render stat.new(**args) %>
5
+ <% end %>
6
+ </div>
7
+ <% end %>
@@ -1,12 +1,4 @@
1
- <h1>
2
- <% if @first_time -%>
3
- <%= Alchemy.t(:welcome_note, name: current_alchemy_user.try(:name)) %>
4
- <% else -%>
5
- <%= Alchemy.t(:welcome_back_note, name: current_alchemy_user.try(:name)) %>
6
- <% end -%>
7
- </h1>
8
- <% if @last_sign_at %>
9
- <p>
10
- <small><%= Alchemy.t('Your last login was on', time: l(@last_sign_at, format: :'alchemy.default')) %></small>
11
- </p>
12
- <% end %>
1
+ <div class="top-row">
2
+ <%= render Alchemy::Admin::Dashboard::Widgets::Greeting.new(user: current_alchemy_user) %>
3
+ <%= render Alchemy::Admin::Dashboard::Widgets::SystemInfo.new %>
4
+ </div>
@@ -0,0 +1,7 @@
1
+ <% if Alchemy.config.dashboard.widgets.any? %>
2
+ <div class="widgets">
3
+ <% Alchemy.config.dashboard.widgets.each do |widget, args| %>
4
+ <%= render widget.new(**args) %>
5
+ <% end %>
6
+ </div>
7
+ <% end %>
@@ -1,20 +1,3 @@
1
- <%= content_for :toolbar do %>
2
- <div class="toolbar_buttons">
3
- <%= render Alchemy::Admin::ToolbarButton.new(
4
- icon: 'information',
5
- label: Alchemy.t(:info),
6
- url: alchemy.dashboard_info_path,
7
- title: Alchemy.t(:info),
8
- dialog_options: {
9
- title: Alchemy.t(:info),
10
- size: "420x380"
11
- },
12
- if_permitted_to: [:info, :alchemy_admin_dashboard],
13
- hotkey: 'alt+i'
14
- ) %>
15
- </div>
16
- <% end %>
17
-
18
1
  <div id="dashboard">
19
2
  <%= render "dashboard" %>
20
3
  </div>
@@ -1,62 +1 @@
1
- <div class="logo">
2
- <svg
3
- xmlns="http://www.w3.org/2000/svg"
4
- viewBox="0 0 267 91"
5
- >
6
- <path
7
- d="M261.749 29.77h-9.812l-.72 2.738a193.53 193.53 0 0 0-.802 3.217c-.334-1.384-.604-2.5-.767-3.162l-.685-2.792H234.075c-1.102-.371-2.338-.564-3.705-.564-2.537 0-4.557.864-6.104 1.934-1.406-1.15-3.402-1.934-6.221-1.934-1.341 0-2.524.242-3.564.625l-.006-.061H201.334v4.17c-2.345-3.051-5.884-4.735-10.401-4.735-4.196 0-8.831 1.936-11.655 6.784-1.194-3.746-3.896-6.784-9.557-6.784-1.385 0-2.626.24-3.727.617v-12.19l-4.204.623-6.934 1.027-3.132.464v10.324a22.109 22.109 0 0 0-6.086-.864c-5.96 0-9.341 2.652-11.128 4.876-.108.133-.2.284-.303.422V17.633l-4.207.623-6.933 1.027-3.131.464v24.04l-5.118-18.709-.739-2.701H99.863l-.745 2.686L95.854 36.8 80.915 21.597a2.922 2.922 0 0 0-2.823-.776l-18.554 4.875a2.918 2.918 0 0 0-.634-.981L39.437 4.906a2.927 2.927 0 0 0-2.826-.777L9.797 11.173a2.92 2.92 0 0 0-2.073 2.054L.372 40.078a2.922 2.922 0 0 0 .735 2.818L20.6 62.705a2.921 2.921 0 0 0 2.822.774l9.259-2.43-3.051 11.1a2.921 2.921 0 0 0 .735 2.821l10.94 11.122a2.92 2.92 0 0 0 2.822.778l15.08-3.953a2.919 2.919 0 0 0 2.077-2.055l3.536-12.978.316.324a2.928 2.928 0 0 0 2.064.872c.254.001.508-.031.761-.098l20.839-5.48H103.275l.72-2.733.82-3.121h3.794l.822 3.122.718 2.732h24.059v-4.307c.07.092.133.194.207.282 1.729 2.119 5.001 4.643 10.76 4.643 2.735 0 4.945-.705 6.55-1.415v.797H180.119v-4.383c2.392 3.007 5.737 4.495 9.134 4.885-1.602 1.106-3.095 2.759-4.467 4.952-2.161 3.454-3.211 6.441-3.211 9.137 0 2.014.524 3.774 1.562 5.236 1.388 1.967 3.57 3.053 6.143 3.053.226 0 .384-.016.896-.073.142-.014.243-.025.312-.03 1.014-.043 2.078-.446 4.047-1.521.468-.248.973-.622 2.077-1.656.966 3.029 2.97 3.501 4.119 3.501 2.479 0 4.354-1.665 4.575-4.057.007-.045.041-.233.189-.649.774 1.335 2.059 2.415 4.188 2.415 2.658 0 4.791-2.088 6.555-4.378.065.155.132.312.203.47 1.794 4.082 4.646 4.694 6.185 4.694.76 0 1.52-.168 2.307-.503.228.213.463.419.726.605a6.818 6.818 0 0 0 3.993 1.302c2.273 0 4.515-.764 6.661-2.274 3.357-2.369 4.061-5.111 4.061-6.996 0-2.266-1.092-4.215-3.014-5.406a4.177 4.177 0 0 0 2.142-1.312c.918 1.27 1.794 2.475 2.303 3.129l1.917 2.468 2.74-1.503.268-.144c2.382-1.291 7.335-3.979 9.847-12.048l8.677-27.888 1.479-4.759h-4.984z"
8
- fill="transparent"
9
- />
10
- <path
11
- fill="currentColor"
12
- d="M102.705 26.102h8.626l9.245 33.793h-7.549l-1.541-5.856h-9.448l-1.541 5.856h-7.189l9.397-33.793zm.411 23.008h7.291c-1.282-5.857-2.925-12.841-3.594-16.487-.719 3.647-2.362 10.63-3.697 16.487zm27.472 10.786h-6.931V22.969l6.931-1.026v37.953zm22.187-1.748c-.977.409-3.545 2.364-7.549 2.364-6.883 0-10.682-4.314-10.682-13.405 0-9.554 3.953-14.176 11.143-14.176 2.878 0 5.239.719 6.163 1.079l-.822 5.083c-.666-.256-2.517-.822-4.365-.822-3.388 0-4.981 2.62-4.981 8.579 0 6.061 1.747 8.267 4.775 8.267 2.108 0 4.008-1.128 4.726-1.386l1.592 4.417zm2.671-35.179l6.931-1.026v14.943h.105c.717-.667 3.079-3.954 7.291-3.954 4.826 0 6.728 2.979 6.728 9.193v17.771h-6.934V43.819c0-3.801-.616-4.879-2.721-4.879-2.107 0-3.853 2.157-4.47 2.876v18.079h-6.931V22.969zm44.73 35.026c-.771.514-3.956 2.518-9.038 2.518-5.957 0-10.785-3.852-10.785-13.097 0-9.811 4.775-14.484 10.63-14.484 5.854 0 9.963 3.646 9.963 12.273 0 1.851-.257 3.339-.309 3.597h-13.401c.05 4.571 2.311 6.469 5.235 6.469 2.773 0 5.086-1.231 6.319-1.795l1.386 4.519zm-12.941-13.509h7.034c0-5.237-1.437-6.624-3.338-6.624-1.798 0-3.646 1.643-3.696 6.624zm17.82-10.989h6.107l.31 3.543c.772-.925 2.722-4.109 6.624-4.109 2.98 0 4.828 1.027 5.598 4.057.874-1.181 3.03-4.057 6.728-4.057 4.468 0 6.37 2.517 6.37 9.141v17.823h-6.883V42.637c0-2.311-.358-3.697-2.158-3.697-1.797 0-3.183 2.054-3.543 2.876v18.079h-6.625V42.637c0-2.311-.358-3.697-2.157-3.697-1.796 0-3.131 2.003-3.542 2.876v18.079h-6.828V33.497zm56.744 0l-8.679 27.887c-2.156 6.934-6.213 8.886-8.37 10.067-.718-.926-2.414-3.287-3.081-4.213.771-.668 4.467-2.566 5.546-6.778l-8.318-26.963h7.239c.771 3.132 3.545 14.688 4.314 19.002.821-4.417 3.545-15.87 4.367-19.002h6.982z"
13
- />
14
- <g>
15
- <path
16
- fill="currentColor"
17
- d="M193.986 68.011c.319 0 .667.193 1.031.578.897.95 1.506 1.125 2.353.546.367-.254.548-.633.508-1.05-.054-.799-.66-1.456-1.799-1.957-.818-.364-1.438-.541-1.896-.541-2.436.013-4.74 1.736-6.854 5.116-1.807 2.889-2.722 5.389-2.722 7.435 0 1.336.326 2.474.969 3.379.796 1.128 1.983 1.701 3.526 1.701.029 0 .213-.016.555-.054.268-.028.427-.045.47-.046.306 0 .867-.139 2.703-1.14.226-.117.704-.468 2.439-2.166 1.932-1.896 2.285-2.549 2.366-2.884.084-.275.01-.583-.22-.921-.238-.344-.523-.518-.838-.518a.786.786 0 0 0-.708.429c-.872 1.35-1.932 2.444-3.146 3.266-1.295.868-2.615 1.308-3.923 1.308-.778 0-1.671-.234-1.671-2.074 0-1.427.742-3.47 2.211-6.08 1.621-2.872 3.183-4.327 4.646-4.327zm30.25 10.553c-.354 0-.695.247-1.103.798-.301.408-.535.409-.654.408-.259-.01-1.135-.388-1.441-4.977l-.305-4.414c-.25-1.795-.915-2.704-1.979-2.704-.68 0-1.78.545-4.245 4.804a46.07 46.07 0 0 1-2.457 3.695c-.936 1.256-1.511 1.87-1.856 2.171-.082-.436-.124-.979-.124-1.635 0-.533.027-1.253.081-2.143.055-.995.089-1.633.101-1.925.039-2.004-.251-3.293-.885-3.941a1.569 1.569 0 0 0-1.157-.483c-1.114 0-2.453 1.26-4.214 3.968-.44.683-1.144 1.88-2.093 3.565.149-2.311.529-4.59 1.141-6.795.071-.267.054-.669-.433-1.089-.33-.287-.703-.436-1.107-.436-.863 0-1.277 1.173-1.539 2.19-.313 1.16-.526 2.592-.635 4.245-.119 1.754-.181 3.891-.181 6.36 0 .357.075.868.233 1.577.203.807.5 1.631 1.17 1.631.813 0 1.32-.423 1.381-1.157.113-1.165 1.095-3.422 2.918-6.71 1.54-2.804 2.334-3.953 2.701-4.42 0 .089 0 .194-.005.32-.15 3.265-.211 5.245-.182 5.886.105 2.516.823 3.792 2.139 3.792 1.21 0 2.685-1.261 4.636-3.968.255-.355 2.324-3.588 3.537-5.488.234-.37.414-.648.545-.854.012.086.021.184.031.293.052.55.064 1.329.038 2.328v2.002c.01 1.115.313 2.354.903 3.685.812 1.851 1.907 2.786 3.252 2.786.459 0 .972-.164 1.575-.502.819-.475 1.234-1.083 1.234-1.804.001-.652-.392-1.059-1.021-1.059zm6.628-4.902c-2.19 0-2.468-.365-2.475-.365 0-.874.821-2.04 2.372-3.37 1.809-1.556 2.828-1.882 3.366-1.882.036 0 .073.003.123.006.072.004.298.046.826.328.721.386.872.415 1.009.415.727 0 1.163-.494 1.163-1.324 0-.631-.425-1.187-1.268-1.647-.651-.35-1.201-.517-1.684-.517-1.572 0-3.401 1.039-5.592 3.175-2.195 2.138-3.262 3.892-3.262 5.361 0 .738.509 1.313 1.518 1.711.65.258 1.33.402 2.023.432l3.86.141c.473.023.891.157 1.28.407.556.367.619.737.619.983 0 .86-1.161 1.629-2.133 2.122-1.358.688-2.57 1.035-3.598 1.035-.625 0-.625-.247-.625-.444 0-.104.017-.197.054-.283.126-.3.213-.694.266-1.218l.035-.339-.312-.132c-.656-.279-1.311.032-1.813.841-.316.495-.47.93-.47 1.33 0 .904.4 1.646 1.192 2.199a3.557 3.557 0 0 0 2.134.712c1.598 0 3.218-.569 4.811-1.693 1.794-1.263 2.701-2.733 2.701-4.371.002-2.398-2.057-3.613-6.12-3.613z"
18
- />
19
- </g>
20
- <g fill-rule="evenodd" clip-rule="evenodd" fill="currentColor">
21
- <path
22
- d="M47.632 51.588L23.382 57.956 5.754 40.043 12.401 15.762 36.65 9.393 54.254 27.305z"
23
- />
24
- <path
25
- d="M57.42 79.029L43.781 82.603 33.888 72.543 37.632 58.91 51.244 55.334 61.138 65.395z"
26
- />
27
- <path
28
- d="M86.963 59.079L67.775 64.128 53.829 49.94 59.066 30.726 78.277 25.679 92.223 39.865z"
29
- />
30
- </g>
31
- </svg>
32
- Version <%= @alchemy_version %>
33
- </div>
34
-
35
- <p class="center">
36
- <small>
37
- Ruby <%= RUBY_VERSION %>, Rails <%= Rails.version %>
38
- </small>
39
- </p>
40
-
41
- <%= render Alchemy::Admin::UpdateCheck.new %>
42
-
43
- <%= render_message do %>
44
- <p><%= Alchemy.t('Alchemy is open software and itself uses open software and free resources:') %></p>
45
- <ul>
46
- <li>
47
- <a href="https://rubyonrails.org" target="_blank">Ruby on Rails</a>
48
- </li>
49
- <li>
50
- <a href="https://jquery.com" target="_blank">jQuery Javascript Library</a>
51
- </li>
52
- <li>
53
- <a href="https://shoelace.style" target="_blank">Shoelace Web Components Library</a>
54
- </li>
55
- <li>
56
- <a href="https://www.tiny.cloud" target="_blank">TinyMCE - Javascript WYSIWYG Editor</a>
57
- </li>
58
- <li>
59
- <a href="https://remixicon.com" target="_blank">Remix Icons</a>
60
- </li>
61
- </ul>
62
- <% end %>
1
+ <%= render Alchemy::Admin::Dashboard::Widgets::SystemInfo.new %>
@@ -0,0 +1,3 @@
1
+ <turbo-frame id="<%= @id %>">
2
+ <%= render @widget.new %>
3
+ </turbo-frame>
@@ -12,7 +12,8 @@
12
12
  <% end %>
13
13
  <%= render Alchemy::Admin::ElementSelect.new(
14
14
  @elements,
15
- field_name: form.field_name(:name)
15
+ field_name: form.field_name(:name),
16
+ autofocus: true
16
17
  ) %>
17
18
  </div>
18
19
  <%= form.hidden_field :parent_element_id, value: @parent_element.try(:id) %>
@@ -31,21 +31,8 @@
31
31
  </alchemy-message>
32
32
  <% end %>
33
33
 
34
- <%= alchemy_form_for [:publish, :admin, element], remote: false, data: {turbo: true} do |f| %>
35
- <div class="input">
36
- <div class="input-row">
37
- <div class="input-column">
38
- <label for="element_public_on"><%= Alchemy::Element.human_attribute_name(:public_on) %></label>
39
- <%= f.datetime_local_field :public_on, include_seconds: false %>
40
- <%= f.error :public_on %>
41
- </div>
42
- <div class="input-column">
43
- <label for="element_public_until"><%= Alchemy::Element.human_attribute_name(:public_until) %></label>
44
- <%= f.datetime_local_field :public_until, include_seconds: false %>
45
- <%= f.error :public_until %>
46
- </div>
47
- </div>
48
- </div>
34
+ <%= alchemy_form_for [:publish, :admin, element], remote: false, data: {turbo: true}, class: "full_width" do |f| %>
35
+ <%= render "alchemy/admin/elements/schedule_fields", element:, form: f %>
49
36
  <div class="submit">
50
37
  <button
51
38
  type="button"
@@ -0,0 +1,2 @@
1
+ <%# Overwrite this partial if you want to add more fields to the element schedule form %>
2
+ <%= render Alchemy::Admin::ElementScheduleTimestamps.new(element:) %>
@@ -1,9 +1,12 @@
1
1
  <%= turbo_frame_tag @page do %>
2
2
  <%= alchemy_form_for [:admin, @page], url: alchemy.admin_layoutpage_path(@page), class: 'edit_page', remote: false do |f| %>
3
3
  <%= f.input :name, autofocus: true %>
4
- <%= render Alchemy::Admin::TagsAutocomplete.new do %>
5
- <%= f.input :tag_list, input_html: { value: f.object.tag_list.join(",") } %>
6
- <% end %>
4
+ <div class="input">
5
+ <%= f.label :tag_list, class: "control-label" %>
6
+ <%= render Alchemy::Admin::TagsAutocomplete.new do %>
7
+ <%= f.text_field :tag_list, value: f.object.tag_list.join(",") %>
8
+ <% end %>
9
+ </div>
7
10
  <%= f.submit Alchemy.t(:save) %>
8
11
  <% end %>
9
12
  <% end %>
@@ -11,7 +11,7 @@
11
11
  <% if nodes.length > 0 %>
12
12
  <% nodes.each do |node| %>
13
13
  <tr class="even">
14
- <td><%== "#{node.ancestors.map(&:name).join(seperator)}#{seperator}<strong>#{node.name}</strong>" %></td>
14
+ <td><%== node.ancestors.map(&:name).join(seperator) %><%== seperator %><strong><%== node.name %></strong></td>
15
15
  <td class="tools">
16
16
  <sl-tooltip content="<%= Alchemy.t("delete_node") %>">
17
17
  <%= link_to render_icon(:minus),
@@ -36,13 +36,15 @@
36
36
  <%= alchemy_form_for([:admin, @page.nodes.build], id: "new_node_form") do |f| %>
37
37
  <%= f.hidden_field :page_id, value: @page.id %>
38
38
  <%= f.hidden_field :language_id, value: @page.language_id %>
39
-
40
- <%= render Alchemy::Admin::NodeSelect.new(nil, url: alchemy.api_nodes_path(language_id: @page.language_id, include: :ancestors)) do %>
41
- <%= f.text_field :parent_id, class: 'alchemy_selectbox full_width' %>
42
- <% end %>
43
-
44
- <div class="submit">
45
- <button is="alchemy-button"><%= Alchemy.t(:create_node) %></button>
39
+ <div class="inline-input">
40
+ <div class="left-column">
41
+ <%= render Alchemy::Admin::NodeSelect.new(nil, url: alchemy.api_nodes_path(language_id: @page.language_id, include: :ancestors)) do %>
42
+ <%= f.text_field :parent_id, class: 'alchemy_selectbox full_width' %>
43
+ <% end %>
44
+ </div>
45
+ <div class="right-column">
46
+ <button is="alchemy-button"><%= Alchemy.t(:create_node) %></button>
47
+ </div>
46
48
  </div>
47
49
  <% end %>
48
50
  </fieldset>
@@ -1,7 +1,7 @@
1
- <%= turbo_frame_tag @page do %>
2
- <%= alchemy_form_for [:admin, @page], class: 'edit_page', remote: false do |f| %>
3
- <% unless @page.language_root? || @page.layoutpage %>
4
- <%= render Alchemy::Admin::PageSelect.new(@page.parent) do %>
1
+ <%= turbo_frame_tag page do %>
2
+ <%= alchemy_form_for [:admin, page], class: 'edit_page', remote: false do |f| %>
3
+ <% unless page.language_root? || page.layoutpage %>
4
+ <%= render Alchemy::Admin::PageSelect.new(page.parent) do %>
5
5
  <%= f.input :parent_id, required: true %>
6
6
  <% end %>
7
7
  <% end %>
@@ -9,21 +9,24 @@
9
9
  <div class="input check_boxes">
10
10
  <label class="control-label"><%= Alchemy.t(:page_status) %></label>
11
11
  <div class="control_group">
12
- <%= render 'alchemy/admin/pages/publication_fields' %>
13
- <%= page_status_checkbox(@page, :restricted) %>
12
+ <%= render 'alchemy/admin/pages/publication_fields', page: %>
13
+ <%= page_status_checkbox(page, :restricted) %>
14
14
  <% if Alchemy.config.sitemap.show_flag %>
15
- <%= page_status_checkbox(@page, :sitemap) %>
15
+ <%= page_status_checkbox(page, :sitemap) %>
16
16
  <% end %>
17
17
  </div>
18
18
  </div>
19
19
 
20
20
  <%= f.input :name, autofocus: true %>
21
- <%= f.input :urlname, as: 'string', input_html: {value: @page.slug}, label: Alchemy::Page.human_attribute_name(:slug) %>
21
+ <%= f.input :urlname, as: 'string', input_html: {
22
+ value: page.slug,
23
+ disabled: page.has_wildcard_url?
24
+ }, label: Alchemy::Page.human_attribute_name(:slug) %>
22
25
 
23
- <%= f.fields_for :draft_version, @page.draft_version do |v| %>
26
+ <%= f.fields_for :draft_version, page.draft_version do |v| %>
24
27
  <alchemy-char-counter max-chars="60">
25
28
  <%= v.input :title, input_html: {
26
- disabled: @page.attribute_fixed?(:title)
29
+ disabled: page.attribute_fixed?(:title)
27
30
  } %>
28
31
  </alchemy-char-counter>
29
32
  <% end %>
@@ -32,7 +35,7 @@
32
35
  <div class="input check_boxes">
33
36
  <label class="control-label"><%= Alchemy.t(:fulltext_search) %></label>
34
37
  <div class="control_group">
35
- <%= page_status_checkbox(@page, :searchable) %>
38
+ <%= page_status_checkbox(page, :searchable) %>
36
39
  </div>
37
40
  </div>
38
41
  <% end %>
@@ -40,15 +43,15 @@
40
43
  <div class="input check_boxes">
41
44
  <label class="control-label"><%= Alchemy.t(:search_engines) %></label>
42
45
  <div class="control_group">
43
- <%= page_status_checkbox(@page, :robot_index) %>
44
- <%= page_status_checkbox(@page, :robot_follow) %>
46
+ <%= page_status_checkbox(page, :robot_index) %>
47
+ <%= page_status_checkbox(page, :robot_follow) %>
45
48
  </div>
46
49
  </div>
47
50
 
48
- <%= f.fields_for :draft_version, @page.draft_version do |v| %>
51
+ <%= f.fields_for :draft_version, page.draft_version do |v| %>
49
52
  <alchemy-char-counter max-chars="160">
50
53
  <%= v.input :meta_description, as: 'text', input_html: {
51
- disabled: @page.attribute_fixed?(:meta_description)
54
+ disabled: page.attribute_fixed?(:meta_description)
52
55
  } %>
53
56
  </alchemy-char-counter>
54
57
 
@@ -56,13 +59,16 @@
56
59
  as: 'text',
57
60
  hint: Alchemy.t('pages.update.comma_seperated'),
58
61
  input_html: {
59
- disabled: @page.attribute_fixed?(:meta_keywords)
62
+ disabled: page.attribute_fixed?(:meta_keywords)
60
63
  } %>
61
64
  <% end %>
62
65
 
63
- <%= render Alchemy::Admin::TagsAutocomplete.new do %>
64
- <%= f.input :tag_list, input_html: { value: f.object.tag_list.join(",") } %>
65
- <% end %>
66
+ <div class="input">
67
+ <%= f.label :tag_list, class: "control-label" %>
68
+ <%= render Alchemy::Admin::TagsAutocomplete.new do %>
69
+ <%= f.text_field :tag_list, value: f.object.tag_list.join(",") %>
70
+ <% end %>
71
+ </div>
66
72
 
67
73
  <%= hidden_field_tag :view, params[:view] %>
68
74
  <%= f.submit Alchemy.t(:save) %>
@@ -1,32 +1,2 @@
1
- <alchemy-page-publication-fields>
2
- <% checkbox = check_box_tag :page_public, nil, @page.public? || @page.scheduled?, name: nil, disabled: @page.attribute_fixed?(:public_on) %>
3
-
4
- <label class="checkbox">
5
- <% if @page.attribute_fixed?(:public_on) || @page.attribute_fixed?(:public_until) %>
6
- <sl-tooltip class="like-hint-tooltip" content="<%= Alchemy.t(:attribute_fixed) %>" placement="bottom-start">
7
- <%= checkbox %>
8
- <%= Alchemy::Page.human_attribute_name :public %>
9
- </sl-tooltip>
10
- <% else %>
11
- <%= checkbox %>
12
- <%= Alchemy::Page.human_attribute_name :public %>
13
- <% end %>
14
- </label>
15
-
16
- <%= content_tag :div, class: [
17
- @page.public_on.present? || @page.public_until.present? ? nil : 'hidden',
18
- 'page-publication-date-fields',
19
- 'input-row'
20
- ] do %>
21
- <div class="input-column">
22
- <%= label :page, :public_on %>
23
- <%= datetime_local_field :page, :public_on, include_seconds: false,
24
- disabled: @page.attribute_fixed?(:public_on) %>
25
- </div>
26
- <div class="input-column">
27
- <%= label :page, :public_until %>
28
- <%= datetime_local_field :page, :public_until, include_seconds: false,
29
- disabled: @page.attribute_fixed?(:public_until) %>
30
- </div>
31
- <% end %>
32
- </alchemy-page-publication-fields>
1
+ <%# Overwrite this partial if you want to add more fields to the page schedule form %>
2
+ <%= render Alchemy::Admin::PagePublicationFields.new(page:) %>
@@ -33,24 +33,7 @@
33
33
  <% end %>
34
34
  <% table.column :updated_at, sortable: true %>
35
35
  <% table.column :status, class_name: :right do |page| %>
36
- <% if page.locked? %>
37
- <span class="page_status locked">
38
- <%= render_icon(:edit, size: "1x") %>
39
- <%= page.status_title(:locked) %>
40
- </span>
41
- <% end %>
42
- <% if page.restricted? %>
43
- <span class="page_status">
44
- <%= render_icon(:lock, size: "1x") %>
45
- <%= page.status_title(:restricted) %>
46
- </span>
47
- <% end %>
48
- <% unless page.public? %>
49
- <span class="page_status">
50
- <%= render_icon("cloud-off", size: "1x") %>
51
- <%= page.status_title(:public) %>
52
- </span>
53
- <% end %>
36
+ <%= render Alchemy::Admin::PageStatusIndicators.new(page:) %>
54
37
  <% end %>
55
38
 
56
39
  <% table.with_action :info, Alchemy.t(:page_infos) do |page| %>
@@ -9,10 +9,10 @@
9
9
  <%= render 'alchemy/admin/legacy_page_urls/label', count: @page.legacy_urls.size %>
10
10
  </sl-tab>
11
11
  <sl-tab-panel name="page_properties">
12
- <%= render 'form' %>
12
+ <%= render 'form', page: @page %>
13
13
  </sl-tab-panel>
14
14
  <sl-tab-panel name="nodes">
15
- <%= render 'alchemy/admin/nodes/page_nodes' %>
15
+ <%= render 'alchemy/admin/nodes/page_nodes', page: @page %>
16
16
  </sl-tab-panel>
17
17
  <sl-tab-panel name="legacy_urls">
18
18
  <%= render 'legacy_urls' %>
@@ -35,6 +35,12 @@
35
35
  <% end %>
36
36
  <%= @page.status_message(:public) %>
37
37
  </span>
38
+ <% if @page.scheduled? %>
39
+ <span class="page_status">
40
+ <alchemy-icon name="calendar-schedule" size="1x"></alchemy-icon>
41
+ <%= @page.status_message(:scheduled) %>
42
+ </span>
43
+ <% end %>
38
44
  <span class="page_status">
39
45
  <% if @page.restricted? %>
40
46
  <%= render_icon(:lock, size: "1x") %>
@@ -1,4 +1,4 @@
1
- <%= alchemy_form_for resource_instance_variable, url: resource_path(resource_instance_variable, search_filter_params) do |f| %>
1
+ <%= alchemy_form_for resource, url: resource_path(resource, search_filter_params) do |f| %>
2
2
  <% resource_handler.editable_attributes.each do |attribute| %>
3
3
  <% if relation = attribute[:relation] %>
4
4
  <%= f.association relation[:name].to_sym,
@@ -18,9 +18,12 @@
18
18
  <% end %>
19
19
  <% end %>
20
20
  <% if f.object.respond_to?(:tag_list) %>
21
- <%= render Alchemy::Admin::TagsAutocomplete.new do %>
22
- <%= f.input :tag_list, input_html: { value: f.object.tag_list.join(",") } %>
23
- <% end %>
21
+ <div class="input">
22
+ <%= f.label :tag_list, class: "control-label" %>
23
+ <%= render Alchemy::Admin::TagsAutocomplete.new do %>
24
+ <%= f.text_field :tag_list, value: f.object.tag_list.join(",") %>
25
+ <% end %>
26
+ </div>
24
27
  <% end %>
25
28
  <%= f.submit Alchemy.t(:save) %>
26
29
  <% end %>
@@ -1 +1,3 @@
1
- <%= render 'form' %>
1
+ <%= render "form",
2
+ resource: resource_instance_variable,
3
+ resource_name.to_sym => resource_instance_variable %>
@@ -1 +1,3 @@
1
- <%= render 'form' %>
1
+ <%= render "form",
2
+ resource: resource_instance_variable,
3
+ resource_name.to_sym => resource_instance_variable %>
@@ -1,17 +1,17 @@
1
1
  <% content_for :title do %>
2
- <%= "Styleguide" %>
2
+ Styleguide
3
3
  <% end %>
4
4
 
5
5
  <% content_for(:toolbar) do %>
6
6
  <%= render Alchemy::Admin::ToolbarButton.new(
7
7
  icon: :info,
8
8
  label: 'Info',
9
- url: alchemy.dashboard_info_path,
9
+ url: alchemy.admin_styleguide_path,
10
10
  title: 'Info',
11
11
  hotkey: 'alt+i',
12
12
  dialog_options: {
13
13
  title: 'Info',
14
- size: "430x400"
14
+ size: "650x400"
15
15
  },
16
16
  if_permitted_to: [:index, :alchemy_admin_styleguide]
17
17
  ) %>
@@ -29,8 +29,7 @@
29
29
  <form class="simple_form alchemy" action="#" accept-charset="UTF-8" method="post">
30
30
  <div class="input select">
31
31
  <label class="select control-label" for="select">Select</label>
32
- <select class="select" id="select" is="alchemy-select">
33
- <option value="">Please choose</option>
32
+ <select class="select" id="select" is="alchemy-select" placeholder="Please choose">
34
33
  <option value="1">Option 1</option>
35
34
  <option selected value="2">Option 2</option>
36
35
  <option value="3">Option 3</option>
@@ -53,18 +52,16 @@
53
52
 
54
53
  <div class="input">
55
54
  <label class="control-label">Date & Time Pickers</label>
56
- <div class="control_group">
57
- <div class="input-row">
58
- <div class="input-column">
59
- <alchemy-datepicker input-type="date">
60
- <input type="text" id="date_picker" autocomplete="off">
61
- </alchemy-datepicker>
62
- </div>
63
- <div class="input-column">
64
- <alchemy-datepicker input-type="time">
65
- <input type="text" id="time_picker" autocomplete="off">
66
- </alchemy-datepicker>
67
- </div>
55
+ <div class="input-row">
56
+ <div class="input-column">
57
+ <alchemy-datepicker input-type="date">
58
+ <input type="text" id="date_picker" autocomplete="off">
59
+ </alchemy-datepicker>
60
+ </div>
61
+ <div class="input-column">
62
+ <alchemy-datepicker input-type="time">
63
+ <input type="text" id="time_picker" autocomplete="off">
64
+ </alchemy-datepicker>
68
65
  </div>
69
66
  </div>
70
67
  </div>
@@ -139,10 +136,19 @@
139
136
 
140
137
  <h2>Selects</h2>
141
138
 
142
- <div style="display: flex; gap: 1em;">
139
+ <div style="display: flex; gap: 1em; flex-wrap: wrap">
140
+ <div style="width: 20%">
141
+ <h3>Native Select</h3>
142
+ <select class="full_width" autofocus>
143
+ <option value="1">Option 1</option>
144
+ <option value="2">Option 2</option>
145
+ <option value="3">Option 3</option>
146
+ </select>
147
+ </div>
148
+
143
149
  <div style="width: 20%">
144
150
  <h3>Select with Search</h3>
145
- <select is="alchemy-select" class="full_width">
151
+ <select is="alchemy-select" class="full_width" data-allow-clear placeholder="Please choose">
146
152
  <option value="1">Option 1</option>
147
153
  <option value="2">Option 2</option>
148
154
  <option value="3">Option 3</option>
@@ -154,16 +160,33 @@
154
160
  </div>
155
161
 
156
162
  <div style="width: 20%">
157
- <h3>Page Select</h3>
158
- <%= render Alchemy::Admin::PageSelect.new do %>
159
- <input name="page" class="full_width">
160
- <% end %>
163
+ <h3>Multi Select</h3>
164
+ <select is="alchemy-select" multiple class="full_width" placeholder="Pick Options" data-allow-clear>
165
+ <option value="1">Option 1</option>
166
+ <option value="2">Option 2</option>
167
+ <option value="3">Option 3</option>
168
+ <option value="4">Option 4</option>
169
+ <option value="5">Option 5</option>
170
+ <option value="6">Option 6</option>
171
+ <option value="7">Option 7</option>
172
+ </select>
161
173
  </div>
162
174
 
175
+
163
176
  <div style="width: 20%">
164
177
  <h3>Element Select</h3>
165
178
  <%= render Alchemy::Admin::ElementSelect.new(Alchemy::Element.definitions) %>
166
179
  </div>
180
+ </div>
181
+
182
+ <h2>Remote Selects</h2>
183
+ <div style="display: flex; gap: 1em; flex-wrap: wrap">
184
+ <div style="width: 20%">
185
+ <h3>Page Select</h3>
186
+ <%= render Alchemy::Admin::PageSelect.new do %>
187
+ <input name="page" class="full_width">
188
+ <% end %>
189
+ </div>
167
190
 
168
191
  <div style="width: 20%">
169
192
  <h3>Node Select</h3>
@@ -178,14 +201,13 @@
178
201
  <input name="attachment" class="full_width">
179
202
  <% end %>
180
203
  </div>
181
- </div>
182
204
 
183
- <h3>Tags Autocomplete</h3>
184
-
185
- <div style="width: 25%">
186
- <alchemy-tags-autocomplete>
187
- <input type="text" class="full_width" autocomplete="off">
188
- </alchemy-tags-autocomplete>
205
+ <div style="width: 20%">
206
+ <h3>Tags Autocomplete</h3>
207
+ <%= render Alchemy::Admin::TagsAutocomplete.new do %>
208
+ <input type="text" class="full_width" autocomplete="off">
209
+ <% end %>
210
+ </div>
189
211
  </div>
190
212
 
191
213
  <h2>Typography</h2>