<%= csrf_meta_tag %> <% property = @booking.property %>

<%= property.title %>

<% if @booking.recurring %> <% end %> <% fields_name = ["organization" ,"person_in_charge" , "tel_of_person_in_charge" , "department" , "contact_person" , "tel_of_contact_person" , "mobile_phone_of_contact_person" , "contact_person_Email" , "contact_person_department"] %> <% fields_name.each do |field_name| %> <% if(property[field_name]["enable"] == "1" rescue false) %> <% end %> <% end %> <% @booking.p_hire_field_values.each do |v| %> <% field_info = v.get_field_value rescue {} %> <% if field_info["title"].present? && !field_info["value"].nil? && !field_info["hint"] %> <% end%> <% end%>
<%= t("property_hire.hiring_person_name") %> <%= @booking.hirer_name %>
<%= t("property_hire.hiring_person_number") %> <%= @booking.hiring_person_number %>
<%= t("property_hire.hiring_person_email") %> <%= @booking.hiring_person_email %>
<%= t("property_hire.period") %> <%= @booking.period %>
<%= t("property_hire.recurring_interval") %> <%= @booking.recurring_interval %>
<%= t("property_hire.recurring_end_date") %> <%= @booking.recurring_end_date.strftime("%y-%m-%d %H:%M") %>
<%= t("property_hire.reason_for_hire") %> <%= @booking.reason_for_hire %>
<%= t("property_hire.note_for_hire") %> <%= @booking.note_for_hire.html_safe %>
<%= property.custom_text(field_name,"name") %> <%= @booking[field_name].to_s %>
<%=field_info["title"]%>:  <%=field_info["value"]%>
<%= t("property_hire.passed") %> <% if @booking.passed %> Yes <% else %> No <% end %>
Back <% if can_edit_or_delete?(@booking.property) %> <%= t("property_hire.edit") %> <% if @booking.passed %> " class="btn btn-warning"><%= t("property_hire.reject") %> <% else %> " class="btn btn-success"><%= t("property_hire.accept") %> <% end %> <%= t("property_hire.delete") %> <% end %>