2 <%= form_for @changeset, @action, fn f -> %>
3 <%= if @changeset.action do %>
4 <div class="alert alert-danger">
5 <p>Oops, something went wrong! Please check the errors below.</p>
9 <div class="form-group">
10 <%= label f, :quadrant, class: "control-label" %>
11 <%= select f, :quadrant, Enum.with_index(TechRadarEditor.RadarDataPoint.quadrants,1), class: "form-control" %>
12 <%= error_tag f, :quadrant %>
15 <div class="form-group">
16 <%= label f, :cycle, class: "control-label" %>
17 <%= select f, :cycle, Enum.with_index(TechRadarEditor.RadarDataPoint.cycles,1), class: "form-control" %>
18 <%= error_tag f, :cycle %>
21 <div class="form-group">
22 <%= label f, :is_new, class: "control-label" %>
23 <%= checkbox f, :is_new, class: "form-control" %>
24 <%= error_tag f, :is_new %>
27 <div class="form-group">
28 <%= label f, :name, class: "control-label" %>
29 <%= text_input f, :name, class: "form-control" %>
30 <%= error_tag f, :name %>
33 <div class="form-group">
34 <%= label f, :description, class: "control-label" %>
35 <%= text_input f, :description, class: "form-control" %>
36 <%= error_tag f, :description %>
39 <div class="form-group">
40 <%= submit "Submit", class: "btn btn-primary" %>