form_for @<%= singular_table_name %> do |f|¶ ↑
= render_errors_from @<%= singular_table_name %> %fieldset{disabled: @readonly} <% for attribute in attributes -%> .form-group = f.label :<%= attribute.name %>, class: 'col-xl-2 control-label' .col-xl-10 = f.<%= attribute.field_type %> :<%= attribute.name %>, class: 'form-control' <% end -%>
.form-group
.col-xl-12 = link_to_back <%= index_helper %>_path = submit_or_edit_button f, edit_url_for(@<%= singular_table_name %>), @readonly