Sha256: 47a66cf5bf830be41117d83b2468a9af3c3fbdb8ed3996f8cbc55bfd6b7737d5

Contents?: true

Size: 808 Bytes

Versions: 4

Compression:

Stored size: 808 Bytes

Contents

<h2>Models</h2>
<p>Drawing the Entity-Relationship Diagram</p>

<div class='schemas'>
  <%= form_tag({}, method: :get, name: 'form_schema') do %>
  <table id='schema_table' class='schema_table'>
    <thead>
      <tr class='bottom'>
        <th>
          <%= submit_tag :draw, class: 'bottom' %>
        </th>
      </tr>
    </thead>
    <tbody>
      <% @schemas.each do |schema| %>
      <tr>
        <td>
          <%= check_box :schemas, schema, {id: "check_#{schema}", checked: @domains.include?(schema),
              onclick: 'check_schema()'}, true, false %>
          <%= label_tag "check[#{schema}]", schema %>
        </td>
      </tr>
      <% end %>
    </tbody>
  </table>
  <% end %>
</div>

<div class='draw'>
  <% if @domains.present? %>
  <%= image_tag(@image_file) %>
  <% end %>
</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
draw_erd-0.4.0 app/views/draw_erd/diagram/index.html.erb
draw_erd-0.3.0 app/views/draw_erd/diagram/index.html.erb
draw_erd-0.2.0 app/views/draw_erd/diagram/index.html.erb
draw_erd-0.1.2 app/views/draw_erd/diagram/index.html.erb