28 lines
1.0 KiB
Elixir
28 lines
1.0 KiB
Elixir
<h2>Feed Pipeline</h2>
|
|
|
|
<%= form_for @changeset, Routes.pipeline_path(@conn, :create, @feed.id), fn f -> %>
|
|
<div class="form-group row">
|
|
<label class="col-sm-2 col-form-label" for="module_name">Module Name</label>
|
|
<div class="col-sm-10">
|
|
<%= text_input f, :module_name, placeholder: "Frenzy.Pipeline.FilterStage", class: "form-control" %>
|
|
</div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<label class="col-sm-2 col-form-label" for="index">Index</label>
|
|
<div class="col-sm-10">
|
|
<%= number_input f, :index, value: "#{@feed.pipeline_stages |> Enum.count()}", class: "form-control" %>
|
|
</div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<label class="col-sm-2 col-form-label" for="options">Options</label>
|
|
<div class="col-sm-10">
|
|
<%= textarea f, :options, value: "{}", class: "form-control", rows: 15, style: "font-family: monospace;" %>
|
|
</div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<div class="col-sm-10">
|
|
<%= submit "Create Stage", class: "btn btn-primary" %>
|
|
</div>
|
|
</div>
|
|
<% end %>
|