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

13 lines
460 B
Elixir

<%= form_for @changeset, Routes.group_path(@conn, :create), fn form -> %>
<div class="form-group row">
<label for="title" class="col-sm-2 col-form-label">Title</label>
<div class="col-sm-10">
<%= text_input form, :title, placeholder: "My New Group", class: "form-control" %>
</div>
</div>
<div class="form-group row">
<div class="col-sm-10">
<%= submit "Create Group", class: "btn btn-primary" %>
</div>
</div>
<% end %>