Sha256: ca4e5330f98681ca7d83a57bc152695be81b8091f6ddce157256529dd931c313

Contents?: true

Size: 1.89 KB

Versions: 10

Compression:

Stored size: 1.89 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

10 entries across 10 versions & 1 rubygems

Version Path
gluttonberg-core-2.6.4 app/views/gluttonberg/public/members/edit.html.haml
gluttonberg-core-2.6.3 app/views/gluttonberg/public/members/edit.html.haml
gluttonberg-core-2.6.2 app/views/gluttonberg/public/members/edit.html.haml
gluttonberg-core-2.6.1 app/views/gluttonberg/public/members/edit.html.haml
gluttonberg-core-2.6.0 app/views/gluttonberg/public/members/edit.html.haml
gluttonberg-core-2.5.9 app/views/gluttonberg/public/members/edit.html.haml
gluttonberg-core-2.5.8 app/views/gluttonberg/public/members/edit.html.haml
gluttonberg-core-2.5.7 app/views/gluttonberg/public/members/edit.html.haml
gluttonberg-core-2.5.6 app/views/gluttonberg/public/members/edit.html.haml
gluttonberg-core-2.5.5 app/views/gluttonberg/public/members/edit.html.haml