Sha256: 093eebd53b4becc91ad48b6c22c83fe6cf05108e67ab8805158a1516f0e835ee

Contents?: true

Size: 1.19 KB

Versions: 6

Compression:

Stored size: 1.19 KB

Contents

<div class="row">
  <div class="col-sm-12 col-md-9">

    <div class="details">
      <% fields.each do |f, field_type| %>
        <dl>
          <% case field_type
        when "belongs_to" %> <dt translate><%= f.capitalize %> :</dt> <dd clas="detail field value">{{object.<%= f %>.name}}</dd>
          <% when "has_many" %><dl>
            <dt translate><%= f.capitalize %> :</dt>
            <ul>
              <li ng-repeat="item in object.<%= f %>"> {{ item.name }}</li>
            </ul>
          </dl>
          <% else %><dt translate><%= f.capitalize %> :</dt> <dd clas="detail field value">{{object.<%= f %>}}</dd>
          <% end %></dl>
      <% end %>
    </div>

  </div>

  <div class="col-sm-12 col-md-3">
    <% if resource_data["childs"]  %>
      <div class="box box-solid">
        <div class="box-body text-center">
          <div class="btn-group-vertical">
            <% resource_data["childs"].each do |item| %>
              <a class="btn btn-info" ng-href="#/<%= resource_url %>/{{ object.id }}/<%= item.pluralize %>" translate>
                <%= item.titleize %>
              </a>
            <% end %>
          </div>
        </div>
      </div>
    <% end %>

  </div>
</div>
</div>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
dashstrap-1.1.0 lib/generators/templates/js/list_view/details.html.erb
dashstrap-1.0.0 lib/generators/templates/js/list_view/details.html.erb
dashstrap-0.2.3 lib/generators/templates/js/list_view/details.html.erb
dashstrap-0.2.2 lib/generators/templates/js/list_view/details.html.erb
dashstrap-0.2.1 lib/generators/templates/js/list_view/details.html.erb
dashstrap-0.2.0 lib/generators/templates/js/list_view/details.html.erb