Sha256: 82edeabdddebf50284d512f56f9f1db7c352de3eaba140d81b12075c5a90910d

Contents?: true

Size: 899 Bytes

Versions: 30

Compression:

Stored size: 899 Bytes

Contents

.form-container
  = 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, placeholder: "joe@example.com", input_html: { "data-validate" => "presence" }, required: true
      = f.input :admin_limited_access, as: :formatted_boolean, label: "Limited Access"
      %p Limited access prevents the admin from adding, modifying, or deleting any records. Modifications through the check-in process are allowed.

    .center
      = f.button :submit, value: ( @user.new_record? ? 'Create' : 'Save' )

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
hackathon_manager-0.6.6 app/views/manage/admins/_form.html.haml
hackathon_manager-0.6.5 app/views/manage/admins/_form.html.haml
hackathon_manager-0.6.4 app/views/manage/admins/_form.html.haml
hackathon_manager-0.6.3 app/views/manage/admins/_form.html.haml
hackathon_manager-0.6.2 app/views/manage/admins/_form.html.haml
hackathon_manager-0.6.1 app/views/manage/admins/_form.html.haml
hackathon_manager-0.6.0 app/views/manage/admins/_form.html.haml
hackathon_manager-0.5.11 app/views/manage/admins/_form.html.haml
hackathon_manager-0.5.10 app/views/manage/admins/_form.html.haml
hackathon_manager-0.5.9 app/views/manage/admins/_form.html.haml
hackathon_manager-0.5.8 app/views/manage/admins/_form.html.haml
hackathon_manager-0.5.7 app/views/manage/admins/_form.html.haml
hackathon_manager-0.5.6 app/views/manage/admins/_form.html.haml
hackathon_manager-0.5.5 app/views/manage/admins/_form.html.haml
hackathon_manager-0.5.4 app/views/manage/admins/_form.html.haml
hackathon_manager-0.5.3 app/views/manage/admins/_form.html.haml
hackathon_manager-0.5.2 app/views/manage/admins/_form.html.haml
hackathon_manager-0.5.1 app/views/manage/admins/_form.html.haml
hackathon_manager-0.5.0 app/views/manage/admins/_form.html.haml
hackathon_manager-0.4.4 app/views/manage/admins/_form.html.haml