|
|
@@ -80,11 +80,11 @@ defmodule VaccinsWeb.LocationComponent do
|
|
|
<td><%= link "Résa.", to: @location.booking_page %></td>
|
|
|
<td><%= render_slots_before(assigns) %></td>
|
|
|
<td><%= render_slots_after(assigns) %></td>
|
|
|
- <td><%= render_action_list(assigns) %></td>
|
|
|
+ <%= if @is_local? do %><td><%= render_action_list(assigns) %></td><% end %>
|
|
|
"""
|
|
|
end
|
|
|
|
|
|
- def render_table_header(),
|
|
|
+ def render_table_header(is_local?),
|
|
|
do: ~E"""
|
|
|
<th>Nom</th>
|
|
|
<th>Lieu</th>
|
|
|
@@ -93,7 +93,7 @@ defmodule VaccinsWeb.LocationComponent do
|
|
|
<th>Lien résa</th>
|
|
|
<th>Slots avant 24h</th>
|
|
|
<th>Slots après 24h</th>
|
|
|
- <th>Actions</th>
|
|
|
+ <%= if is_local? do %><th>Actions</th><% end %>
|
|
|
"""
|
|
|
|
|
|
defp render_status(assigns),
|
|
|
@@ -121,9 +121,7 @@ defmodule VaccinsWeb.LocationComponent do
|
|
|
<ul class="actions-list">
|
|
|
<li><button phx-click="trigger_query" phx-target="<%= @myself %>">Trigger</button></li>
|
|
|
<li><a href="<%= @location |> to_json_query %>"><button>Debug</button></a></li>
|
|
|
- <%= if @is_local? do %>
|
|
|
- <li><button class="alert-danger" phx-click="delete" phx-target="<%= @myself %>" data-confirm="Etes-vous sur?">Delete</button></li>
|
|
|
- <% end %>
|
|
|
+ <li><button class="alert-danger" phx-click="delete" phx-target="<%= @myself %>" data-confirm="Etes-vous sur?">Delete</button></li>
|
|
|
</ul>
|
|
|
"""
|
|
|
|