small fix for change
This commit is contained in:
parent
762a90d50f
commit
d9c5c98a14
|
@ -15,6 +15,12 @@
|
||||||
window.location.href = "<%= "/" + I18n.locale.to_s + url %>";
|
window.location.href = "<%= "/" + I18n.locale.to_s + url %>";
|
||||||
</script>
|
</script>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
<% if current_user.nil? %>
|
||||||
|
<script type="text/javascript">
|
||||||
|
alert("Please login before you hire.");
|
||||||
|
window.location.href = "<%= "/" + I18n.locale.to_s + url %>";
|
||||||
|
</script>
|
||||||
|
<% else %>
|
||||||
<h3><%= property.title %></h3>
|
<h3><%= property.title %></h3>
|
||||||
<% if session["hire-save-msg"].present? %>
|
<% if session["hire-save-msg"].present? %>
|
||||||
<div id="property-unavaialable-alert" class="alert alert-danger" role="alert"><b>Sorry! </b><span> <%= session["hire-save-msg"] %></span></div>
|
<div id="property-unavaialable-alert" class="alert alert-danger" role="alert"><b>Sorry! </b><span> <%= session["hire-save-msg"] %></span></div>
|
||||||
|
@ -96,7 +102,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<div class="col-sm-offset-2 col-sm-10">
|
<div class="col-sm-offset-2 col-sm-10">
|
||||||
<%= f.submit t(:save), :class => "btn btn-primary" %>
|
<%= f.submit t("property_hire.save"), :class => "btn btn-primary" %>
|
||||||
<%= f.hidden_field :property_id, :value => property.id %>
|
<%= f.hidden_field :property_id, :value => property.id %>
|
||||||
<input type="hidden" name="url" value="<%= url %>" />
|
<input type="hidden" name="url" value="<%= url %>" />
|
||||||
<input type="hidden" id="dates_validated" name="dates_validated" value="0" data-fv-validation="checkForDates;" data-fv-messages="Please make sure first if dates are available.;">
|
<input type="hidden" id="dates_validated" name="dates_validated" value="0" data-fv-validation="checkForDates;" data-fv-messages="Please make sure first if dates are available.;">
|
||||||
|
@ -141,7 +147,7 @@
|
||||||
return value == "1";
|
return value == "1";
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
en:
|
en:
|
||||||
property_hire:
|
property_hire:
|
||||||
|
save: Save
|
||||||
property_hire: Property
|
property_hire: Property
|
||||||
manage_locations: Manage Locations
|
manage_locations: Manage Locations
|
||||||
location: Location
|
location: Location
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
zh_tw:
|
zh_tw:
|
||||||
property_hire:
|
property_hire:
|
||||||
|
save: Save
|
||||||
property_hire: Property
|
property_hire: Property
|
||||||
manage_locations: Manage Locations
|
manage_locations: Manage Locations
|
||||||
location: Location
|
location: Location
|
||||||
|
|
Loading…
Reference in New Issue