Sha256: 8745625d96e3159fc5ba5782744d4443e392304c6087ece5f08937e94a510a76

Contents?: true

Size: 1.88 KB

Versions: 3

Compression:

Stored size: 1.88 KB

Contents

%h1
  Welcome, #{current_member.first_name}

#sub_nav.manual
  %ul
    %li.current#view_ideasNav
      %a{:href=>"/member/profile"}
        Your Details

#complete_profile
  = form_for @member, :url => member_profile_path, :method => :put ,  :html => {:multipart => true, :id => "register_form"} do |f|
    - if @member.errors.any?
      #error
        %ul
          - @member.errors.full_messages.each do |msg|
            %li
              = msg
    = f.hidden_field(:return_url, :value => "/member/profile")

    .form_element
      = f.label :email
      = f.text_field :email

    .form_element
      = f.label :password
      = f.password_field :password

    .form_element
      = f.label :password_confirmation
      = f.password_field :password_confirmation

    .form_element
      = f.label "Profile Image"
      = f.file_field :image , :class => ""

    .form_element
      = f.submit
      = image_tag("/assets/gb_spinner.gif" , :id => "user_submit_progress" , :style => "display:none" )


#form_hidden_field



:javascript
  $(document).ready(function() {

    $("form#register_form").validate({
      rules: {
        "user[term_and_conditions]" : {
          required: true
        }
      },
      messages: {
        "user[first_name]": {
          required: "#{t('validation_messages.first_name_required')}"
        },
        "user[email]": {
          required: "#{t('validation_messages.email_required')}"
        },
        "user[password]": {
          required: "#{t('validation_messages.password_required')}"
        },
        "user[password_confirmation]": {
        required: "#{t('validation_messages.password_confirmation_required')}"
        },

        "user[term_and_conditions]" : {
          required: "#{t('validation_messages.term_and_conditions_required')}"
        }

      },
      submitHandler: function(form) {
        $("#user_submit_progress").show();
      }
    });



  });

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gluttonberg-core-3.0.2 app/views/gluttonberg/public/members/edit.html.haml
gluttonberg-core-3.0.1 app/views/gluttonberg/public/members/edit.html.haml
gluttonberg-core-3.0.0 app/views/gluttonberg/public/members/edit.html.haml