Sha256: 85ed506420b9b70bf731fc8f2fcdc7c45c08404214c1f059b5144cc5044319b8
Contents?: true
Size: 776 Bytes
Versions: 15
Compression:
Stored size: 776 Bytes
Contents
.form-container = bs_horizontal_simple_form_for @user, url: url_for(action: @user.new_record? ? "create" : "update", controller: "admins"), html: { "data-validate" => "form" } do |f| - if @user.new_record? %p If a user already exists, first delete the questionnaire in the = link_to "questionnaires manager.", manage_questionnaires_path - if f.error_notification.present? #disclaimer = f.error_notification .form-inputs = f.input :email, input_html: { "data-validate" => "presence" }, required: true = f.input :role, collection: User.roles.to_a.collect{|c| [c[0].titleize, c[0]]}, include_blank: false .center = f.button :submit, value: ( @user.new_record? ? 'Create' : 'Save' ), class: 'btn-primary'
Version data entries
15 entries across 15 versions & 1 rubygems