Fixed operator/job#show without customer
This commit is contained in:
@@ -37,18 +37,18 @@
|
||||
</p>
|
||||
<p class="my-3">
|
||||
<strong class="mb-1 font-medium">Kunde:</strong>
|
||||
<%= link_to_if job.costumer && allowed_to?(:show? , job.costumer, namespace: :Admin), "#{job.costumer_firstname} #{job.costumer_lastname}", admin_user_path(job.costumer) %>
|
||||
<%= link_to_if job.costumer && allowed_to?(:show? , job.costumer, namespace: :Admin), "#{job.costumer_firstname} #{job.costumer_lastname}", ( job.costumer ? admin_user_path(job.costumer) : "" ) %>
|
||||
</p>
|
||||
<p class="my-3">
|
||||
<strong class="mb-1 font-medium">Opertator:</strong>
|
||||
<%= link_to_if job.operator && allowed_to?(:show, job.operator, namespace: :Admin), "#{job.operator_firstname} #{job.operator_lastname}", admin_users_path(job.operator) %>
|
||||
<strong class="mb-1 font-medium">Operator:</strong>
|
||||
<%= link_to_if job.operator && allowed_to?(:show, job.operator, namespace: :Admin), "#{job.operator_firstname} #{job.operator_lastname}", ( job.operator ? admin_users_path(job.operator) : "" )%>
|
||||
</p>
|
||||
<p class="my-3">
|
||||
<strong class="mb-1 font-medium">Kassierer:</strong>
|
||||
<%= link_to_if job.cashier && allowed_to?(:show, job.cashier, namespace: :Admin), "#{job.cashier_firstname} #{job.cashier_lastname}", admin_users_path(job.cashier) %>
|
||||
<%= link_to_if job.cashier && allowed_to?(:show, job.cashier, namespace: :Admin), "#{job.cashier_firstname} #{job.cashier_lastname}", ( job.cashier ? admin_users_path(job.cashier) : "" ) %>
|
||||
</p>
|
||||
<p class="my-3">
|
||||
<strong class="mb-1 font-medium">Erstellt durch Opertator:</strong>
|
||||
<strong class="mb-1 font-medium">Erstellt durch Operator:</strong>
|
||||
<%= icon bool_icon(job.created_by_operator), class: "icon #{job.created_by_operator ? "text-green-600" : "text-red-600"}" %>
|
||||
</p>
|
||||
<p class="my-3">
|
||||
|
||||
Reference in New Issue
Block a user