From cd1682a02d047ec26e255d789212abf9154a6fff Mon Sep 17 00:00:00 2001 From: lettergram Date: Sat, 25 Mar 2023 15:50:36 -0500 Subject: [PATCH] improved org pages --- app/views/organizations/show.html.erb | 71 ++++++++++++++++++--------- 1 file changed, 48 insertions(+), 23 deletions(-) diff --git a/app/views/organizations/show.html.erb b/app/views/organizations/show.html.erb index 0a41fb6..b9d049e 100644 --- a/app/views/organizations/show.html.erb +++ b/app/views/organizations/show.html.erb @@ -1,18 +1,21 @@ -
+
+

+ <%= @organization.name %> +

+

+ <%= image_tag @organization.logo_link, class: "splashlogo" %> +

+

+ <%= @organization.description.html_safe %> +

+
-

- Name: - <%= @organization.name %>
- Description: - <%= @organization.description %> -

- -

- Approvals required: - <%= @organization.approvals_required %> -

- +
+
+
+
+

Associated Users: -> <%= link_to "Invite New User", new_user_path %> @@ -22,29 +25,51 @@

  • <% if user.org_admin %> Org Admin - + <% else %> + Org User <% end %> - <%= user.name %>, <%= user.email %> <% if current_user.org_admin or current_user.admin %> - - - <%= link_to "Remove", remove_user_from_org_path( + <%= link_to "Remove User", remove_user_from_org_path( user_id: user.id, id: @organization.id) %> - +
    <% end %> + <%= user.name %> +
    <%= user.email %>
  • <% end %>

    +
    +

    +

    + <% if @organization.approvals_required %> + Approval Required to Send Letters + <% else %> + Approvals NOT Required to Send Letters + <% end %> +
    + <%= link_to "Review Letters", posts_path %>
    + <%= link_to "Review Faxes", faxes_path %> +
    +

    +
    +
    +
    + <% if current_user.org_admin or current_user.admin %> + <%= link_to 'Edit Organization Settings', edit_organization_path(@organization) %> + <% end %> +
    +
    - <% if current_user.org_admin or current_user.admin %> - <%= link_to 'Edit Organization Settings', edit_organization_path(@organization) %> - <% end %> -
    -
    -
    +
    +
    +

    Statistics

    +
    +