Sha256: 81e054ad6c0a8ff02ce9ed5af11f9abe1f698c3389f060b146195d7cf9f96ba2

Contents?: true

Size: 1.96 KB

Versions: 1

Compression:

Stored size: 1.96 KB

Contents

- content_for :title do I18n.t("iugu.account") + " #{@account.id}" end

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

- if current_user.is?(:owner, @account)
  - if flash[:group] == :account_update
    = flash[:notice]

  = simple_form_for @account, :url => account_update_path(:id => @account.id), :method => :put do |f|
    = f.label :name, I18n.t("activerecord.attributes.name")
    = f.text_field :name
    %br
    = f.submit I18n.t("iugu.save")

- if IuguSDK::enable_subscription_features
  %br
  = I18n.t("iugu.plan_name")
  = link_to I18n.t("iugu.change")

- unless IuguSDK::enable_custom_domain == false && IuguSDK::enable_account_alias == false
  %br
  %br
  = I18n.t("iugu.custom_domains")
  - if current_user.is?(:owner, @account) || current_user.is?(:admin, @account)
    = link_to I18n.t("iugu.manage"), account_domains_index_path(@account.id)
  %br
  - if @primary_domain
    = I18n.t("iugu.primary") + ":"
    = @primary_domain.url

- if IuguSDK::enable_multiple_users_per_account
  %br
  %br
  = link_to I18n.t("iugu.users_and_roles"), account_users_index_path(@account.id)

- if IuguSDK::enable_subscription_features
  %br
  %br
  %div
    = link_to I18n.t("iugu.payment_history")


- if IuguSDK::enable_account_api
  - if current_user.is?(:owner, @account)
    %br
    - if flash[:group] == :api_token
      %div
        = flash[:notice]
    %div
      = I18n.t("iugu.api_token")
      = link_to I18n.t("iugu.generate_new_token"), account_generate_new_token_path(@account.id), :method => :post
      %br
      = @account.api_token

- if current_user.is?(:owner, @account)
  %br
  %br
  - unless @account.destroying?
    = link_to I18n.t("iugu.cancel_account"), account_destroy_path(@account.id), :method => :delete
  - else
    - if IuguSDK::delay_account_exclusion > 0
      = link_to I18n.t("iugu.undo"), account_cancel_destruction_path(@account.id), :method => :delete
    - else
      = I18n.t("iugu.account_destruction_in") + @account.destruction_job.run_at.to_s

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
iugusdk-1.0.0.alpha.3 app/views/iugu/settings/account.html.haml