debt-manager/app/views/bubbles/shared/_form.html.erb

21 lines
405 B
Plaintext
Raw Normal View History

<%= 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 %>