<% decorated.errors[:base].try do |messages| %> <% Array(messages).each do |message| %> <% end %> <% end %> <% decorated.form_field_names.each do |field_name| %> <%= type_render decorated.form_type_of(field_name), field_name: field_name, form: form %> <% end %> <%= form.button t('buttons.save'), class: 'btn btn-primary' %> <%= cancel_link html_options: { class: 'btn btn-default' } %>