Sha256: d5e81d6117d73f86123fdfa931d8b3f947d9c4ea3aad15cd9124553a4d2032ca

Contents?: true

Size: 1.51 KB

Versions: 4

Compression:

Stored size: 1.51 KB

Contents

<div class="row">
  <div class="col-md-12">
      <div class="block" id="tabs">
          <ul class="nav nav-tabs" data-toggle="tabs">
              <li>
                  <a href="#index-fields">Index Fields</a>
              </li>
              <li>
                  <a href="#form-fields">Form Fields</a>
              </li>
          </ul>
          <div class="block-content tab-content">
              <div class="tab-pane" id="index-fields">
                <% if @resource.entity_fields.collection.present? %>
                  <% @resource.entity_fields.collection.latest.each do |entity_field| %>
                    <%= render template: 'simple_admin/admin/system/entities/entity_fields/edit', locals: { entity_field: entity_field } %>
                  <% end %>
                <% else %>
                  <div class="content">
                    <p>Nothing found</p>
                  </div>
                <% end %>
              </div>

              <div class="tab-pane" id="form-fields">
                <% if @resource.entity_fields.form.present? %>
                  <% @resource.entity_fields.form.each do |entity_field| %>
                    <%= render template: 'simple_admin/admin/system/entities/entity_fields/edit', locals: { entity_field: entity_field } %>
                  <% end %>
                <% else %>
                  <div class="content">
                    <p>Nothing found</p>
                  </div>
                <% end %>
              </div>
          </div>
      </div>
  </div>
</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
simple-admin-0.2.0.pre.alpha app/views/simple_admin/admin/system/entities/entity_fields/index.html.erb
simple-admin-0.1.2.pre.alpha app/views/simple_admin/admin/system/entities/entity_fields/index.html.erb
simple-admin-0.1.1.pre.alpha app/views/simple_admin/admin/system/entities/entity_fields/index.html.erb
simple-admin-0.1.0.pre.alpha app/views/simple_admin/admin/system/entities/entity_fields/index.html.erb