Viewing <%= @singular_name.capitalize %>
<% if @options[:show_id]==true %>
Id:
|
<%= @model.id %>
|
<% end %>
<% attribute_keys= @fields %>
<% attribute_keys.length.times do |attribute_key_id| %>
<% value = attribute_keys[attribute_key_id] %>
<% Rails.logger.debug("@labels:#{@labels}")
override_label_value = @labels[value.to_sym] unless @labels.nil?
if(override_label_value!=nil)
label_value=override_label_value
else
label_value= value.to_s.humanize
end %>
<%= label_value %>:
|
<%= @model[attribute_keys[attribute_key_id] ] %>
|
<% end %>
<% if @options[:show_timestamps]==true %>
Created At:
|
<%= @model.created_at %>
|
Updated At:
|
<%= @model.updated_at %>
|
<% end %>
<%=active_ext_close_button%>