mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-11-18 02:20:37 -05:00
Refactor customer form layout for improved readability and structure
This commit is contained in:
1 parent
cf3342bcc5
commit
aacc2d645d
2 files changed
+27
-44
No files matched your search
@@ -1,60 +1,44 @@
|
||||
<div class="row">
|
||||
<div class="span6 columns">
|
||||
<fieldset>
|
||||
|
||||
<%= form_for @customer do |f| %>
|
||||
<%= error_messages_for 'customer' %>
|
||||
|
||||
<div class="clearfix">
|
||||
<%=t(:label_display_name)%>
|
||||
<div class="input">
|
||||
<%= f.text_field :name, required: true, class: "customer-name", autocomplete: "off", data: { autocomplete_url: "/customers/autocomplete" } %>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box tabular">
|
||||
|
||||
<div class="clearfix">
|
||||
<%=t(:label_primary_phone)%>
|
||||
<div class="input">
|
||||
<%= f.telephone_field :primary_phone, autocomplete: "off" %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="clearfix">
|
||||
<%=t(:label_mobile_phone)%>:
|
||||
<div class="input">
|
||||
<%= f.telephone_field :mobile_phone, autocomplete: "off" %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="clearfix">
|
||||
<%=t(:label_email)%>:
|
||||
<div class="input">
|
||||
<%= f.email_field :email, autocomplete: "off" %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="clearfix">
|
||||
<%= t(:field_notes) %>:
|
||||
<div class="input">
|
||||
<p>
|
||||
<%= f.label :name, t(:label_display_name) %>
|
||||
<%= f.text_field :name, required: true, class: "customer-name", autocomplete: "off", data: { autocomplete_url: "/customers/autocomplete" } %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<%= f.label :primary_phone, t(:label_primary_phone) %>
|
||||
<%= f.telephone_field :primary_phone, autocomplete: "off" %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<%= f.label :mobile_phone, t(:label_mobile_phone) %>
|
||||
<%= f.telephone_field :mobile_phone, autocomplete: "off" %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<%= f.label :email, t(:label_email) %>
|
||||
<%= f.email_field :email, autocomplete: "off" %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<%= f.label :notes, t(:field_notes) %>
|
||||
<%= f.text_area :notes,
|
||||
rows: 8,
|
||||
class: 'wiki-edit',
|
||||
style: 'width: 95%;',
|
||||
style: 'width: 99%;',
|
||||
id: 'customer_notes' %>
|
||||
<% unless local_assigns[:hide_toolbar] %>
|
||||
<%= wikitoolbar_for 'customer_notes' %>
|
||||
<% end %>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<% unless local_assigns[:hide_submit] %>
|
||||
<div class="actions">
|
||||
<%= f.submit %>
|
||||
</div>
|
||||
<p class="buttons">
|
||||
<%= submit_tag t(:button_save) %>
|
||||
</p>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,3 +1,2 @@
|
||||
<h2><%=t(:label_new_customer)%></h2>
|
||||
<br/>
|
||||
<%= render partial: 'customers/form' %>
|
||||
Reference in new issue
Block a user