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
+29
-46
No files matched your search
@@ -1,60 +1,44 @@
|
|||||||
<div class="row">
|
<%= form_for @customer do |f| %>
|
||||||
<div class="span6 columns">
|
<%= error_messages_for 'customer' %>
|
||||||
<fieldset>
|
|
||||||
|
|
||||||
<%= form_for @customer do |f| %>
|
<div class="box tabular">
|
||||||
|
|
||||||
<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="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>
|
<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,
|
<%= f.text_area :notes,
|
||||||
rows: 8,
|
rows: 8,
|
||||||
class: 'wiki-edit',
|
class: 'wiki-edit',
|
||||||
style: 'width: 95%;',
|
style: 'width: 99%;',
|
||||||
id: 'customer_notes' %>
|
id: 'customer_notes' %>
|
||||||
<% unless local_assigns[:hide_toolbar] %>
|
<% unless local_assigns[:hide_toolbar] %>
|
||||||
<%= wikitoolbar_for 'customer_notes' %>
|
<%= wikitoolbar_for 'customer_notes' %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<% unless local_assigns[:hide_submit] %>
|
<% unless local_assigns[:hide_submit] %>
|
||||||
<div class="actions">
|
<p class="buttons">
|
||||||
<%= f.submit %>
|
<%= submit_tag t(:button_save) %>
|
||||||
</div>
|
</p>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
</fieldset>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@@ -1,3 +1,2 @@
|
|||||||
<h2><%=t(:label_new_customer)%></h2>
|
<h2><%=t(:label_new_customer)%></h2>
|
||||||
<br/>
|
|
||||||
<%= render partial: 'customers/form' %>
|
<%= render partial: 'customers/form' %>
|
||||||
Reference in new issue
Block a user