Sha256: b5b73ef35efaef3fee9f9c20aa10e67ebdc749c9df4392e276cad4794bc09240

Contents?: true

Size: 1.07 KB

Versions: 5

Compression:

Stored size: 1.07 KB

Contents

- content_for :title do I18n.t("iugu.account_settings") end

- if @accounts.count > 0

  %table
    %thead
      %th
        Conta
      %th{ :style => "width:50%" }
         
    %tbody
      - @accounts.each do |account|
        %tr
          %td
            = account.name
          %td
            .group.horizontal_stacking
              - if current_user_account.account_id == account.id
                = link_to I18n.t("iugu.active"), "javascript:function(){}", :class => "button no-bottom-margin disabled", :style => "width: 40%"
              - else
                = link_to I18n.t("iugu.select"), account_select_path(account), :class => "button no-bottom-margin", :style => "width: 40%"
              = link_to I18n.t("iugu.settings"), account_view_path(account), :class => "button no-bottom-margin", :style => "width: 60%"

- else
  %h2
    = I18n.t("iugu.i_dont_have_any_accounts")


- if IuguSDK::enable_multiple_accounts == true
  %div
    = link_to I18n.t("iugu.create_account"), account_create_path, :method => :post, :class => "button full-width no-bottom-margin default" 

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
iugusdk-1.0.0.alpha.28 app/views/iugu/settings/accounts.html.haml
iugusdk-1.0.0.alpha.27 app/views/iugu/settings/accounts.html.haml
iugusdk-1.0.0.alpha.26 app/views/iugu/settings/accounts.html.haml
iugusdk-1.0.0.alpha.25 app/views/iugu/settings/accounts.html.haml
iugusdk-1.0.0.alpha.24 app/views/iugu/settings/accounts.html.haml