21 lines
405 B
Plaintext
21 lines
405 B
Plaintext
<%= form_for bubble, url: bubble.persisted? ? bubble_path(bubble) : bubbles_path do |f| %>
|
|
|
|
<div>
|
|
<%= f.label :name, "Nom" %>
|
|
<%= f.text_field :name, required: true %>
|
|
</div>
|
|
|
|
<div>
|
|
<%= f.label :description, "Description" %>
|
|
<%= f.text_area :description %>
|
|
</div>
|
|
|
|
<div>
|
|
<%= f.label :color, "Couleur" %>
|
|
<%= f.color_field :color %>
|
|
</div>
|
|
|
|
|
|
<%= f.submit "Sauvegarder" %>
|
|
|
|
<% end %> |