Sha256: 52d1ca44f049a1cfd004b4430d5d0e909dfe1e3a541a6cef45a7030ac0cc34ee
Contents?: true
Size: 1.61 KB
Versions: 4
Compression:
Stored size: 1.61 KB
Contents
<div id="erd-<%= model[:model] %>" class="model" style="top: <%= model[:y] %>px; left: <%= model[:x] %>px;" data-model_name="<%= model[:model] %>"> <% if edit_mode %> <a href="#!" class="close"><%= image_tag '/erd/close.png' %></a> <% end %> <div class="model_name<%= "#{' edit' if edit_mode}" %>"> <div class="model_name_text"><%= model[:model] %></div> <% if edit_mode %> <form class="rename_model_form"> <table> <tr> <td> <input name="model" type="hidden" value="<%= model[:model] %>"/> </td> <td> <input name="to" type="text" /><input type="submit" value="Change"/> </td> </tr> </table> <a href="#!" class="cancel">Cancel</a> </form> <% end %> </div> <div class="columns"> <ul> <%= render :partial => 'erd/erd/column', :collection => model[:columns], :locals => {:model => model, :edit_mode => edit_mode} -%> </ul> </div> <div class="add_column_box"> <% if edit_mode %> <a href="#!" class="add_column">add column</a> <% end %> <form class="add_column_form"> <input name="model" type="hidden" value="<%= model[:model] %>" /> <table> <tr> <td> <input name="name" type="text" /> </td> <td> : </td> <td> <input name="type" type="text" value="string" /> </td> <td> <input type="submit" value="Add" /> </td> </tr> </table> <a href="#!" class="cancel">Cancel</a> </form> </div> </div>
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
erd-0.8.2 | app/views/erd/erd/_model.html.erb |
erd-0.8.1 | app/views/erd/erd/_model.html.erb |
erd-0.8.0 | app/views/erd/erd/_model.html.erb |
erd-0.7.0 | app/views/erd/erd/_model.html.erb |