AgileVentures/MetPlus_PETS

View on GitHub
app/views/people_invitations/new_agency_person.html.haml

Summary

Maintainability
Test Coverage
%h2= t("devise.invitations.new_agency_person.header", org: @agency_name)

.col-sm-3
  = form_for resource, :as => resource_name, :url => invitation_path(resource_name), |
        :html => {:method => :post} do |f|                                           |
    -# = devise_error_messages!
    - resource.class.invite_key_fields.each do |field|
      %p
        = f.label field
        %br/
        = f.text_field field

    %p= f.submit t("devise.invitations.new.submit_button")

.col-sm-8
  %br/
  %p This form will send an email invitation to sign up on PETS for your agency.

  The receiver of that email will click on a link in that email to complete the registration process in PETS.

  After you successfully send the invitation email, you will be directed to a page where you can specify certain attributes for the new PETS user.  These include:
  %p
    %ul
      %li
        %strong Agency Role(s)
        \- "Job Developer", "Case Manager", etc.
        %br/
        %br/
      %li
        %strong Job Specializations
        \- these are the categories of jobs which this person will focus on for Job Seeker placement.
        %br/
        %br/
      %li
        %strong Job Seekers
        for whom this person will be the primary "Job Developer".