5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-24 13:36:21 +00:00
panel/app/views/sites/_designs.haml
jazzari db90475e09
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
fix: movidos partials a carpeta designs y varias correcciones #13587
2023-12-26 16:52:57 +01:00

12 lines
570 B
Text

= form_for site, html: { class: form_class(site) } do |f|
- unless site.persisted?
.form-group#design_id
- if invalid? site, :design_id
= render 'bootstrap/alert' do
= t('activerecord.errors.models.site.attributes.design_id.layout_incompatible.help',
layouts: site.incompatible_layouts.to_sentence)
= render '/designs/designs_desktop', site: @site, designs: @designs
= render '/designs/designs_mobile', site: @site, designs: @designs
= render '/designs/designs_buttons', site: @site, designs: @designs