Created
July 16, 2012 19:24
-
-
Save Irio/3124502 to your computer and use it in GitHub Desktop.
bootstrap scaffold | show.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%- model_class = @rental.class -%> | |
<h1><%=t '.title', :default => model_class.model_name.human %></h1> | |
<dl class="dl-horizontal"> | |
<dt><strong><%= model_class.human_attribute_name(:start_date) %>:</strong></dt> | |
<dd><%= @rental.start_date %></dd> | |
<dt><strong><%= model_class.human_attribute_name(:end_date) %>:</strong></dt> | |
<dd><%= @rental.end_date %></dd> | |
<dt><strong><%= model_class.human_attribute_name(:ocupation) %>:</strong></dt> | |
<dd><%= @rental.ocupation %></dd> | |
<dt><strong><%= model_class.human_attribute_name(:user_id) %>:</strong></dt> | |
<dd><%= @rental.user_id %></dd> | |
<dt><strong><%= model_class.human_attribute_name(:property_id) %>:</strong></dt> | |
<dd><%= @rental.property_id %></dd> | |
</dl> | |
<div class="form-actions"> | |
<%= link_to t('.back', :default => t("helpers.links.back")), | |
admin_property_rental_path, :class => 'btn' %> | |
<%= link_to t('.edit', :default => t("helpers.links.edit")), | |
edit_admin_property_rental_path(@rental), :class => 'btn' %> | |
<%= link_to t('.destroy', :default => t("helpers.links.destroy")), | |
admin_property_rental_path(@rental), | |
:method => 'delete', | |
:confirm => t('.confirm', :default => t("helpers.links.confirm", :default => 'Are you sure?')), | |
:class => 'btn btn-danger' %> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment