12 Added notes and colours to customers
This commit is contained in:
@@ -31,6 +31,18 @@
|
||||
<%= form.text_area :notes, rows: 4, class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %>
|
||||
</div>
|
||||
|
||||
<div class="my-5">
|
||||
<%= form.label :color %>
|
||||
<%= form.select :color,
|
||||
options_for_select([
|
||||
['Green', 'green'],
|
||||
['Yellow', 'yellow'],
|
||||
['Red', 'red']
|
||||
], customer.color),
|
||||
{ prompt: 'Select color' },
|
||||
{ class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" } %>
|
||||
</div>
|
||||
|
||||
<div class="my-5">
|
||||
<%= form.label :email %>
|
||||
<%= form.text_field :email, class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %>
|
||||
|
||||
Reference in New Issue
Block a user