Sha256: 7ff447bb5dcec715a0ca2a0499104e58e7c9252a424ad93eadfe469e69de4015

Contents?: true

Size: 1009 Bytes

Versions: 10

Compression:

Stored size: 1009 Bytes

Contents

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

%h1
  Contas

- if @accounts.count > 0

  %table{ class: "table" }
    %thead
      %th
         
      %th
         
    %tbody
      - @accounts.each do |account|
        %tr
          %td
            = account.name
          %td
            .btn-group.pull-right
              - if current_user_account && current_user_account.account_id == account.id
                = link_to I18n.t("iugu.active"), "javascript:function(){}", :class => "btn btn-primary"
              - else
                = link_to I18n.t("iugu.select"), account_select_path(account), :class => "btn btn-primary"
              = link_to I18n.t("iugu.settings"), account_view_path(account), :class => "btn btn-primary"

- 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 => "btn btn-lg btn-success btn-block" 

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
iugusdk-1.0.11 app/views/iugu/settings/accounts.html.haml
iugusdk-1.0.10 app/views/iugu/settings/accounts.html.haml
iugusdk-1.0.9 app/views/iugu/settings/accounts.html.haml
iugusdk-1.0.8 app/views/iugu/settings/accounts.html.haml
iugusdk-1.0.7 app/views/iugu/settings/accounts.html.haml
iugusdk-1.0.6 app/views/iugu/settings/accounts.html.haml
iugusdk-1.0.5 app/views/iugu/settings/accounts.html.haml
iugusdk-1.0.4 app/views/iugu/settings/accounts.html.haml
iugusdk-1.0.3 app/views/iugu/settings/accounts.html.haml
iugusdk-1.0.2 app/views/iugu/settings/accounts.html.haml