Sha256: d4f375942edfeb8cfb8cbb2d887c9b964f9ea2a15d63eb8a6fb641a521bb3ec1

Contents?: true

Size: 1.68 KB

Versions: 52

Compression:

Stored size: 1.68 KB

Contents

<h1>Viewing <%= @singular_name.capitalize %></h1>
<div id='show'>
    <table>
    	 <% if @options[:show_id]==true %>
        <tr>
            <td style="text-align:right;">
                <b>Id:</b>
            </td>
            <td>
                <%= @model.id %>
            </td>
        </tr>
      
        <% end %>
        <% attribute_keys= @fields %>
        <% attribute_keys.length.times do |attribute_key_id| %>
        <% value = attribute_keys[attribute_key_id] %>
        
        <tr>
            <td style="text-align:right;">
                <b><% 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 %>:</b>
            </td>
            <td>
                <%= @model[attribute_keys[attribute_key_id] ] %>
            </td>
        </tr>
          
        <% end %>
        <% if @options[:show_timestamps]==true %>
        <tr>
            <td style="text-align:right;">
                <b>Created At:</b>
            </td>
            <td>
                <%= @model.created_at %>
            </td>
        </tr>
        <tr>
            <td style="text-align:right;">
                <b>Updated At:</b>
            </td>
            <td>
                <%= @model.updated_at %>
            </td>
        </tr>
        <% end %>
    </table>
</div>
<div style="text-align:right;">
  <%=active_ext_close_button%>
</div>

Version data entries

52 entries across 34 versions & 1 rubygems

Version Path
erp_app-4.0.0 lib/generators/active_ext/templates/views/show.html.erb
erp_app-3.1.16 lib/generators/active_ext/templates/views/show.html.erb
erp_app-3.1.15 lib/generators/active_ext/templates/views/show.html.erb
erp_app-3.1.14 lib/generators/active_ext/templates/views/show.html.erb
erp_app-3.1.13 lib/generators/active_ext/templates/views/show.html.erb
erp_app-3.1.12 lib/generators/active_ext/templates/views/show.html.erb
erp_app-3.1.11 lib/generators/active_ext/templates/views/show.html.erb
erp_app-3.1.10 lib/generators/active_ext/templates/views/show.html.erb
erp_app-3.1.9 lib/generators/active_ext/templates/views/show.html.erb
erp_app-3.1.8 lib/generators/active_ext/templates/views/show.html.erb
erp_app-3.1.7 lib/generators/active_ext/templates/views/show.html.erb
erp_app-3.1.6 lib/generators/active_ext/templates/views/show.html.erb
erp_app-3.1.5 lib/generators/active_ext/templates/views/show.html.erb
erp_app-3.1.4 lib/generators/active_ext/templates/views/show.html.erb
erp_app-3.1.3 lib/generators/active_ext/templates/views/show.html.erb
erp_app-3.1.2 lib/generators/active_ext/templates/views/show.html.erb
erp_app-3.0.16 app/views/erp_app/desktop/scaffold/role/show.rhtml
erp_app-3.0.16 lib/generators/active_ext/templates/views/show.html.erb
erp_app-3.0.15 lib/generators/active_ext/templates/views/show.html.erb
erp_app-3.0.15 app/views/erp_app/desktop/scaffold/role/show.rhtml