Initial commit
This commit is contained in:
26
lib/confient_web/templates/assignment/form.html.eex
Normal file
26
lib/confient_web/templates/assignment/form.html.eex
Normal file
@@ -0,0 +1,26 @@
|
||||
<%= 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 %>
|
||||
Reference in New Issue
Block a user