|
|
@ -7,34 +7,34 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="govuk-grid-row"> |
|
|
|
<div class="govuk-grid-row"> |
|
|
|
<div class="app-data-box-group"> |
|
|
|
<div class="app-data-box-group"> |
|
|
|
<% if @current_user.support? || (@current_user.data_coordinator? && @current_user.sales_logs.present?)%> |
|
|
|
<% if @current_user.support? || (@current_user.data_coordinator? && @current_user.sales_logs.present?) %> |
|
|
|
<div class="app-data-box-group-one-third"> |
|
|
|
<div class="app-data-box-group-one-third"> |
|
|
|
<div class="app-data-box-one-third"> |
|
|
|
<div class="app-data-box-one-third"> |
|
|
|
<span><%= render partial: "home/data_box", locals: {type: "lettings"} %></span> |
|
|
|
<span><%= render partial: "home/data_box", locals: { type: "lettings" } %></span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="app-data-box-one-third"> |
|
|
|
<div class="app-data-box-one-third"> |
|
|
|
<span><%= render partial: "home/data_box", locals: {type: "sales"} %></span> |
|
|
|
<span><%= render partial: "home/data_box", locals: { type: "sales" } %></span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="app-data-box-one-third"> |
|
|
|
<div class="app-data-box-one-third"> |
|
|
|
<span><%= render partial: "home/data_box", locals: {type: "schemes"} %></span> |
|
|
|
<span><%= render partial: "home/data_box", locals: { type: "schemes" } %></span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<% else %> |
|
|
|
<% else %> |
|
|
|
<div class="app-data-box-group-one-half"> |
|
|
|
<div class="app-data-box-group-one-half"> |
|
|
|
<div class="app-data-box-one-half"> |
|
|
|
<div class="app-data-box-one-half"> |
|
|
|
<span><%= render partial: "home/data_box", locals: {type: "lettings"} %></span> |
|
|
|
<span><%= render partial: "home/data_box", locals: { type: "lettings" } %></span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<% if @current_user.data_coordinator? %> |
|
|
|
<% if @current_user.data_coordinator? %> |
|
|
|
<div class="app-data-box-one-half"> |
|
|
|
<div class="app-data-box-one-half"> |
|
|
|
<span><%= render partial: "home/data_box", locals: {type: "schemes"} %></span> |
|
|
|
<span><%= render partial: "home/data_box", locals: { type: "schemes" } %></span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<% elsif @current_user.sales_logs.present? %> |
|
|
|
<% elsif @current_user.sales_logs.present? %> |
|
|
|
<div class="app-data-box-one-half"> |
|
|
|
<div class="app-data-box-one-half"> |
|
|
|
<span><%= render partial: "home/data_box", locals: {type: "sales"} %></span> |
|
|
|
<span><%= render partial: "home/data_box", locals: { type: "sales" } %></span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<% else %> |
|
|
|
<% else %> |
|
|
|
<div class="app-data-box-one-half"> |
|
|
|
<div class="app-data-box-one-half"> |
|
|
|
<span><%= render partial: "home/data_box", locals: {type: "misc"} %></span> |
|
|
|
<span><%= render partial: "home/data_box", locals: { type: "misc" } %></span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<% end %> |
|
|
|
<% end %> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|