Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix should see all values in an application bug

  • Loading branch information...
commit 9f3f731e0b13759996bb6ca6ed39f07121d7770a 1 parent 02b1ed5
@lucapette lucapette authored
View
29 app/views/admin/organizations/show.html.erb
@@ -55,28 +55,19 @@
<th>Mobile e-mail</th>
<th>Office Phone</th>
<th>Mobile Phone</th>
+ <th>Executive</th>
</thead>
<tbody>
- <% if @organization.primary_organization_administrator %>
+ <% for administrator in @organization.organization_admins %>
<tr>
- <td><%= @organization.primary_organization_administrator.role %></td>
- <td><%= @organization.primary_organization_administrator.name %></td>
- <td><%= @organization.primary_organization_administrator.title %></td>
- <td><%= @organization.primary_organization_administrator.email %></td>
- <td><%= @organization.primary_organization_administrator.mobile_email %></td>
- <td><%= @organization.primary_organization_administrator.office_phone %></td>
- <td><%= @organization.primary_organization_administrator.mobile_phone %></td>
- </tr>
- <% end %>
- <% if @organization.secondary_organization_administrator %>
- <tr>
- <td><%= @organization.secondary_organization_administrator.role %></td>
- <td><%= @organization.secondary_organization_administrator.name %></td>
- <td><%= @organization.secondary_organization_administrator.title %></td>
- <td><%= @organization.secondary_organization_administrator.email %></td>
- <td><%= @organization.secondary_organization_administrator.mobile_email %></td>
- <td><%= @organization.secondary_organization_administrator.office_phone %></td>
- <td><%= @organization.secondary_organization_administrator.mobile_phone %></td>
+ <td><%= administrator.role %></td>
+ <td><%= administrator.name %></td>
+ <td><%= administrator.title %></td>
+ <td><%= administrator.email %></td>
+ <td><%= administrator.mobile_email %></td>
+ <td><%= administrator.office_phone %></td>
+ <td><%= administrator.mobile_phone %></td>
+ <td><%= administrator.executive ? 'Yes' : 'No' %></td>
</tr>
<% end %>
</tbody>
View
5 features/masasx_clerk.feature
@@ -57,8 +57,8 @@ Feature: MasasxClerk should be able to manage the entire system
Scenario: MasasxClerk should be able to view the applicant's submitted primary contact details
Given an organization pending approval exists with a name of "Organization Name"
And the following primary contact for the organization "Organization Name" exists:
- | name | email | title | mobile_email | office_phone | mobile_phone |
- | Ops Manager | someguy@example.com | Mister | mobile@example.com | 555-42-42-42 | 555-24-24-24 |
+ | name | email | title | mobile_email | office_phone | mobile_phone | executive |
+ | Ops Manager | someguy@example.com | Mister | mobile@example.com | 555-42-42-42 | 555-24-24-24 | true |
And I am on the MasasxClerk admin dashboard page
And I press "Review Pending Applications"
When I press "View"
@@ -68,6 +68,7 @@ Feature: MasasxClerk should be able to manage the entire system
And I should see "mobile@example.com"
And I should see "555-42-42-42"
And I should see "555-24-24-24"
+ And I should see "Yes"
Scenario: MasasxClerk should be able to view the applicant's submitted secondary contact details
Given an organization pending approval exists with a name of "Organization Name"
Please sign in to comment.
Something went wrong with that request. Please try again.