Sha256: 4adaeeaaa84bc5f875167968ca8518b80e830b2705cd3c21f09b444d4e9bffbc

Contents?: true

Size: 924 Bytes

Versions: 1

Compression:

Stored size: 924 Bytes

Contents

%h2
  = I18n.t("iugu.account_domains") + " (##{@account.id})"

%div
  = simple_form_for @account_domain, :url => create_domain_path(@account.id) do |f|
    = f.text_field :url
    = f.submit I18n.t("iugu.add")
%br
%div
  - @account_domains.each do |domain|
    %div

      = domain.url

      |
      - if domain.primary
        = I18n.t("iugu.primary")
      - else
        = link_to I18n.t("iugu.set_primary"), primary_domain_path(:account_id => @account.id, :domain_id => domain.id), :method => :post

      |
      - if domain.verified
        = I18n.t("iugu.verified")
      - else
        = link_to I18n.t("iugu.not_verified"), account_domains_instructions_path(:account_id => @account.id, :domain_id => domain.id)

      - if current_user.is?(:owner, @account)
        |
        = link_to I18n.t("iugu.remove"), account_domains_destroy_path(:account_id => @account.id, :domain_id => domain.id), :method => :delete



Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
iugusdk-1.0.0.alpha.1 app/views/iugu/account_domains/index.html.haml