Sha256: 65ecd9b28253a9d4d5f0c404c23e244a3381b1819fabb7a4fd3e677265677476
Contents?: true
Size: 1 KB
Versions: 2
Compression:
Stored size: 1 KB
Contents
<div id="<%=record_id%>"> <div id="<%=record_id%>_show" class="record show" style="display:<%= (@mode == :edit) ? 'none' : 'display' %>"> <table> <tbody> <%- columns.each do |p| -%> <tr> <th><%= column_header(p) %></th> <td><%=h column_value(record, p) %></td> </tr> <%- end -%> <tr> <td colspan=2 align=center> <%= link_to "edit", "#", :onclick=>toggle %> </td> </tr> </tbody> </table> </div> <div id="<%=record_id%>_edit" class="record edit" style="display:<%= (@mode == :edit) ? 'display' : 'none' %>"> <%= form_for record, :action=>save_action do %> <table> <tbody> <%- columns.each do |p| -%> <tr> <th><%= column_header(p) %></th> <td><%= column_form(record, p) %></td> </tr> <%- end -%> <tr> <td colspan=2 align=center> <%= submit (record.new_record? ? "create" : "update").t %> <%= link_to "cancel", "#", :onclick=>toggle unless record.new_record? %> </td> </tr> </tbody> </table> <% end =%> </div> </div>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
maiha-merb_inspector-0.2.1 | templates/data_mapper/resource/_record.html.erb |
maiha-merb_inspector-0.2.2 | templates/data_mapper/resource/_record.html.erb |