27 lines
614 B
Elixir
27 lines
614 B
Elixir
<%= form_for @changeset, @action, fn f -> %>
|
|
<%= if @changeset.action do %>
|
|
<div class="alert alert-danger">
|
|
<p>Oops, quelque chose c'est mal passé, merci de vérifier le formulaire</p>
|
|
</div>
|
|
<% end %>
|
|
|
|
<%= label f, "Classe" %>
|
|
<%= select f, :class_id, @classes %>
|
|
|
|
<%= label f, "Titre" %>
|
|
<%= text_input f, :title %>
|
|
<%= error_tag f, :title %>
|
|
|
|
<%= label f, "Dénomination" %>
|
|
<%= text_input f, :slug %>
|
|
<%= error_tag f, :slug %>
|
|
|
|
<%= label f, "Echéance" %>
|
|
<%= date_select f, :due %>
|
|
<%= error_tag f, :due %>
|
|
|
|
<div>
|
|
<%= submit "Sauvegarder" %>
|
|
</div>
|
|
<% end %>
|