afimb/chouette2

View on GitHub
app/views/companies/_form.erb

Summary

Maintainability
Test Coverage
<%= semantic_form_for [@referential, @company] do |form| %>
  <%= form.inputs do %>   
    <%= form.input :name, :input_html => {  :title => t("formtastic.titles#{format_restriction_for_locales(@referential)}.company.name") } %>
    <%= form.input :short_name %>
    <%= form.input :organizational_unit %>
    <%= form.input :operating_department_name %>
    <%= form.input :code %>
    <%= form.input :phone, :as => :phone %>
    <%= form.input :fax, :as => :phone %>
    <%= form.input :email, :as => :email %>              
    <%= form.input :time_zone,  :include_blank => true %>
    <%= form.input :url %>
    <%= form.input :registration_number, :input_html => { :title => t("formtastic.titles#{format_restriction_for_locales(@referential)}.company.registration_number")} %>
    <%= form.input :objectid, :required => !@company.new_record?, :input_html => { :title => t("formtastic.titles#{format_restriction_for_locales(@referential)}.company.objectid")} %>  
  <% end %>

   <%= form.actions do %>
     <%= form.action :submit, :as => :button %>
     <%= form.action :cancel, :as => :link %>
   <% end %>
<% end %>