44 lines
1.6 KiB
Plaintext
44 lines
1.6 KiB
Plaintext
<% content_for :page_specific_css do -%>
|
|
<%= stylesheet_link_tag "lib/wrap-nav.css" %>
|
|
<%= stylesheet_link_tag "lib/pageslide.css" %>
|
|
<%= stylesheet_link_tag "lib/main-forms.css" %>
|
|
<%= stylesheet_link_tag "lib/togglebox.css" %>
|
|
<% end -%>
|
|
|
|
<% content_for :page_specific_javascript do -%>
|
|
<%= javascript_include_tag "lib/jquery.tmpl.min.js" %>
|
|
<%= javascript_include_tag "property_hire/property-field-forms.js" %>
|
|
<% end -%>
|
|
<style type="text/css">
|
|
.input-append, .input-prepend{
|
|
font-size: 1em;
|
|
}
|
|
</style>
|
|
<%= form_for @attribute,:url => admin_property_hire_path(@attribute) , :html => { :class=> "form-horizontal main-forms" } do |f| %>
|
|
<% if flash.now[:notice].present? %>
|
|
<%= flash.now[:notice]%>
|
|
<% end %>
|
|
|
|
<h3><%= @attribute.title %></h3>
|
|
<fieldset>
|
|
|
|
<div id="attributes-area" class="input-area">
|
|
<%= render partial: "attribute_field",collection: @attribute.p_hire_fields_enabled.asc(:_id)%>
|
|
</div>
|
|
|
|
<div class="form-actions">
|
|
<button type="button" class="btn btn-success add-attributes"><%= t(:add_attribute_field) %></button>
|
|
<% referer = request.referer rescue nil %>
|
|
<% referer = get_referer_url if referer.blank? || request.host != URI.parse(URI.encode(referer)).host %>
|
|
<input type="hidden" name="referer_url" value="<%= referer %>">
|
|
<%= hidden_field_tag 'id', params[:id] if !params[:id].blank? %>
|
|
<%= f.submit t(:submit),:class=>"btn btn-primary"%>
|
|
<%= link_to t('cancel'), get_go_back, :class=>"btn" %>
|
|
</div>
|
|
</fieldset>
|
|
<% end %>
|
|
|
|
|
|
<% content_for :page_specific_javascript do -%>
|
|
<%= render 'support_member_form_js' %>
|
|
<% end -%> |