Added links to users for amin
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
<p class="my-3">
|
||||
<strong class="mb-1 font-medium">Operator ID:</strong>
|
||||
<% if job.operator %>
|
||||
<%= job.operator_id %> - <%= job.operator.name %> (<%= job.operator.email %>)
|
||||
<%= link_to_if allowed_to?(:show, job.operator, namespace: :Admin), "#{job.operatorr_id} - #{job.operator.name} (#{job.operator.email})", admin_user_path(job.operator) %>
|
||||
<% else %>
|
||||
-
|
||||
<% end %>
|
||||
@@ -14,18 +14,22 @@
|
||||
<p class="my-3">
|
||||
<strong class="mb-1 font-medium">Costumer ID:</strong>
|
||||
<% if job.costumer %>
|
||||
<%= job.costumer_id %> - <%= job.costumer.name %> (<%= job.costumer.email %>)
|
||||
<%= link_to_if allowed_to?(:show, job.costumer, namespace: :Admin), "#{job.costumer_id} - #{job.costumer.name} (#{job.costumer.email})", admin_user_path(job.costumer) %>
|
||||
<% else %>
|
||||
-
|
||||
<% end %>
|
||||
</p>
|
||||
<p class="my-3">
|
||||
<strong class="mb-1 font-medium">Betreiber:</strong>
|
||||
<%= "#{job.operator_firstname} #{job.operator_lastname}" %>
|
||||
<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) %>
|
||||
</p>
|
||||
<p class="my-3">
|
||||
<strong class="mb-1 font-medium">Erstellt durch Opertator:</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">
|
||||
<strong class="mb-1 font-medium">Auftraggeber:</strong>
|
||||
<%= "#{job.costumer_firstname} #{job.costumer_lastname}" %>
|
||||
<%= link_to_if job.costumer && !job.created_by_operator && allowed_to?(:show? , job.costumer, namespace: :Admin), "#{job.costumer_firstname} #{job.costumer_lastname}", admin_user_path(job.costumer) %>
|
||||
</p>
|
||||
<p class="my-3">
|
||||
<strong class="mb-1 font-medium">Aktueller Status:</strong>
|
||||
|
||||
Reference in New Issue
Block a user