Sha256: 90aadcf2c1cdb1c24604932447d07e9283f79a9131c1b33f07769845409f47d1

Contents?: true

Size: 1.26 KB

Versions: 2

Compression:

Stored size: 1.26 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 attribute.reference? -%>
  <%%= hname @<%= singular_name %>.<%= attribute.name %> %>
  <%%= f.hidden_field :<%= attribute.name %>_id %>
<% elsif attribute.field_type == :date_select -%>
  <%%= hdate @<%= singular_name %>.<%= attribute.name %> %>
  <%%= f.hidden_field :<%= attribute.name %> %>
<% elsif attribute.field_type == :text_area -%>
  <%%= hbr @<%= singular_name %>.<%= attribute.name %> %>
  <%%= f.hidden_field :<%= attribute.name %> %>
<% else -%>
  <%%= h @<%= singular_name %>.<%= attribute.name %> %>
  <%%= f.hidden_field :<%= attribute.name %> %>
<% end -%>
</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.3 templates/view_check.html.erb
ava_scaffold_generator-0.0.3 templates/view_confirm.html.erb