show.html.erb 1011 B

1234567891011121314151617181920212223242526272829303132
  1. <% content_for :subnav_items do %>
  2. <%= render 'subnav_item', link_text: 'Accounts', destination_path: accounts_path if current_account_is_admin %>
  3. <%= render 'subnav_item', link_text: @account.name, destination_path: account_path(@account) %>
  4. <% end %>
  5. <%= generate_notice notice %>
  6. <%= generate_error flash[:error] %>
  7. <%= generate_errors @account, "prohibited this account from being saved:" %>
  8. <%= render "accounts/admin_account_control",
  9. record: @account,
  10. model_class: Account if current_account.is_admin %>
  11. <%= generate_edit_columns @account, Account,
  12. "Account Settings",
  13. [:name, :email, :account_number, :company, :first_name, :last_name, :time_zone],
  14. "Update Account"
  15. %>
  16. <%= generate_edit_columns @account, Account,
  17. "Contact Info",
  18. [:phone, :contact2, :contact3, :contact4, nil, nil],
  19. "Update Contact Info"
  20. %>
  21. <%= generate_edit_columns @account, Account,
  22. "Update Password",
  23. [:password, :password_confirmation, nil],
  24. "Update Password"
  25. %>