aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2018-05-03 21:29:30 +0100
committerChristopher Baines <mail@cbaines.net>2018-05-03 21:29:30 +0100
commitf8c5b73939f4ad7ac0c18bb81c6b25da3e4c8ba0 (patch)
tree61e8dbf8c411745e0bdc48eba640a862bd06a1a0
parentf3be2cae65188335f95dbe9a8c892dd8f330aa31 (diff)
downloadgovuk-mini-environment-admin-f8c5b73939f4ad7ac0c18bb81c6b25da3e4c8ba0.tar
govuk-mini-environment-admin-f8c5b73939f4ad7ac0c18bb81c6b25da3e4c8ba0.tar.gz
Display the initial Signon users on the show page
-rw-r--r--app/views/mini_environments/show.html.erb22
1 files changed, 22 insertions, 0 deletions
diff --git a/app/views/mini_environments/show.html.erb b/app/views/mini_environments/show.html.erb
index d380aaf..b7241a8 100644
--- a/app/views/mini_environments/show.html.erb
+++ b/app/views/mini_environments/show.html.erb
@@ -59,6 +59,28 @@ License along with the GOV.UK Mini Environment Admin. If not, see
</div>
</div>
+<h2>Initial Signon Users</h2>
+
+<table class="table table-bordered table-hover">
+ <thead>
+ <tr class="table-header">
+ <th>Name</th>
+ <th>Email Address</th>
+ <th>Role</th>
+ <th>Passphrase</th>
+ </tr>
+ </thead>
+ <tbody>
+ <% @mini_environment.signon_users.each do |user| %>
+ <tr>
+ <% %w[name email role passphrase].each do |field| %>
+ <td><%= user[field] %></td>
+ <% end %>
+ </tr>
+ <% end %>
+ </tbody>
+</table>
+
<h2>Jobs</h2>
<%= render(