<% 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/module-area" %> <% end %> <%= form_for @settings , :url => settings_admin_property_hires_path, html: {class: "form-horizontal main-forms"} do |f| %>
<% if @saved %>
Settings saved.
<% end %>
<%= f.label :allow_no_logins_user, t("property_hire.allow_no_logins_user"), :class => "control-label muted" %>
<%= f.check_box :allow_no_logins_user %>
<%= f.label :calendar_type, t("property_hire.display_calendar_default"), :class => "control-label muted" %>
<%= f.check_box :calendar_type, {}, "0", "1" %>
<%= f.label :auto_approve, t("property_hire.auto_approve"), :class => "control-label muted" %>
<%= f.check_box :auto_approve %>
<%= f.label :disable_content_page, t("property_hire.disable_content_page"), :class => "control-label muted" %>
<%= f.check_box :disable_content_page %>
<%= f.label :disable_view_calendar_page, t("property_hire.disable_view_calendar_page"), :class => "control-label muted" %>
<%= f.check_box :disable_view_calendar_page %>
<%= f.label :disable_no_logins_view_calendar, t("property_hire.disable_no_logins_view_calendar"), :class => "control-label muted" %>
<%= f.check_box :disable_no_logins_view_calendar %>
<%= f.label :carousel_image_width, t("property_hire.default_carousel_image_width"), :class => "control-label muted" %>
<%= f.text_field :carousel_image_width %>
<%= f.label :default_time_settings, t("property_hire.default_time_settings"), :class => "control-label muted" %> <% default_time_settings = f.object.default_time_settings %> <% setting_count = 0 %>
<% if default_time_settings %> <% default_time_settings.each_with_index do |setting,j| %> <%= f.fields_for :property_day_settings do |f| %> <%= f.fields_for setting_count.to_s, setting do |f| %> <%= render :partial => "time_form", :locals=>{:key=>j,:day=>0,:f=>f} %> <% setting_count += 1 %> <% end %> <% end %> <% end %> <% end %>
<%=t(:add)%>
<%= f.submit t('submit'), class: 'btn btn-primary' %>
<% end %>