Sha256: bbae48567cfa9eb82ac2b1d1ff0c05275d2fc3ca7d293d143a4ba8fc6e71353b

Contents?: true

Size: 1.35 KB

Versions: 2

Compression:

Stored size: 1.35 KB

Contents

<div id="modelPicture"></div>
<h1>Listing entities</h1>

<table class="table table-striped table-bordered table-condensed table-sorter table-fixed-header" >
  <thead class="header">
    <tr>
      <th>Label</th>
      <th>Description</th>
      <th>Entity def</th>
      <th></th>
    </tr>
  </thead>

<% @entities.each do |entity| %>
  <tr>
    <td><%= entity.label %></td>
    <td><%= entity.description %></td>
    <td><%= if entity.entity_def != nil; entity.entity_def.label end %></td>
    <td class="td-button-menu">
      <div class="btn-group">
        <%= link_to 'Show', entity, :class => 'btn btn-info btn-mini' %>
        <%= link_to 'Edit', edit_databaseformalizer_entity_path(entity), :class => 'btn btn-warning btn-mini' %>
      </div>
      <%= button_to 'Destroy', entity, :method=>:delete, :class=>'btn btn-danger btn-mini' %>
    </td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Entity', new_databaseformalizer_entity_path, :class => 'btn btn-primary' %>
<br/>
<div class="page-header">
  <h1>Model<small>, picture representing the model for your datas</small></h1>
  <div class="page-header">
      <ul class="thumbnails">
        <li class="span10">
          <a href="/UMLmodel.png" class="thumbnail">
            <img src="/UMLmodel.png" alt="">
          </a>
        </li>
      </ul>
  </div>
</div>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
databaseformalizer-1.0.1 app/views/databaseformalizer/entities/index.html.erb
databaseformalizer-1.0 app/views/databaseformalizer/entities/index.html.erb