Sha256: 1a37e2eb90e755e3b2bff9fb109be8ae748c9ae1424f94c372d7cef9851636ae

Contents?: true

Size: 1.14 KB

Versions: 2

Compression:

Stored size: 1.14 KB

Contents

<%% form_for(@<%= singular_name %>) do |f| %>

<%%= menu %>
<div id="contents">
<%%= submenu %>

<div id="main">

<%%= message %>

<%%= pagetitle :title => "<%= name %>" %>

<div class="sheet">

<%%= flash_tag %>

<%% content_for :button do %>
<div class="commonBtnArea">
<div class="centerBox">
<%%= submit_button_tag(f) %>
<%%= back_button_tag %>
<%%= index_button_tag %>
</div>
<!--/ commonBtnArea--></div>
<%% end %>

<%%#= yield :button %>

<%%= pagesubtitle %>

<table class="commonSheet">
<% for attribute in attributes -%>
<tr>
<th><%%= f.label :<%= attribute.name %> %></th>
<td>
<% if /_id$/ =~ attribute.name -%>
  <%%= hname @<%= singular_name %>.<%= attribute.name.gsub("_id", "") %> %>
<% elsif attribute.field_type == :date_select -%>
  <%%= hdate @<%= singular_name %>.<%= attribute.name %> %>
<% elsif attribute.field_type == :text_area -%>
  <%%= hbr @<%= singular_name %>.<%= attribute.name %> %>
<% else -%>
  <%%= h @<%= singular_name %>.<%= attribute.name %> %>
<% end -%>
  <%%= f.hidden_field :<%= attribute.name %> %>
</td>
</tr>
<% end -%>
</table>

</div>

<%%= yield :button %>

<!--/ #main--></div>
<!--/ #contents--></div>

<%% end %>

Version data entries

2 entries across 1 versions & 1 rubygems

Version Path
ava_scaffold_generator-0.0.2 templates/view_check.html.erb
ava_scaffold_generator-0.0.2 templates/view_confirm.html.erb