debt-manager/app/views/bubbles/shared/_form.html.erb
Louis Vallat a1d2fb9444
feat: added base bubble CRUD
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2023-11-01 20:54:06 +01:00

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