-
- <%= form_for :active, "#", [id: "schedule-#{item.schedule.name}", phx_change: :active, class: "mb-0 form-check form-switch form-check-inline", style: "margin: auto;display: flex;justify-content: center"], fn f -> %>
- <%= hidden_input(f, :name, value: item.schedule.name) %>
- <%= hidden_input(f, :enabled, value: !item.schedule.schedule_opts.enabled) %>
- <%= checkbox(f, :toggle, value: item.schedule.schedule_opts.enabled, class: "form-check-input", role: "switch", title: "disable") %>
- <% end %>
- |
- <%= item.schedule.name %> |
- <%= item.schedule.description %> |
- <%= item.cron %> |
- <%= item.schedule.timezone %> |
- <%= human_time(item.last_run) %> |
- <%= human_time(item.next_run) %> |
- <%= item.schedule.job.queue %> |
- <%= item.schedule.job.class %> |
- <%= inspect(item.schedule.job.args) %> |
- <%= link "Enqueue Now", class: "btn btn-danger btn-sm", to: "#", phx_click: "enqueue_now", phx_value_name: item.schedule.name %> |
-
+
+
+ <%= form_for :active, "#", [id: "schedule-#{item.schedule.name}", phx_change: :active, class: "mb-0 form-check form-switch form-check-inline", style: "margin: auto;display: flex;justify-content: center"], fn f -> %>
+ <%= hidden_input(f, :name, value: item.schedule.name) %>
+ <%= hidden_input(f, :enabled, value: !item.schedule.schedule_opts.enabled) %>
+ <%= checkbox(f, :toggle,
+ value: item.schedule.schedule_opts.enabled,
+ class: "form-check-input",
+ role: "switch",
+ title: "disable"
+ ) %>
+ <% end %>
+ |
+ <%= item.schedule.name %> |
+ <%= item.schedule.description %> |
+ <%= item.cron %> |
+ <%= item.schedule.timezone %> |
+ <%= human_time(item.last_run) %> |
+
+ <%= human_time(item.next_run) %>
+ |
+ <%= item.schedule.job.queue %> |
+ <%= item.schedule.job.class %> |
+ <%= inspect(item.schedule.job.args) %> |
+
+ <%= link("Enqueue Now",
+ class: "btn btn-danger btn-sm",
+ to: "#",
+ phx_click: "enqueue_now",
+ phx_value_name: item.schedule.name
+ ) %>
+ |
+
<% end %>