Sha256: b1ccb6ae9abc6bad6fe3230657875e85fdfb527d073fc203ba83a891af29c1c5

Contents?: true

Size: 1.05 KB

Versions: 2

Compression:

Stored size: 1.05 KB

Contents

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

- if @accounts.count > 0

  %table
    %thead
      %th
        Conta
      %th
         
    %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: 50%"
              - else
                = link_to I18n.t("iugu.select"), account_select_path(account), :class => "button no-bottom-margin", :style => "width: 50%"
              = link_to I18n.t("iugu.settings"), account_view_path(account), :class => "button no-bottom-margin", :style => "width: 50%"

- 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

2 entries across 2 versions & 1 rubygems

Version Path
iugusdk-1.0.0.alpha.23 app/views/iugu/settings/accounts.html.haml
iugusdk-1.0.0.alpha.22 app/views/iugu/settings/accounts.html.haml