= simple_form_for [:admin, @static_content] do |f| = f.error_notification = f.hidden_field :id .container.form .row .col-md-2 = f.label :title .col-md-10 - if @static_content.id.present? = f.input :title, label: false, required: false, disabled: true, readonly: true - else = f.input :title, label: false - if @static_content.id.present? .row .col-md-2 = f.label t('activerecord.attributes.project.slug').titleize .col-md-10 = f.input :slug, label: false, required: false, disabled: true, readonly: true .row .col-md-2 = f.label :content .col-md-10 = f.cktext_area :content, label: false .row.submit_buttons.ml-auto .col-sm-8.offset-sm-4 = f.button :submit, value: t('simple_form.buttons.submit'), class: 'save_button' = f.button :cancel_button, cancel: admin_static_contents_path