Skip to content

Commit

Permalink
Move status to details section on edit API user page
Browse files Browse the repository at this point in the history
This is a small step towards moving this page to the latest design which
will use the GOV.UK Design System. I'm trying to make small changes to
the page which will make the transition easier while retaining all the
functionality and keeping all the tests passing.

I've used an HTML description list element, because this most closely
resembles the Summary List component [1] that we're planning to use.

c.f. this commit [2].

[1]: https://components.publishing.service.gov.uk/component-guide/summary_list
[2]: 1094739
  • Loading branch information
floehopper committed Dec 12, 2023
1 parent 0d98633 commit 774737c
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion app/views/api_users/edit.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,17 @@

<h1>Edit API User <%= @api_user.name %></h1>

<section>
<h2>API user details</h2>
<dl>
<div>
<dt>Status</dt>
<dd><%= status(@api_user) %></dd>
<dd></dd>
</div>
</dl>
</section>

<section>
<h2>Actions</h2>
<ul>
Expand All @@ -19,7 +30,6 @@
</section>

<p class="suspenders">
User <strong><%= @api_user.status %></strong> &bull;
Created <%= time_ago_in_words(@api_user.created_at) %> ago
</p>

Expand Down

0 comments on commit 774737c

Please sign in to comment.