= 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_desktop', site: @site, designs: @designs
= render 'designs_mobile', site: @site, designs: @designs
= render 'designs_buttons', site: @site, designs: @designs