Skip to content

Commit

Permalink
Add conditional for planning officer
Browse files Browse the repository at this point in the history
  • Loading branch information
rebeccaoneill committed Jan 24, 2025
1 parent f7437e0 commit b1b48a5
Showing 1 changed file with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,16 @@
</div>
<div class="govuk-grid-column-one-third">
<p class="govuk-body-s govuk-!-margin-bottom-2"><strong>Planning Officer</strong></p>
<p class="govuk-body-s govuk-!-margin-bottom-2"> <%= @planning_application.user.name %></p>
<p class="govuk-body-s govuk-!-margin-bottom-2"><%= @planning_application.user.mobile_number %></p>
<%= mail_to @planning_application.user.email, @planning_application.user.email, class: "govuk-link govuk-link--no-visited-state govuk-!-margin-top-1" %>
<% if @planning_application.user %>
<p class="govuk-body-s govuk-!-margin-bottom-2"> <%= @planning_application.user.name %></p>
<p class="govuk-body-s govuk-!-margin-bottom-2"><%= @planning_application.user.mobile_number %></p>
<%= mail_to @planning_application.user.email, @planning_application.user.email, class: "govuk-link govuk-link--no-visited-state govuk-!-margin-top-1" %>
<% else %>
<p class="govuk-body-s govuk-!-margin-bottom-2"> No planning officer assigned</p>
<% end %>
</div>

</div>

<div class="govuk-heading-s">
<h2 id="comments-form">Submit a comment</h2>
</div>
<div class="govuk-heading-s">
<h2 id="comments-form">Submit a comment</h2>
</div>

0 comments on commit b1b48a5

Please sign in to comment.