Sha256: 1b071ec932ceeaf7ced4d6c18b9d6fe0d384c20f58940a63bffca34fe0c9bd6b

Contents?: true

Size: 1.16 KB

Versions: 8

Compression:

Stored size: 1.16 KB

Contents

.block#block-signup
  %h2 Invite a new member
  .content.login
    .flash
      - flash.each do |type, message|
        %div{ :class => "message #{type}" }
          %p= message
    - flash.clear  # clear contents so we won't see it again

    = form_for(@member, :html => { :class => "form login" }) do |f|
      - unless @member.errors.empty? && @user.errors.empty?
        #errorExplanation.group
          %ul
            = @member.errors.full_messages.uniq.inject(''){|str, msg| str << "<li> #{msg}"}.html_safe
            = @user.errors.full_messages.uniq.inject(''){|str, msg| str << "<li> #{msg}"}.html_safe

      = fields_for( :user ) do |w|
        .group
          = w.label :email, :class => "label "
          = w.text_field :email, :class => "text_field"
          %span.description Ex. test@example.com; must be unique

      .group
        = f.label :first_name, :class => "label "
        = f.text_field :first_name, :class => "text_field"

      .group
        = f.label :last_name, :class => "label "
        = f.text_field :last_name, :class => "text_field"

      .group.navform.wat-cf
        %button.button{ :type => "submit" }
          Create user and invite

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
milia-1.3.1 app/views/members/new.html.haml
milia-1.3.1.beta1 app/views/members/new.html.haml
milia-1.2.1 app/views/members/new.html.haml
milia-1.2.0 app/views/members/new.html.haml
milia-1.1.1 app/views/members/new.html.haml
milia-1.0.1 app/views/members/new.html.haml
milia-1.1.0 app/views/members/new.html.haml
milia-1.0.0 app/views/members/new.html.haml