Initial commit: there's still tons of base Phoenix boilerplate to remove, but the...
[tech-radar-editor.git] / web / templates / radar_data_point / form.html.eex~
1 <%= form_for @changeset, @action, fn f -> %>
2 <%= if @changeset.action do %>
3 <div class="alert alert-danger">
4 <p>Oops, something went wrong! Please check the errors below.</p>
5 </div>
6 <% end %>
7
8 <div class="form-group">
9 <%= label f, :quadrant, class: "control-label" %>
10 <%= select f, :quadrant, ["Tool": 1, "Technique": 2, "Platform": 3, "Language": 4], class: "form-control" %>
11 <%= error_tag f, :quadrant %>
12 </div>
13
14 <div class="form-group">
15 <%= label f, :cycle, class: "control-label" %>
16 <%= select f, :cycle, ["Adapt": 1, "Trial": 2, "Assess": 3, "Hold": 4], class: "form-control" %>
17 <%= error_tag f, :cycle %>
18 </div>
19
20 <div class="form-group">
21 <%= label f, :is_new, class: "control-label" %>
22 <%= checkbox f, :is_new, class: "form-control" %>
23 <%= error_tag f, :is_new %>
24 </div>
25
26 <div class="form-group">
27 <%= label f, :name, class: "control-label" %>
28 <%= text_input f, :name, class: "form-control" %>
29 <%= error_tag f, :name %>
30 </div>
31
32 <div class="form-group">
33 <%= label f, :description, class: "control-label" %>
34 <%= text_input f, :description, class: "form-control" %>
35 <%= error_tag f, :description %>
36 </div>
37
38 <div class="form-group">
39 <%= submit "Submit", class: "btn btn-primary" %>
40 </div>
41 <% end %>