Sha256: 6ed98d78daa22ce971db847aebba191c03d6b29c195c74d6ccdf2e4285f4394e

Contents?: true

Size: 731 Bytes

Versions: 18

Compression:

Stored size: 731 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 :admin_limited_access, label: "Limited Access"

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

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
hackathon_manager-0.12.2 app/views/manage/admins/_form.html.haml
hackathon_manager-0.12.1 app/views/manage/admins/_form.html.haml
hackathon_manager-0.12.0 app/views/manage/admins/_form.html.haml
hackathon_manager-0.11.2 app/views/manage/admins/_form.html.haml
hackathon_manager-0.11.1 app/views/manage/admins/_form.html.haml
hackathon_manager-0.11.0 app/views/manage/admins/_form.html.haml
hackathon_manager-0.10.3 app/views/manage/admins/_form.html.haml
hackathon_manager-0.10.2 app/views/manage/admins/_form.html.haml
hackathon_manager-0.10.1 app/views/manage/admins/_form.html.haml
hackathon_manager-0.10.0 app/views/manage/admins/_form.html.haml
hackathon_manager-0.9.2 app/views/manage/admins/_form.html.haml
hackathon_manager-0.9.1 app/views/manage/admins/_form.html.haml
hackathon_manager-0.9.0 app/views/manage/admins/_form.html.haml
hackathon_manager-0.8.2 app/views/manage/admins/_form.html.haml
hackathon_manager-0.8.1 app/views/manage/admins/_form.html.haml
hackathon_manager-0.8.0 app/views/manage/admins/_form.html.haml
hackathon_manager-0.7.1 app/views/manage/admins/_form.html.haml
hackathon_manager-0.7.0 app/views/manage/admins/_form.html.haml