Sha256: 96ede06c415bb652ee905eb0c7c01a3a71bae2294583640f5bd939c8ad7aca3e

Contents?: true

Size: 1.63 KB

Versions: 7

Compression:

Stored size: 1.63 KB

Contents

- content_for :title do "Profile Settings" end
%div
  %h3
    = I18n.t "iugu.profile_settings"

= simple_form_for @user, :url => profile_update_path, :method => :post do |f|
  - if @user.errors.any?
    #error_explanation{ :style => "margin-bottom: 15px" }
      %h2
        = pluralize(@user.errors.count, "error")
        in your settings form

      %ul
        - @user.errors.full_messages.each do |msg|
          %li
            = msg

  %div 
    = f.label :name
    = f.text_field :name

  %div
    = f.label :email
    = f.email_field :email

  %div
    = f.input :birthdate, :as => :date, :start_year => Date.today.year - 100, :end_year => Date.today.year - 5, :order => [:day, :month, :year]

  %div
    = f.input :locale, :collection => AvailableLanguage.all

  %div
    = f.submit "OK"

    %div
      %h3
        = I18n.t "iugu.change_password"

= simple_form_for @user, :url => profile_update_path, :method => :post do |f|

  %div
    = f.label :password
    = f.password_field :password

  %div
    = f.label :password_confirmation
    = f.password_field :password_confirmation

  %div
    = f.submit "OK", :id => "new_password_submit"

    %div
      %h3
        = I18n.t "iugu.social_account"

    - @social_accounts.each do |social_account|

      %div
        = social_account.provider.capitalize
        UID:
        = social_account.social_id
        = link_to "Remove", social_destroy_path(:id => social_account.id)

    - SOCIAL_ACCOUNTS.keys.each do |provider|
    
      - unless @social_accounts.where(:provider => provider).first 
        %div
          = link_to "Sign in with #{provider.capitalize}", "/login/using/#{provider}"








Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
iugusdk-1.0.0.alpha.7 app/views/iugu-old/profile_settings.html.haml
iugusdk-1.0.0.alpha.5 app/views/iugu-old/profile_settings.html.haml
iugusdk-1.0.0.alpha.4 app/views/iugu-old/profile_settings.html.haml
iugusdk-1.0.0.alpha.3 app/views/iugu-old/profile_settings.html.haml
iugusdk-1.0.0.alpha.2 app/views/iugu-old/profile_settings.html.haml
iugusdk-1.0.0.alpha.1 app/views/iugu-old/profile_settings.html.haml
iugusdk-1.0.0.alpha.0 app/views/iugu-old/profile_settings.html.haml