2019-11-09 18:21:45 +00:00
|
|
|
<h1>Edit Feed</h1>
|
2019-07-06 02:00:18 +00:00
|
|
|
|
2019-11-09 03:27:46 +00:00
|
|
|
<%= form_for @changeset, Routes.feed_path(@conn, :update, @feed.id), fn f -> %>
|
|
|
|
<div class="form-group row">
|
2020-06-01 02:48:04 +00:00
|
|
|
<label class="col-sm-2 col-form-label" for="refresh_frequency">Refresh Frequency</label>
|
2019-11-09 03:27:46 +00:00
|
|
|
<div class="col-sm-10">
|
2020-06-01 02:48:04 +00:00
|
|
|
<%= select f, :refresh_frequency, @refresh_frequencies, class: "custom-select" %>
|
2019-11-09 03:27:46 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group row">
|
2020-06-01 02:48:04 +00:00
|
|
|
<label class="col-sm-2 col-form-label" for="pipeline_id">Pipeline ID</label>
|
2019-11-09 03:27:46 +00:00
|
|
|
<div class="col-sm-10">
|
2020-06-01 02:48:04 +00:00
|
|
|
<%= select f, :pipeline_id, @pipelines, class: "custom-select" %>
|
2019-11-09 03:27:46 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-06-01 02:48:04 +00:00
|
|
|
<%= if @feed.pipeline_id do %>
|
|
|
|
<div class="form-group row">
|
|
|
|
<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-09 03:27:46 +00:00
|
|
|
<% end %>
|
|
|
|
<div class="form-group row">
|
|
|
|
<div class="col-sm-10">
|
|
|
|
<%= submit "Update Feed", class: "btn btn-primary" %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|