5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-24 15:26:23 +00:00
panel/app/views/sites/_designs.haml

13 lines
570 B
Text
Raw Normal View History

= 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