biovision 0.0.200518.1 → 0.12.211124.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (345) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +105 -52
  3. data/app/assets/images/biovision/icons/back.svg +19 -0
  4. data/app/assets/images/biovision/icons/create.svg +19 -0
  5. data/app/assets/images/biovision/icons/destroy.svg +12 -0
  6. data/app/assets/images/biovision/icons/dropdown.svg +3 -0
  7. data/app/assets/images/biovision/icons/edit.svg +22 -0
  8. data/app/assets/images/biovision/icons/gear.svg +11 -0
  9. data/app/assets/images/biovision/icons/return.svg +25 -0
  10. data/app/assets/images/biovision/icons/world.svg +11 -0
  11. data/app/assets/stylesheets/biovision/admin/components/users.scss +20 -0
  12. data/app/assets/stylesheets/biovision/admin/components.scss +13 -1
  13. data/app/assets/stylesheets/biovision/admin/layout.scss +27 -12
  14. data/app/assets/stylesheets/biovision/biovision.scss +105 -26
  15. data/app/assets/stylesheets/biovision/components/breadcrumbs.scss +13 -0
  16. data/app/assets/stylesheets/biovision/components/buttons.scss +130 -0
  17. data/app/assets/stylesheets/biovision/components/filters.scss +39 -0
  18. data/app/assets/stylesheets/biovision/components/forms.scss +208 -1
  19. data/app/assets/stylesheets/biovision/components/lists.scss +6 -7
  20. data/app/assets/stylesheets/biovision/{biovision → components}/messages.scss +9 -0
  21. data/app/assets/stylesheets/biovision/components/pagination.scss +34 -0
  22. data/app/assets/stylesheets/biovision/components/quick_search.scss +24 -0
  23. data/app/assets/stylesheets/biovision/components/simple_image.scss +112 -0
  24. data/app/assets/stylesheets/biovision/components/toggleable.scss +71 -0
  25. data/app/assets/stylesheets/biovision/components.scss +7 -0
  26. data/app/assets/stylesheets/biovision/default.scss +4 -4
  27. data/app/assets/stylesheets/biovision/themes/default_theme/components/users/dashboard.scss +4 -0
  28. data/app/assets/stylesheets/biovision/themes/default_theme/components/users/form_tabs.scss +101 -0
  29. data/app/assets/stylesheets/biovision/themes/default_theme/components/users/profile.scss +77 -0
  30. data/app/assets/stylesheets/biovision/themes/default_theme/components/users.scss +3 -0
  31. data/app/assets/stylesheets/biovision/themes/default_theme/components.scss +2 -3
  32. data/app/assets/stylesheets/biovision/themes/default_theme/layout/footer.scss +3 -0
  33. data/app/assets/stylesheets/biovision/themes/default_theme/layout/header.scss +12 -0
  34. data/app/assets/stylesheets/biovision/themes/default_theme/layout.scss +8 -19
  35. data/app/assets/stylesheets/biovision/themes/default_theme.scss +0 -1
  36. data/app/assets/stylesheets/biovision/vars.scss +5 -0
  37. data/app/controllers/admin/biovision_components_controller.rb +10 -0
  38. data/app/controllers/admin/components_controller.rb +37 -97
  39. data/app/controllers/admin/dynamic_blocks_controller.rb +15 -0
  40. data/app/controllers/admin/dynamic_pages_controller.rb +15 -0
  41. data/app/controllers/admin/index_controller.rb +8 -2
  42. data/app/controllers/admin/navigation_groups_controller.rb +45 -0
  43. data/app/controllers/admin/tokens_controller.rb +15 -0
  44. data/app/controllers/admin/users_controller.rb +101 -0
  45. data/app/controllers/admin_controller.rb +2 -8
  46. data/app/controllers/authentication_controller.rb +6 -34
  47. data/app/controllers/concerns/authentication.rb +12 -12
  48. data/app/controllers/concerns/component_stories.rb +22 -0
  49. data/app/controllers/concerns/crud_entities.rb +140 -0
  50. data/app/controllers/concerns/entity_priority.rb +10 -0
  51. data/app/controllers/concerns/my_crud_entities.rb +146 -0
  52. data/app/controllers/concerns/processed_forms.rb +28 -0
  53. data/app/controllers/concerns/restricted_access.rb +37 -0
  54. data/app/controllers/concerns/toggleable_entity.rb +31 -0
  55. data/app/controllers/contact_controller.rb +49 -0
  56. data/app/controllers/errors_controller.rb +37 -0
  57. data/app/controllers/fallback_controller.rb +12 -0
  58. data/app/controllers/index_controller.rb +1 -0
  59. data/app/controllers/legal_controller.rb +14 -0
  60. data/app/controllers/my/components_controller.rb +26 -0
  61. data/app/controllers/my/confirmations_controller.rb +44 -0
  62. data/app/controllers/my/index_controller.rb +7 -1
  63. data/app/controllers/my/profiles_controller.rb +33 -16
  64. data/app/controllers/oembed_controller.rb +12 -0
  65. data/app/controllers/profile_controller.rb +14 -0
  66. data/app/controllers/users_controller.rb +63 -0
  67. data/app/helpers/biovision_components_helper.rb +7 -3
  68. data/app/helpers/biovision_helper.rb +170 -0
  69. data/app/helpers/entity_helper.rb +77 -0
  70. data/app/helpers/my_helper.rb +34 -0
  71. data/app/helpers/simple_image_helper.rb +125 -0
  72. data/app/jobs/application_job.rb +7 -0
  73. data/app/jobs/send_phone_confirmation_job.rb +16 -0
  74. data/app/lib/biovision/components/base/component_parameters.rb +55 -0
  75. data/app/lib/biovision/components/base/component_privileges.rb +75 -0
  76. data/app/lib/biovision/components/base/component_settings.rb +40 -0
  77. data/app/lib/biovision/components/base/component_stories.rb +30 -0
  78. data/app/lib/biovision/components/base/entity_links.rb +38 -0
  79. data/app/lib/biovision/components/base/image_handling.rb +33 -0
  80. data/app/lib/biovision/components/base_component.rb +63 -95
  81. data/app/lib/biovision/components/contact_component.rb +26 -0
  82. data/app/lib/biovision/components/content/oembed/receiver.rb +98 -0
  83. data/app/lib/biovision/components/content/oembed/twitter_receiver.rb +20 -0
  84. data/app/lib/biovision/components/content/oembed/vimeo_receiver.rb +20 -0
  85. data/app/lib/biovision/components/content/oembed/youtube_receiver.rb +20 -0
  86. data/app/lib/biovision/components/content_component.rb +65 -0
  87. data/app/lib/biovision/components/track_component.rb +3 -0
  88. data/app/lib/biovision/components/users/authentication.rb +15 -7
  89. data/app/lib/biovision/components/users/codes.rb +104 -0
  90. data/app/lib/biovision/components/users/flag_helpers.rb +72 -0
  91. data/app/lib/biovision/components/users/profile_handler.rb +111 -1
  92. data/app/lib/biovision/components/users/registration_handler.rb +40 -52
  93. data/app/lib/biovision/components/users/validation.rb +83 -0
  94. data/app/lib/biovision/components/users_component.rb +114 -19
  95. data/app/lib/biovision/helpers/data_helper.rb +70 -0
  96. data/app/lib/biovision/helpers/export_helper.rb +97 -0
  97. data/app/lib/biovision/migrations/component_migration.rb +56 -0
  98. data/app/lib/biovision/notifiers/base_notifier.rb +2 -2
  99. data/app/lib/biovision/notifiers/contact_notifier.rb +15 -0
  100. data/app/lib/biovision/stories/component_story.rb +55 -0
  101. data/app/lib/canonizer.rb +38 -0
  102. data/app/lib/carrier_wave/image_optim.rb +32 -0
  103. data/app/mailers/code_sender.rb +29 -0
  104. data/app/mailers/feedback_mailer.rb +14 -0
  105. data/app/models/agent.rb +4 -0
  106. data/app/models/biovision_component.rb +39 -3
  107. data/app/models/code.rb +31 -8
  108. data/app/models/concerns/checkable.rb +2 -1
  109. data/app/models/concerns/has_simple_image.rb +9 -0
  110. data/app/models/concerns/has_uploaded_file.rb +26 -0
  111. data/app/models/concerns/meta_texts.rb +25 -5
  112. data/app/models/concerns/simple_tag.rb +30 -0
  113. data/app/models/concerns/toggleable.rb +2 -1
  114. data/app/models/concerns/tree_structure.rb +75 -0
  115. data/app/models/contact_method.rb +47 -0
  116. data/app/models/contact_type.rb +27 -0
  117. data/app/models/dynamic_block.rb +43 -0
  118. data/app/models/dynamic_page.rb +73 -0
  119. data/app/models/feedback_message.rb +65 -0
  120. data/app/models/feedback_response.rb +50 -0
  121. data/app/models/group.rb +48 -0
  122. data/app/models/language.rb +4 -0
  123. data/app/models/metric.rb +4 -0
  124. data/app/models/navigation_group.rb +43 -0
  125. data/app/models/navigation_group_page.rb +23 -0
  126. data/app/models/oembed_domain.rb +25 -0
  127. data/app/models/oembed_link.rb +19 -0
  128. data/app/models/oembed_receiver.rb +15 -0
  129. data/app/models/role.rb +86 -0
  130. data/app/models/role_group.rb +13 -0
  131. data/app/models/simple_image.rb +49 -8
  132. data/app/models/simple_image_tag.rb +1 -16
  133. data/app/models/token.rb +6 -2
  134. data/app/models/uploaded_file.rb +62 -0
  135. data/app/models/uploaded_file_tag.rb +15 -0
  136. data/app/models/uploaded_file_tag_file.rb +13 -0
  137. data/app/models/user.rb +122 -29
  138. data/app/models/user_group.rb +20 -0
  139. data/app/models/user_role.rb +18 -0
  140. data/app/uploaders/simple_file_uploader.rb +23 -0
  141. data/app/uploaders/simple_image_uploader.rb +29 -20
  142. data/app/uploaders/uploaders/path_slug.rb +22 -0
  143. data/app/views/admin/agents/index.html.erb +1 -3
  144. data/app/views/admin/biovision_components/_nav_item.html.erb +6 -0
  145. data/app/views/admin/biovision_components/entity/_in_list.html.erb +12 -0
  146. data/app/views/admin/biovision_components/index.html.erb +11 -0
  147. data/app/views/admin/components/_image.jbuilder +18 -0
  148. data/app/views/admin/components/_list.html.erb +1 -1
  149. data/app/views/admin/components/entity/_links.html.erb +31 -21
  150. data/app/views/admin/components/image.jbuilder +1 -0
  151. data/app/views/admin/components/images.jbuilder +4 -0
  152. data/app/views/admin/components/links/_base.html.erb +1 -0
  153. data/app/views/admin/components/settings/_new_parameter.html.erb +4 -2
  154. data/app/views/admin/components/settings/_parameters.html.erb +8 -2
  155. data/app/views/admin/components/settings/_settings.html.erb +4 -4
  156. data/app/views/admin/components/settings.html.erb +2 -1
  157. data/app/views/admin/components/update_privileges.jbuilder +21 -0
  158. data/app/views/admin/dynamic_blocks/_form.html.erb +16 -0
  159. data/app/views/admin/dynamic_blocks/_nav_item.html.erb +6 -0
  160. data/app/views/admin/dynamic_blocks/entity/_in_list.html.erb +12 -0
  161. data/app/views/admin/dynamic_blocks/index.html.erb +17 -0
  162. data/app/views/admin/dynamic_blocks/show.html.erb +25 -0
  163. data/app/views/admin/dynamic_pages/_dynamic_page.jbuilder +18 -0
  164. data/app/views/admin/dynamic_pages/_form.html.erb +21 -0
  165. data/app/views/admin/dynamic_pages/_nav_item.html.erb +6 -0
  166. data/app/views/admin/dynamic_pages/entity/_in_list.html.erb +17 -0
  167. data/app/views/admin/dynamic_pages/entity/_in_search.html.erb +7 -0
  168. data/app/views/admin/dynamic_pages/index.html.erb +17 -0
  169. data/app/views/admin/dynamic_pages/search.jbuilder +4 -0
  170. data/app/views/admin/dynamic_pages/show.html.erb +28 -0
  171. data/app/views/admin/index/index.html.erb +7 -5
  172. data/app/views/admin/ip_addresses/index.html.erb +2 -4
  173. data/app/views/admin/navigation_group_pages/entity/_in_list.html.erb +26 -0
  174. data/app/views/admin/navigation_groups/_form.html.erb +15 -0
  175. data/app/views/admin/navigation_groups/_nav_item.html.erb +6 -0
  176. data/app/views/admin/navigation_groups/entity/_dynamic_pages.html.erb +38 -0
  177. data/app/views/admin/navigation_groups/entity/_in_list.html.erb +14 -0
  178. data/app/views/admin/navigation_groups/index.html.erb +17 -0
  179. data/app/views/admin/navigation_groups/show.html.erb +33 -0
  180. data/app/views/admin/tokens/_form.html.erb +31 -0
  181. data/app/views/admin/tokens/_nav_item.html.erb +6 -0
  182. data/app/views/admin/tokens/entity/_in_list.html.erb +27 -0
  183. data/app/views/admin/tokens/index.html.erb +11 -0
  184. data/app/views/admin/tokens/show.html.erb +26 -0
  185. data/app/views/admin/unauthorized.html.erb +2 -5
  186. data/app/views/admin/users/_form.html.erb +81 -0
  187. data/app/views/admin/users/_nav_item.html.erb +6 -0
  188. data/app/views/admin/users/_user.jbuilder +18 -0
  189. data/app/views/admin/users/entity/_fields.html.erb +53 -0
  190. data/app/views/admin/users/entity/_in_list.html.erb +38 -0
  191. data/app/views/admin/users/entity/_in_search.html.erb +18 -0
  192. data/app/views/admin/users/entity/_profile.html.erb +26 -0
  193. data/app/views/admin/users/entity/in_list/_additional_data.html.erb +0 -0
  194. data/app/views/admin/users/index.html.erb +24 -0
  195. data/app/views/admin/users/roles/_component.html.erb +22 -0
  196. data/app/views/admin/users/roles.html.erb +23 -0
  197. data/app/views/admin/users/search.jbuilder +4 -0
  198. data/app/views/admin/users/show.html.erb +62 -0
  199. data/app/views/admin/widgets/_filters.html.erb +20 -0
  200. data/app/views/admin/widgets/_quick_search.html.erb +13 -0
  201. data/app/views/admin/widgets/filters/_flag.html.erb +15 -0
  202. data/app/views/admin/widgets/filters/_text.html.erb +7 -0
  203. data/app/views/application/forbidden.html.erb +9 -0
  204. data/app/views/application/forbidden.jbuilder +4 -0
  205. data/app/views/application/not_found.html.erb +9 -0
  206. data/app/views/application/not_found.jbuilder +4 -0
  207. data/app/views/application/unauthorized.html.erb +19 -0
  208. data/app/views/application/unauthorized.jbuilder +4 -0
  209. data/app/views/authentication/new.html.erb +2 -8
  210. data/app/views/components/content/_dynamic_page.html.erb +17 -0
  211. data/app/views/components/content/_dynamic_page_content.html.erb +14 -0
  212. data/app/views/components/users/_form_tabs.html.erb +31 -0
  213. data/app/views/components/users/_join_form.html.erb +192 -0
  214. data/app/views/components/users/_login_form.html.erb +46 -0
  215. data/app/views/components/users/form/_image.html.erb +17 -0
  216. data/app/views/components/users/form/_profile_data.html.erb +54 -0
  217. data/app/views/contact/_form.html.erb +108 -0
  218. data/app/views/contact/create_feedback_message.js.erb +1 -0
  219. data/app/views/contact/feedback.html.erb +13 -0
  220. data/app/views/contact/index.html.erb +16 -0
  221. data/app/views/errors/error.html.erb +1 -0
  222. data/app/views/fallback/show.html.erb +6 -0
  223. data/app/views/feedback_mailer/new_feedback_request.html.erb +11 -0
  224. data/app/views/feedback_mailer/new_feedback_request.text.erb +6 -0
  225. data/app/views/index/index.html.erb +14 -0
  226. data/app/views/layouts/admin/_footer.html.erb +1 -1
  227. data/app/views/layouts/admin/_header.html.erb +7 -2
  228. data/app/views/layouts/admin.html.erb +0 -1
  229. data/app/views/layouts/application/_footer.html.erb +1 -1
  230. data/app/views/layouts/application/header/_authentication.html.erb +4 -1
  231. data/app/views/legal/privacy.html.erb +5 -0
  232. data/app/views/legal/tos.html.erb +5 -0
  233. data/app/views/my/components/index.html.erb +25 -0
  234. data/app/views/my/components/show.html.erb +21 -0
  235. data/app/views/my/confirmations/show.html.erb +62 -0
  236. data/app/views/my/index/_cards.html.erb +15 -0
  237. data/app/views/my/index/_email.html.erb +14 -0
  238. data/app/views/my/index/_navigation.html.erb +33 -0
  239. data/app/views/my/index/index.html.erb +12 -0
  240. data/app/views/my/profiles/_form.html.erb +10 -0
  241. data/app/views/my/profiles/check.jbuilder +4 -0
  242. data/app/views/my/profiles/edit.html.erb +14 -0
  243. data/app/views/my/profiles/form/_basic_parameters.html.erb +9 -0
  244. data/app/views/my/profiles/form/_sensitive_parameters.html.erb +68 -0
  245. data/app/views/my/profiles/new.html.erb +6 -8
  246. data/app/views/my/profiles/show.html.erb +36 -0
  247. data/app/views/my/recoveries/show.html.erb +0 -0
  248. data/app/views/shared/_flash_messages.html.erb +1 -1
  249. data/app/views/shared/_list_of_errors.html.erb +7 -0
  250. data/app/views/shared/admin/_breadcrumbs.html.erb +8 -0
  251. data/app/views/shared/admin/_list.html.erb +10 -19
  252. data/app/views/shared/admin/_list_with_priority.html.erb +10 -19
  253. data/app/views/shared/admin/_priority.html.erb +6 -0
  254. data/app/views/shared/admin/_toggle.html.erb +6 -0
  255. data/app/views/shared/entity/_date_field.html.erb +6 -0
  256. data/app/views/shared/entity/_formatted_text_field.html.erb +10 -0
  257. data/app/views/shared/entity/_image.html.erb +31 -0
  258. data/app/views/shared/entity/_language.html.erb +6 -0
  259. data/app/views/shared/entity/_linked_entity.html.erb +6 -0
  260. data/app/views/shared/entity/_list.html.erb +22 -0
  261. data/app/views/shared/entity/_list_with_priority.html.erb +22 -0
  262. data/app/views/shared/entity/_meta_texts.html.erb +16 -0
  263. data/app/views/shared/entity/_metadata.html.erb +18 -0
  264. data/app/views/shared/entity/_parent.html.erb +6 -0
  265. data/app/views/shared/entity/_priority.html.erb +4 -0
  266. data/app/views/shared/entity/_priority_icons.html.erb +8 -0
  267. data/app/views/shared/entity/_raw_text_field.html.erb +10 -0
  268. data/app/views/shared/entity/_simple_image.html.erb +10 -0
  269. data/app/views/shared/entity/_slug.html.erb +6 -0
  270. data/app/views/shared/entity/_text_field.html.erb +6 -0
  271. data/app/views/shared/entity/_text_fields.html.erb +9 -0
  272. data/app/views/shared/entity/_time_field.html.erb +6 -0
  273. data/app/views/shared/entity/_timestamps.html.erb +13 -0
  274. data/app/views/shared/entity/_toggle.html.erb +12 -0
  275. data/app/views/shared/entity/_track.html.erb +12 -0
  276. data/app/views/shared/entity/_tree_caches.html.erb +19 -0
  277. data/app/views/shared/entity/_uuid.html.erb +4 -0
  278. data/app/views/shared/entity/edit.html.erb +23 -0
  279. data/app/views/shared/entity/new.html.erb +16 -0
  280. data/app/views/shared/forms/_entity_flags.html.erb +15 -0
  281. data/app/views/shared/forms/_field.html.erb +50 -0
  282. data/app/views/shared/forms/_field_with_search.html.erb +17 -0
  283. data/app/views/shared/forms/_fields.html.erb +3 -0
  284. data/app/views/shared/forms/_language.html.erb +40 -0
  285. data/app/views/shared/forms/_meta_texts.html.erb +27 -0
  286. data/app/views/shared/forms/_priority.html.erb +13 -0
  287. data/app/views/shared/forms/_simple_entity_link.html.erb +14 -0
  288. data/app/views/shared/forms/_simple_image.html.erb +47 -0
  289. data/app/views/shared/forms/_state_container.html.erb +7 -0
  290. data/app/views/shared/forms/_text_area.html.erb +25 -0
  291. data/app/views/shared/forms/_text_field.html.erb +24 -0
  292. data/app/views/shared/forms/_text_fields.html.erb +3 -0
  293. data/app/views/shared/forms/check.jbuilder +4 -0
  294. data/app/views/shared/forms/errors.jbuilder +3 -0
  295. data/app/views/shared/forms/simple_image/_browse.html.erb +14 -0
  296. data/app/views/shared/forms/simple_image/_load_image.html.erb +38 -0
  297. data/app/views/shared/my/_list.html.erb +10 -0
  298. data/app/views/shared/my/_list_with_priority.html.erb +10 -0
  299. data/app/views/shared/my/entity/edit.html.erb +25 -0
  300. data/app/views/shared/my/entity/new.html.erb +18 -0
  301. data/app/views/simple_images/_simple_image.jbuilder +13 -0
  302. data/app/views/users/_profile.html.erb +30 -0
  303. data/app/views/users/profile/_data.html.erb +20 -0
  304. data/app/views/users/show.html.erb +21 -0
  305. data/config/locales/biovision-ru.yml +76 -1
  306. data/config/locales/components-ru.yml +55 -4
  307. data/config/locales/contact-ru.yml +110 -0
  308. data/config/locales/content-ru.yml +115 -0
  309. data/config/locales/users-ru.yml +142 -3
  310. data/config/routes.rb +99 -48
  311. data/db/migrate/20191228000000_create_biovision_components.rb +6 -5
  312. data/db/migrate/20200224000000_create_track_component.rb +9 -14
  313. data/db/migrate/20200224000010_create_users_component.rb +14 -83
  314. data/db/migrate/20200404000000_create_simple_images.rb +4 -3
  315. data/db/migrate/20210405000000_create_acl.rb +88 -0
  316. data/db/migrate/20210421000000_create_content_component.rb +80 -0
  317. data/db/migrate/20210421000010_create_contact_component.rb +74 -0
  318. data/db/migrate/20210616000000_create_uploaded_files.rb +52 -0
  319. data/db/migrate/amends/20210816060606_create_oembed_receivers.rb +21 -0
  320. data/db/migrate/amends/20210907070707_add_checksum_to_simple_images.rb +13 -0
  321. data/lib/biovision/base_methods.rb +17 -29
  322. data/lib/biovision/engine.rb +8 -13
  323. data/lib/biovision/version.rb +1 -1
  324. data/lib/tasks/components.rake +51 -0
  325. metadata +266 -27
  326. data/app/assets/images/biovision/placeholders/user.svg +0 -15
  327. data/app/helpers/users_helper.rb +0 -11
  328. data/app/lib/biovision/components/component_settings.rb +0 -30
  329. data/app/lib/biovision/components/privilege_handler.rb +0 -77
  330. data/app/lib/biovision/components/users/code_handler.rb +0 -23
  331. data/app/models/biovision_component_user.rb +0 -21
  332. data/app/models/foreign_site.rb +0 -34
  333. data/app/models/foreign_user.rb +0 -21
  334. data/app/uploaders/user_image_uploader.rb +0 -58
  335. data/app/views/admin/components/links/_track.html.erb +0 -2
  336. data/app/views/admin/components/links/_users.html.erb +0 -11
  337. data/app/views/admin/components/privileges/_component_user.html.erb +0 -17
  338. data/app/views/admin/components/privileges/_links.html.erb +0 -35
  339. data/app/views/admin/components/privileges/_privilege_flag.html.erb +0 -28
  340. data/app/views/admin/components/privileges/_users.html.erb +0 -23
  341. data/app/views/admin/components/privileges.html.erb +0 -20
  342. data/app/views/authentication/_form.html.erb +0 -40
  343. data/app/views/authentication/failed.js.erb +0 -3
  344. data/app/views/my/profiles/new/_form.html.erb +0 -147
  345. data/app/views/shared/admin/_toggleable.html.erb +0 -8
@@ -4,7 +4,7 @@
4
4
  >
5
5
  <h2><%= t('.heading') %></h2>
6
6
 
7
- <dl>
7
+ <dl class="fields">
8
8
  <div>
9
9
  <dt><%= label_tag(:new_parameter_slug, t('.parameter_slug')) %></dt>
10
10
  <dd>
@@ -13,6 +13,7 @@
13
13
  :slug,
14
14
  '',
15
15
  autocomplete: :off,
16
+ class: 'input-text',
16
17
  id: :new_parameter_slug,
17
18
  maxlength: 50,
18
19
  pattern: BiovisionComponent::SLUG_PATTERN_HTML,
@@ -32,6 +33,7 @@
32
33
  :value,
33
34
  '',
34
35
  autocomplete: :off,
36
+ class: 'input-text',
35
37
  id: :new_parameter_value,
36
38
  maxlength: 255,
37
39
  size: nil
@@ -42,5 +44,5 @@
42
44
  </div>
43
45
  </dl>
44
46
 
45
- <%= button_tag(t(:save), class: 'button-save', type: :button) %>
47
+ <%= button_tag(t(:save), class: 'button button-save', type: :button) %>
46
48
  </section>
@@ -4,14 +4,20 @@
4
4
  >
5
5
  <h2><%= t('.heading') %></h2>
6
6
 
7
- <dl>
7
+ <dl class="fields">
8
8
  <% parameters.each do |parameter, value| %>
9
9
  <% element_id = "parameter-#{parameter}" %>
10
10
  <div>
11
11
  <dt><%= label_tag(element_id, parameter) %></dt>
12
12
  <dd>
13
13
  <%=
14
- text_field_tag(parameter, value, autocomplete: :off, id: element_id)
14
+ text_field_tag(
15
+ parameter,
16
+ value,
17
+ autocomplete: :off,
18
+ class: 'input-text',
19
+ id: element_id
20
+ )
15
21
  %>
16
22
  </dd>
17
23
  </div>
@@ -1,4 +1,4 @@
1
- <% if settings.any? %>
1
+ <% if keys.any? %>
2
2
  <section class="biovision-component-settings">
3
3
  <h2><%= t('.heading') %></h2>
4
4
 
@@ -10,21 +10,21 @@
10
10
  ) do
11
11
  %>
12
12
  <div class="fields">
13
- <% settings.each do |key, value| %>
13
+ <% keys.each do |key| %>
14
14
  <%=
15
15
  render(
16
16
  partial: 'admin/components/settings/setting',
17
17
  locals: {
18
18
  slug: handler.slug,
19
19
  key: key,
20
- value: value
20
+ value: settings[key.to_s]
21
21
  }
22
22
  )
23
23
  %>
24
24
  <% end %>
25
25
  </div>
26
26
  <div class="buttons">
27
- <%= button_tag(t(:update), type: :submit, class: 'button-save') %>
27
+ <%= button_tag(t(:update), class: 'button button-save') %>
28
28
  </div>
29
29
  <% end %>
30
30
  </section>
@@ -13,7 +13,8 @@
13
13
  partial: 'admin/components/settings/settings',
14
14
  locals: {
15
15
  handler: @handler,
16
- settings: @handler.component.settings
16
+ settings: @handler.component.settings,
17
+ keys: @handler.class.default_settings.keys
17
18
  }
18
19
  )
19
20
  %>
@@ -0,0 +1,21 @@
1
+ json.data do
2
+ json.id @entity.id
3
+ json.type @entity.class.table_name
4
+ json.attributes do
5
+ json.call(@entity, :user_id, :data)
6
+ end
7
+ json.relationships do
8
+ json.user do
9
+ json.data do
10
+ json.id @entity.user.id
11
+ json.type @entity.user.class.table_name
12
+ json.attributes do
13
+ json.call(@entity.user, :screen_name)
14
+ end
15
+ json.meta do
16
+ json.full_name @entity.user.full_name
17
+ end
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,16 @@
1
+ <%= form_with(**Biovision::Components::BaseComponent.form_options(entity)) do |f| %>
2
+ <%= render partial: 'shared/list_of_errors', locals: { entity: entity } %>
3
+
4
+ <dl class="fields">
5
+ <%= render partial: 'shared/forms/text_field', locals: { f: f, field: :slug } %>
6
+ <%= render partial: 'shared/forms/text_area', locals: { f: f, field: :body } %>
7
+ <%= entity_form_block(f, :entity_flags) %>
8
+ </dl>
9
+
10
+ <%= render 'shared/forms/state_container' %>
11
+
12
+ <div class="buttons">
13
+ <%= hidden_field_tag :entity_id, entity.id %>
14
+ <%= f.button t(:save), class: 'button button-save' %>
15
+ </div>
16
+ <% end %>
@@ -0,0 +1,6 @@
1
+ <div>
2
+ <%= link_to t('.text'), admin_dynamic_blocks_path %>
3
+ </div>
4
+ <div class="description">
5
+ <%= t('.description') %>
6
+ </div>
@@ -0,0 +1,12 @@
1
+ <div class="data">
2
+ <div><%= admin_entity_link(entity, handler: local_assigns[:handler]) %></div>
3
+
4
+ <%= entity_toggle(entity) %>
5
+
6
+ <% if local_assigns[:handler]&.permit?('edit', entity) %>
7
+ <div class="entity-actions">
8
+ <%= edit_icon(entity) %>
9
+ <%= destroy_icon(entity) %>
10
+ </div>
11
+ <% end %>
12
+ </div>
@@ -0,0 +1,17 @@
1
+ <% content_for :meta_title, t('.title') %>
2
+ <% content_for :breadcrumbs do %>
3
+ <%= admin_biovision_component_link(component_handler.component) %>
4
+ <span><%= t('admin.dynamic_blocks.nav_item.text') %></span>
5
+ <% end %>
6
+
7
+ <article>
8
+ <h1><%= t('.heading') %></h1>
9
+
10
+ <% if component_handler.permit?("#{controller_name}.create") %>
11
+ <nav class="entity-actions">
12
+ <%= create_icon(new_admin_dynamic_block_path) %>
13
+ </nav>
14
+ <% end %>
15
+
16
+ <%= entity_list(@collection) %>
17
+ </article>
@@ -0,0 +1,25 @@
1
+ <% content_for :meta_title, t('.title', slug: @entity.slug) %>
2
+ <% content_for :breadcrumbs do %>
3
+ <%= admin_biovision_component_link(component_handler.component) %>
4
+ <%= link_to(t('admin.dynamic_blocks.nav_item.text'), admin_dynamic_blocks_path) %>
5
+ <span><%= @entity.slug %></span>
6
+ <% end %>
7
+
8
+ <article>
9
+ <h1><%= @entity.class.model_name.human %> <q><%= @entity.slug %></q></h1>
10
+
11
+ <% if component_handler.permit?('edit', @entity) %>
12
+ <nav class="entity-actions">
13
+ <%= edit_icon(@entity) %>
14
+ <%= destroy_icon(@entity) %>
15
+ </nav>
16
+ <% end %>
17
+
18
+ <dl class="fields">
19
+ <%= entity_partial_block(@entity, :slug) %>
20
+ <%= render partial: 'shared/entity/text_field', locals: { entity: @entity, field: :body } %>
21
+ <%= entity_partial_block(@entity, :timestamps) %>
22
+ </dl>
23
+
24
+ <%= entity_toggle(@entity) %>
25
+ </article>
@@ -0,0 +1,18 @@
1
+ json.id dynamic_page.id
2
+ json.type dynamic_page.class.table_name
3
+ json.attributes do
4
+ json.call(dynamic_page, :slug, :url)
5
+ end
6
+ json.meta do
7
+ json.text_for_link dynamic_page.text_for_link
8
+ json.html(
9
+ render(
10
+ partial: 'admin/dynamic_pages/entity/in_search',
11
+ locals: { entity: dynamic_page },
12
+ formats: [:html]
13
+ )
14
+ )
15
+ end
16
+ json.links do
17
+ json.self admin_dynamic_page_path(id: dynamic_page.id)
18
+ end
@@ -0,0 +1,21 @@
1
+ <%= form_with(**Biovision::Components::BaseComponent.form_options(entity)) do |f| %>
2
+ <%= render partial: 'shared/list_of_errors', locals: { entity: entity } %>
3
+
4
+ <dl class="fields">
5
+ <%= render partial: 'shared/forms/text_field', locals: { f: f, field: :slug } %>
6
+ <%= render partial: 'shared/forms/language', locals: { f: f } %>
7
+ <%= render partial: 'shared/forms/text_field', locals: { f: f, field: :name } %>
8
+ <%= render partial: 'shared/forms/text_field', locals: { f: f, field: :url } %>
9
+ <%= render partial: 'shared/forms/simple_image', locals: { f: f } %>
10
+ <%= render partial: 'shared/forms/text_area', locals: { f: f, field: :body } %>
11
+ <%= render partial: 'shared/forms/entity_flags', locals: { f: f } %>
12
+ <%= render partial: 'shared/forms/meta_texts', locals: { f: f } %>
13
+ </dl>
14
+
15
+ <%= render 'shared/forms/state_container' %>
16
+
17
+ <div class="buttons">
18
+ <%= hidden_field_tag :entity_id, entity.id %>
19
+ <%= f.button t(:save), class: 'button button-save' %>
20
+ </div>
21
+ <% end %>
@@ -0,0 +1,6 @@
1
+ <div>
2
+ <%= link_to t('.text'), admin_dynamic_pages_path %>
3
+ </div>
4
+ <div class="description">
5
+ <%= t('.description') %>
6
+ </div>
@@ -0,0 +1,17 @@
1
+ <figure class="image"><%= simple_image_preview(entity) %></figure>
2
+ <div class="data">
3
+ <div><%= admin_entity_link(entity, handler: local_assigns[:handler]) %></div>
4
+ <% unless entity.name.blank? %>
5
+ <div class="info"><%= entity.name %></div>
6
+ <% end %>
7
+
8
+ <%= entity_toggle(entity) %>
9
+
10
+ <div class="entity-actions">
11
+ <%= world_icon(entity) unless entity.url.blank? %>
12
+ <% if local_assigns[:handler]&.permit?('edit', entity) %>
13
+ <%= edit_icon(entity) %>
14
+ <%= destroy_icon(entity) %>
15
+ <% end %>
16
+ </div>
17
+ </div>
@@ -0,0 +1,7 @@
1
+ <figure class="image"><%= simple_image_preview(entity) %></figure>
2
+ <div class="data">
3
+ <div><%= admin_entity_link(entity, handler: local_assigns[:handler]) %></div>
4
+ <% unless entity.name.blank? %>
5
+ <div class="info"><%= entity.name %></div>
6
+ <% end %>
7
+ </div>
@@ -0,0 +1,17 @@
1
+ <% content_for :meta_title, t('.title') %>
2
+ <% content_for :breadcrumbs do %>
3
+ <%= admin_biovision_component_link(component_handler.component) %>
4
+ <span><%= t('admin.dynamic_pages.nav_item.text') %></span>
5
+ <% end %>
6
+
7
+ <article>
8
+ <h1><%= t('.heading') %></h1>
9
+
10
+ <% if component_handler.permit?("#{controller_name}.edit") %>
11
+ <nav class="entity-actions">
12
+ <%= create_icon(new_admin_dynamic_page_path) %>
13
+ </nav>
14
+ <% end %>
15
+
16
+ <%= entity_list(@collection) %>
17
+ </article>
@@ -0,0 +1,4 @@
1
+ json.data @collection do |entity|
2
+ json.partial! entity
3
+ end
4
+ json.partial! 'shared/pagination', locals: { collection: @collection }
@@ -0,0 +1,28 @@
1
+ <% content_for :meta_title, t('.title', slug: @entity.long_slug) %>
2
+ <% content_for :breadcrumbs do %>
3
+ <%= admin_biovision_component_link(component_handler.component) %>
4
+ <%= link_to(t('admin.dynamic_pages.nav_item.text'), admin_dynamic_pages_path) %>
5
+ <span><%= @entity.slug %></span>
6
+ <% end %>
7
+
8
+ <article>
9
+ <h1><%= @entity.class.model_name.human %> <q><%= @entity.long_slug %></q></h1>
10
+
11
+ <nav class="entity-actions">
12
+ <%= world_icon(@entity) unless @entity.url.blank? %>
13
+ <%= edit_icon(@entity) if component_handler.permit?('edit', @entity) %>
14
+ </nav>
15
+
16
+ <dl class="fields">
17
+ <%= render partial: 'shared/entity/slug', locals: { entity: @entity } %>
18
+ <%= render partial: 'shared/entity/language', locals: { entity: @entity } %>
19
+ <%= render partial: 'shared/entity/text_fields', locals: { entity: @entity, fields: %w[name url] } %>
20
+ <%= render partial: 'shared/entity/simple_image', locals: { entity: @entity } %>
21
+ <%= render partial: 'shared/entity/raw_text_field', locals: { entity: @entity, field: :body } %>
22
+ <%= render partial: 'shared/entity/meta_texts', locals: { entity: @entity } %>
23
+ <%= render partial: 'shared/entity/uuid', locals: { entity: @entity } %>
24
+ <%= render partial: 'shared/entity/timestamps', locals: { entity: @entity } %>
25
+ </dl>
26
+
27
+ <%= entity_toggle(@entity) %>
28
+ </article>
@@ -3,12 +3,14 @@
3
3
  <article>
4
4
  <h1><%= t('.heading') %></h1>
5
5
 
6
- <%=
7
- render(
6
+ <% if component_handler.permit?('components.view') %>
7
+ <%=
8
+ render(
8
9
  partial: 'admin/components/list',
9
10
  locals: {
10
- collection: BiovisionComponent.list_for_administration
11
+ collection: BiovisionComponent.active.list_for_administration
11
12
  }
12
- )
13
- %>
13
+ )
14
+ %>
15
+ <% end %>
14
16
  </article>
@@ -6,8 +6,6 @@
6
6
 
7
7
  <article>
8
8
  <h1><%= t('.heading') %></h1>
9
-
10
- <%= paginate @collection %>
11
- <%= render partial: 'shared/admin/list', locals: { collection: @collection } %>
12
- <%= paginate @collection %>
9
+
10
+ <%= entity_list(@collection) %>
13
11
  </article>
@@ -0,0 +1,26 @@
1
+ <div class="data">
2
+ <div><%= admin_entity_link(entity.dynamic_page, handler: local_assigns[:handler]) %></div>
3
+ <div class="info"><%= entity.dynamic_page.url %></div>
4
+ <div class="secondary info"><%= entity.dynamic_page.name %></div>
5
+
6
+ <% if local_assigns[:handler]&.permit?('edit', entity.navigation_group) %>
7
+ <div class="entity-actions">
8
+ <% url = page_priority_admin_navigation_group_path(id: entity.navigation_group_id, page_id: entity.id) %>
9
+ <div class="priority-changer" data-url="<%= url %>">
10
+ <button data-delta="-1" type="button">&uarr;</button>
11
+ <button data-delta="1" type="button">&darr;</button>
12
+ </div>
13
+
14
+ <%=
15
+ button_tag(
16
+ '',
17
+ class: 'danger destroy',
18
+ data: {
19
+ url: dynamic_page_admin_navigation_group_path(id: entity.navigation_group_id, page_id: entity.id)
20
+ },
21
+ type: 'button'
22
+ )
23
+ %>
24
+ </div>
25
+ <% end %>
26
+ </div>
@@ -0,0 +1,15 @@
1
+ <%= form_with(**Biovision::Components::BaseComponent.form_options(entity)) do |f| %>
2
+ <%= render partial: 'shared/list_of_errors', locals: { entity: entity } %>
3
+
4
+ <dl class="fields">
5
+ <%= render partial: 'shared/forms/text_field', locals: { f: f, field: :name } %>
6
+ <%= render partial: 'shared/forms/text_field', locals: { f: f, field: :slug } %>
7
+ </dl>
8
+
9
+ <%= render 'shared/forms/state_container' %>
10
+
11
+ <div class="buttons">
12
+ <%= hidden_field_tag :entity_id, entity.id %>
13
+ <%= f.button t(:save), class: 'button button-save' %>
14
+ </div>
15
+ <% end %>
@@ -0,0 +1,6 @@
1
+ <div>
2
+ <%= link_to t('.text'), admin_navigation_groups_path %>
3
+ </div>
4
+ <div class="description">
5
+ <%= t('.description') %>
6
+ </div>
@@ -0,0 +1,38 @@
1
+ <section
2
+ class="js-entity-list-with-search"
3
+ data-prefix="<%= dynamic_page_admin_navigation_group_path(id: entity.id, page_id: '') %>"
4
+ >
5
+ <h2><%= t('.heading') %></h2>
6
+
7
+ <div class="list">
8
+ <%=
9
+ render(
10
+ partial: 'shared/admin/list_with_priority',
11
+ locals: { collection: collection, handler: handler }
12
+ )
13
+ %>
14
+ </div>
15
+
16
+ <% if component_handler.permit?('edit', entity) %>
17
+ <section>
18
+ <h3><%= t('.add') %></h3>
19
+
20
+ <div class="search">
21
+ <label class="floating-label">
22
+ <%=
23
+ search_field_tag(
24
+ 'q',
25
+ '',
26
+ class: 'input-text',
27
+ data: { url: search_admin_dynamic_pages_url(format: :json) },
28
+ placeholder: DynamicPage.human_attribute_name(:url)
29
+ )
30
+ %>
31
+ <span><%= DynamicPage.human_attribute_name(:url) %></span>
32
+ </label>
33
+ </div>
34
+
35
+ <ul class="results"></ul>
36
+ </section>
37
+ <% end %>
38
+ </section>
@@ -0,0 +1,14 @@
1
+ <div class="data">
2
+ <div><%= admin_entity_link(entity, handler: local_assigns[:handler]) %></div>
3
+ <div class="info"><%= entity.slug %></div>
4
+ <div class="secondary info">
5
+ <%= t(:page_count, count: entity.dynamic_pages_count) %>
6
+ </div>
7
+
8
+ <% if local_assigns[:handler]&.permit?('edit', entity) %>
9
+ <div class="entity-actions">
10
+ <%= edit_icon(entity) %>
11
+ <%= destroy_icon(entity) %>
12
+ </div>
13
+ <% end %>
14
+ </div>
@@ -0,0 +1,17 @@
1
+ <% content_for :meta_title, t('.title') %>
2
+ <% content_for :breadcrumbs do %>
3
+ <%= admin_biovision_component_link(component_handler.component) %>
4
+ <span><%= t('admin.navigation_groups.nav_item.text') %></span>
5
+ <% end %>
6
+
7
+ <article>
8
+ <h1><%= t('.heading') %></h1>
9
+
10
+ <% if component_handler.permit?("#{controller_name}.edit") %>
11
+ <nav class="entity-actions">
12
+ <%= create_icon(new_admin_navigation_group_path) %>
13
+ </nav>
14
+ <% end %>
15
+
16
+ <%= entity_list(@collection) %>
17
+ </article>
@@ -0,0 +1,33 @@
1
+ <% content_for :meta_title, t('.title', name: @entity.name) %>
2
+ <% content_for :breadcrumbs do %>
3
+ <%= admin_biovision_component_link(component_handler.component) %>
4
+ <%= link_to(t('admin.navigation_groups.nav_item.text'), admin_navigation_groups_path) %>
5
+ <span><%= @entity.name %></span>
6
+ <% end %>
7
+
8
+ <article>
9
+ <h1><%= @entity.class.model_name.human %> <q><%= @entity.name %></q></h1>
10
+
11
+ <% if component_handler.permit?('edit', @entity) %>
12
+ <nav class="entity-actions">
13
+ <%= edit_icon(@entity) %>
14
+ </nav>
15
+ <% end %>
16
+
17
+ <dl class="fields">
18
+ <%= render partial: 'shared/entity/text_field', locals: { entity: @entity, field: :name } %>
19
+ <%= render partial: 'shared/entity/slug', locals: { entity: @entity } %>
20
+ <%= render partial: 'shared/entity/timestamps', locals: { entity: @entity } %>
21
+ </dl>
22
+
23
+ <%=
24
+ render(
25
+ partial: 'admin/navigation_groups/entity/dynamic_pages',
26
+ locals: {
27
+ collection: @entity.navigation_group_pages,
28
+ entity: @entity,
29
+ handler: component_handler
30
+ }
31
+ )
32
+ %>
33
+ </article>
@@ -0,0 +1,31 @@
1
+ <%= form_with(**Biovision::Components::BaseComponent.form_options(entity)) do |f| %>
2
+ <%= render partial: 'shared/list_of_errors', locals: { entity: entity } %>
3
+
4
+ <dl class="fields">
5
+ <% if entity.id.blank? %>
6
+ <!-- <div>-->
7
+ <!-- <dt><%#= f.label :user_id %></dt>-->
8
+ <!-- <dd>-->
9
+ <%#=
10
+ <!-- f.number_field(-->
11
+ <!-- :user_id,-->
12
+ <!-- in: User.ids_range-->
13
+ <!-- )-->
14
+ %>
15
+ <%#= render partial: 'admin/users/search', locals: { target_id: 'token_user_id' } %>
16
+ <!-- </dd>-->
17
+ <!-- </div>-->
18
+ <% else %>
19
+ <%= render partial: 'shared/entity/linked_entity', locals: { entity: entity.user } %>
20
+ <%= render partial: 'shared/entity/text_field', locals: { entity: entity, field: :token } %>
21
+ <% end %>
22
+ <%= render partial: 'shared/forms/entity_flags', locals: { f: f } %>
23
+ </dl>
24
+
25
+ <%= render 'shared/forms/state_container' %>
26
+
27
+ <div class="buttons">
28
+ <%= hidden_field_tag :entity_id, entity.id %>
29
+ <%= f.button t(:save), class: 'button button-save' %>
30
+ </div>
31
+ <% end %>
@@ -0,0 +1,6 @@
1
+ <div>
2
+ <%= link_to t('.text'), admin_tokens_path %>
3
+ </div>
4
+ <div class="description">
5
+ <%= t('.description') %>
6
+ </div>
@@ -0,0 +1,27 @@
1
+ <figure class="image"><%= simple_image_preview(entity.user) %></figure>
2
+ <div class="data">
3
+ <div><%= admin_entity_link(entity, handler: local_assigns[:handler]) %></div>
4
+ <div class="info">
5
+ <% unless entity.last_used.nil? %>
6
+ <div>
7
+ <%= entity.class.human_attribute_name(:last_used) %>
8
+ <%= time_tag entity.last_used %>
9
+ </div>
10
+ <% end %>
11
+ </div>
12
+ <div class="secondary info">
13
+ <div><%= entity.ip_address&.ip %></div>
14
+ <% unless entity.agent.blank? %>
15
+ <div class="truncate"><%= entity.agent.name %></div>
16
+ <% end %>
17
+ </div>
18
+
19
+ <%= entity_toggle(entity) %>
20
+
21
+ <% if local_assigns[:handler]&.permit?('edit', entity) %>
22
+ <div class="entity-actions">
23
+ <%= edit_icon(entity) %>
24
+ <%= destroy_icon(entity) %>
25
+ </div>
26
+ <% end %>
27
+ </div>
@@ -0,0 +1,11 @@
1
+ <% content_for :meta_title, t('.title', page: current_page) %>
2
+ <% content_for :breadcrumbs do %>
3
+ <%= admin_biovision_component_link(component_handler.component) %>
4
+ <span><%= t('admin.tokens.nav_item.text') %></span>
5
+ <% end %>
6
+
7
+ <article>
8
+ <h1><%= t('.heading') %></h1>
9
+
10
+ <%= entity_list(@collection) %>
11
+ </article>
@@ -0,0 +1,26 @@
1
+ <% content_for :meta_title, t('.title', id: @entity.id) %>
2
+ <% content_for :breadcrumbs do %>
3
+ <%= admin_biovision_component_link(component_handler.component) %>
4
+ <%= link_to(t('admin.tokens.nav_item.text'), admin_tokens_path) %>
5
+ <span><%= @entity.token %></span>
6
+ <% end %>
7
+
8
+ <article>
9
+ <h1><%= @entity.class.model_name.human %> <%= @entity.id %></h1>
10
+
11
+ <% if component_handler.permit?('edit', @entity) %>
12
+ <nav class="entity-actions">
13
+ <%= edit_icon(@entity) %>
14
+ <%= destroy_icon(@entity) %>
15
+ </nav>
16
+ <% end %>
17
+
18
+ <dl class="fields">
19
+ <%= render partial: 'shared/entity/linked_entity', locals: { entity: @entity.user } %>
20
+ <%= render partial: 'shared/entity/time_field', locals: { entity: @entity, field: :last_used } %>
21
+ <%= render partial: 'shared/entity/timestamps', locals: { entity: @entity } %>
22
+ <%= render partial: 'shared/entity/track', locals: { entity: @entity } %>
23
+ </dl>
24
+
25
+ <%= entity_toggle(@entity) %>
26
+ </article>
@@ -9,11 +9,8 @@
9
9
 
10
10
  <%=
11
11
  render(
12
- partial: 'authentication/form',
13
- locals: {
14
- form_id: 'auth-form_admin',
15
- from: url_for
16
- }
12
+ partial: 'components/users/login_form',
13
+ locals: { current: 'login', from: url_for }
17
14
  )
18
15
  %>
19
16
  </article>