19 lines
682 B
Elixir
19 lines
682 B
Elixir
<h1>Edit Pipeline</h1>
|
|
|
|
<%= form_tag Routes.pipeline_path(@conn, :update, @pipeline.id), method: :put do %>
|
|
<div class="form-group row">
|
|
<label class="col-sm-2 col-form-label" for="name">Name</label>
|
|
<div class="col-sm-10">
|
|
<%= text_input :pipeline, :name, value: @name, placeholder: "My New Pipeline", class: "form-control" %>
|
|
</div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<%= textarea :pipeline, :stages, value: @stages_json, class: "form-control", rows: 15, style: "font-family: monospace;" %>
|
|
</div>
|
|
<div class="form-group row">
|
|
<div class="col-sm-10">
|
|
<%= submit "Edit Pipeline", class: "btn btn-primary" %>
|
|
</div>
|
|
</div>
|
|
<% end %>
|