<% # encoding: utf-8 %> <% content_for :page_specific_css do %> <%= stylesheet_link_tag "lib/main-forms" %> <%= stylesheet_link_tag "lib/fileupload" %> <%= stylesheet_link_tag "lib/main-list" %> <% end %> <% content_for :page_specific_javascript do %> <%= javascript_include_tag "lib/bootstrap-fileupload" %> <%= javascript_include_tag "lib/file-type" %> <%= javascript_include_tag "lib/module-area" %> <% end %>
<%= f.select :lab, Lab.all.map{|lab| [lab.lab_title,lab.id.to_s]}, :selected => (@property_item.lab.id.to_s rescue nil) %>
<%= f.select :member_profile, MemberProfile.all.map{|mp| ["#{mp.first_name} #{mp.last_name}",mp.id.to_s]}, :selected => (@property_item.member_profile.id.to_s rescue nil) %>
<%= f.text_field :phone_number ,class: "input-block-level",value: (@property_item.phone_number rescue nil) %>
<%= f.text_field :price ,class: "input-block-level",value: (@property_item.price rescue nil) %>
<%= select_category(f, @module_app) %>
<%= f.text_field :item_id ,class: "input-block-level",value: (@property_item.item_id rescue nil) %>
<%= f.date_field :item_date , class: "input-block-level",value: (@property_item.item_date rescue nil) %>
<%= select_tags(f, @module_app) %>
<% if @property_item.image.file %> <%= image_tag @property_item.image %> <% else %> <% end %>
<%= t(:select_image) %> <%= t(:change) %> <%= f.file_field :image %> <%= t(:cancel) %>
<% @site_in_use_locales.each_with_index do |locale, i| %>
">
<%= f.fields_for :title_translations do |f| %> <%= f.text_field locale, class: "input-block-level", placeholder: t(:title), value: (@property_item.title_translations[locale] rescue nil)%> <% end %>
<%= f.fields_for :description_translations do |f| %> <%= f.text_area locale, class: "input-block-level",placeholder: t("property.description"),value: (@property_item.description_translations[locale] rescue nil) %> <% end %>
<% end %>
<%= f.submit t('submit'), class: 'btn btn-primary' %> Cancel
<% content_for :page_specific_javascript do %> <% end %>