frenzy/lib/frenzy_web/templates/pipeline/new.html.eex

28 lines
985 B
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, 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, 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 %>