2019-11-09 13:21:45 -05:00
|
|
|
<h1>Edit Feed</h1>
|
2019-07-05 22:00:18 -04:00
|
|
|
|
2019-11-08 22:27:46 -05:00
|
|
|
<%= form_for @changeset, Routes.feed_path(@conn, :update, @feed.id), fn f -> %>
|
2022-09-13 22:25:11 -04:00
|
|
|
<div class="row mb-2">
|
2020-06-01 18:36:15 -04:00
|
|
|
<label class="col-sm-2 col-form-label" for="feed_url">Feed URL</label>
|
|
|
|
<div class="col-sm-10">
|
|
|
|
<%= text_input f, :feed_url, class: "form-control" %>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-09-13 22:25:11 -04:00
|
|
|
<div class="row mb-2">
|
2020-05-31 22:48:04 -04:00
|
|
|
<label class="col-sm-2 col-form-label" for="refresh_frequency">Refresh Frequency</label>
|
2019-11-08 22:27:46 -05:00
|
|
|
<div class="col-sm-10">
|
2022-09-13 22:25:11 -04:00
|
|
|
<%= select f, :refresh_frequency, @refresh_frequencies, class: "form-select" %>
|
2019-11-08 22:27:46 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-09-13 22:25:11 -04:00
|
|
|
<div class="row mb-2">
|
2020-05-31 22:48:04 -04:00
|
|
|
<label class="col-sm-2 col-form-label" for="pipeline_id">Pipeline ID</label>
|
2019-11-08 22:27:46 -05:00
|
|
|
<div class="col-sm-10">
|
2022-09-13 22:25:11 -04:00
|
|
|
<%= select f, :pipeline_id, @pipelines, class: "form-select" %>
|
2019-11-08 22:27:46 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-05-31 22:48:04 -04:00
|
|
|
<%= if @feed.pipeline_id do %>
|
2022-09-13 22:25:11 -04:00
|
|
|
<div class="row mb-2">
|
2020-05-31 22:48:04 -04:00
|
|
|
<div class="col-sm-10">
|
|
|
|
<a href="<%= Routes.pipeline_path(@conn, :show, @feed.pipeline_id) %>" class="col-sm-2">View Pipeline</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-11-08 22:27:46 -05:00
|
|
|
<% end %>
|
2022-09-13 22:25:11 -04:00
|
|
|
<div class="row mb-2">
|
2019-11-08 22:27:46 -05:00
|
|
|
<div class="col-sm-10">
|
|
|
|
<%= submit "Update Feed", class: "btn btn-primary" %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|