Refactor customer controller and form to enhance error handling and conditional rendering

This commit is contained in:
2026-08-24 20:17:21 -04:00
parent 8ae82f1423
commit 9dc4b79355
2 changed files with 43 additions and 22 deletions
+17 -13
View File
@@ -32,23 +32,27 @@
</div>
</div>
<div class="clearfix">
<%=t(:field_notes)%>:
<div class="clearfix">
<%= t(:field_notes) %>:
<div class="input">
<p>
<%= f.text_area :notes,
rows: 8,
class: 'wiki-edit',
style: 'width: 95%;',
id: 'customer_appointment_description' %>
<%= wikitoolbar_for 'customer_appointment_description' %>
</p>
<p>
<%= f.text_area :notes,
rows: 8,
class: 'wiki-edit',
style: 'width: 95%;',
id: 'customer_notes' %>
<% unless local_assigns[:hide_toolbar] %>
<%= wikitoolbar_for 'customer_notes' %>
<% end %>
</p>
</div>
</div>
<div class="actions">
<%= f.submit %>
</div>
<% unless local_assigns[:hide_submit] %>
<div class="actions">
<%= f.submit %>
</div>
<% end %>
<% end %>
</fieldset>