2023-11-01 20:54:06 +01:00
|
|
|
<%= form_for bubble, url: bubble.persisted? ? bubble_path(bubble) : bubbles_path do |f| %>
|
|
|
|
|
2023-12-31 18:11:17 +01:00
|
|
|
<div>
|
2023-11-01 20:54:06 +01:00
|
|
|
<%= f.label :name, "Nom" %>
|
|
|
|
<%= f.text_field :name, required: true %>
|
2023-12-31 18:11:17 +01:00
|
|
|
</div>
|
2023-11-01 20:54:06 +01:00
|
|
|
|
2023-12-31 18:11:17 +01:00
|
|
|
<div>
|
2023-11-01 20:54:06 +01:00
|
|
|
<%= f.label :description, "Description" %>
|
|
|
|
<%= f.text_area :description %>
|
2023-12-31 18:11:17 +01:00
|
|
|
</div>
|
2023-11-01 20:54:06 +01:00
|
|
|
|
2023-12-31 18:11:17 +01:00
|
|
|
<div>
|
2023-11-01 20:54:06 +01:00
|
|
|
<%= f.label :color, "Couleur" %>
|
|
|
|
<%= f.color_field :color %>
|
2023-12-31 18:11:17 +01:00
|
|
|
</div>
|
2023-11-01 20:54:06 +01:00
|
|
|
|
2023-12-31 18:11:17 +01:00
|
|
|
<div>
|
|
|
|
<%= f.label :owner_id, "Administrateur" %>
|
|
|
|
<%= f.select :owner_id, User.all.collect {|u| [ u.email, u.id ] }, selected: bubble.owner_id || current_user.id %>
|
|
|
|
</div>
|
2023-11-01 20:54:06 +01:00
|
|
|
|
2023-12-31 18:11:17 +01:00
|
|
|
<%= f.submit "Sauvegarder" %>
|
2023-11-01 20:54:06 +01:00
|
|
|
|
|
|
|
<% end %>
|