You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
2.0 KiB
51 lines
2.0 KiB
2 years ago
|
<article class="app-log-summary">
|
||
|
<div class="govuk-grid-row">
|
||
|
<div class="govuk-grid-column-one-half">
|
||
|
<header class="app-log-summary__header">
|
||
|
<h2 class="app-log-summary__title">
|
||
2 years ago
|
<%= govuk_link_to sales_log_path(log) do %>
|
||
2 years ago
|
<span class="govuk-visually-hidden">Log </span><%= log.id %>
|
||
|
<% end %>
|
||
|
</h2>
|
||
|
<dl class="app-metadata app-metadata--inline">
|
||
2 years ago
|
<% if log.purchaser_code %>
|
||
2 years ago
|
<div class="app-metadata__item">
|
||
2 years ago
|
<dt class="app-metadata__term">Purchaser</dt>
|
||
|
<dd class="app-metadata__definition"><%= log.purchaser_code %></dd>
|
||
2 years ago
|
</div>
|
||
|
<% end %>
|
||
|
</dl>
|
||
|
</header>
|
||
2 years ago
|
<p class="govuk-body govuk-!-margin-bottom-2">
|
||
|
<% if log.ownership_scheme %>
|
||
|
<%= log.ownership_scheme(uppercase: true) %><br>
|
||
|
<% end %>
|
||
|
<% if log.saledate %>
|
||
|
Sale completed <time datetime="<%= log.saledate.iso8601 %>"><%= log.saledate.to_formatted_s(:govuk_date) %></time>
|
||
|
<% end %>
|
||
|
</p>
|
||
2 years ago
|
<% if current_user.support? || current_user.organisation.has_managing_agents? %>
|
||
2 years ago
|
<dl class="app-metadata">
|
||
|
<% if log.owning_organisation %>
|
||
2 years ago
|
<div class="app-metadata__item">
|
||
|
<dt class="app-metadata__term">Owned by</dt>
|
||
|
<dd class="app-metadata__definition"><%= log.owning_organisation&.name %></dd>
|
||
|
</div>
|
||
2 years ago
|
<% end %>
|
||
|
</dl>
|
||
2 years ago
|
<% end %>
|
||
|
</div>
|
||
|
<footer class="govuk-grid-column-one-half app-log-summary__footer">
|
||
|
<p class="govuk-body govuk-!-margin-bottom-2">
|
||
|
<%= log_status %>
|
||
|
</p>
|
||
|
<p class="govuk-body">
|
||
|
Created <time datetime="<%= log.created_at.iso8601 %>"><%= log.created_at.to_formatted_s(:govuk_date) %></time>
|
||
|
<% if log.created_by %>
|
||
|
<span class="app-log-summary__footer--actor">by <%= log.created_by.name || log.created_by.email %></span>
|
||
|
<% end %>
|
||
|
</p>
|
||
|
</footer>
|
||
|
</div>
|
||
|
</article>
|