| <%= gettext("Name") %> | <%= gettext("Position") %> | <%= gettext("Radius") %> | |
|---|---|---|---|
| <%= geofence.name %> | <%= geofence.latitude %>, <%= geofence.longitude %> | <%= case @unit_of_length do :ft -> geofence.radius |> Convert.m_to_ft() |> round() :m -> geofence.radius |> round() end %> <%= @unit_of_length %> |
<%= live_redirect raw(""), to: Routes.live_path(@socket, TeslaMateWeb.GeoFenceLive.Form, geofence, []), class: "button is-info is-small is-inverted is-light" %> <%= link raw(""), to: "#", phx_hook: "ConfirmGeoFenceDeletion", data: [ id: geofence.id, msg: gettext("Delete '%{geo_fence}'?", geo_fence: geofence.name) ], type: "button", id: "delete_#{geofence.id}", class: "button is-danger is-small is-inverted is-light" %> |