Sha256: 26457a62cdfe61fd386bc497a6e47dc95e42ac694423ef2e046a1b62358ef37e

Contents?: true

Size: 984 Bytes

Versions: 4

Compression:

Stored size: 984 Bytes

Contents

<div id="erd-<%= model[:model] %>" class="model" style="top: <%= model[:y] %>px; left: <%= model[:x] %>px;" data-model_name="<%= model[:model] %>">
  <a href="#!" class="close"> x </a>
  <div class="model_name">
    <div class="model_name_text"><%= model[:model] %></div>
    <form class="rename_model_form"><span><input name="model" type="hidden" value="<%= model[:model] %>" /><input name="to" type="text" /><input type="submit" value="Change" /></span></form>
  </div>
  <div class="columns">
    <ul>
      <%= render :partial => 'erd/erd/column', :collection => model[:columns], :locals => {:model => model} -%>
    </ul>
  </div>
  <div class="add_column_box">
    <a href="#!" class="add_column">add column</a>
    <form class="add_column_form"><span><input name="model" type="hidden" value="<%= model[:model] %>" /><input name="name" type="text" /><span>:</span><input name="type" type="text" value="string" /><input type="submit" value="Add" /></span></form>
  </div>
</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
erd-0.1.6 app/views/erd/erd/_model.html.erb
erd-0.1.5 app/views/erd/erd/_model.html.erb
erd-0.1.4 app/views/erd/erd/_model.html.erb
erd-0.1.3 app/views/erd/erd/_model.html.erb