templates/app_files/app/views/hq/users/_form.html.haml in cybele-2.1.0 vs templates/app_files/app/views/hq/users/_form.html.haml in cybele-2.2.0

- old
+ new

@@ -1,17 +1,17 @@ .card .card-header %i.fas.fa-edit = yield :form_title .card-body - = simple_form_for([:hq, user], validate: true) do |f| + = simple_form_for([:hq, user]) do |f| = f.error_notification .form-inputs = f.input :name = f.input :surname = f.input :email .form-actions - - text = user.id.present? ? t('view.btn.update') : t('view.btn.add') + - text = user.persisted? ? t('view.btn.update') : t('view.btn.add') = f.button :submit, text, class: 'btn btn-primary' = link_to t('view.cancel'), hq_users_path, class: 'btn'