Sha256: 247d3ef9fd68bc1d5964953caffdcd80ea74814e57d7df7493a8e515f3133053

Contents?: true

Size: 1.17 KB

Versions: 1

Compression:

Stored size: 1.17 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">
<%%#= prevnext_tag %>
<div class="centerBox">
<%%= delete_button_tag(@<%= singular_name %>) %>
<%%#= copy_button_tag %>
<%%= edit_button_tag %>
<%%= index_button_tag %>
</div>
<!--/ commonBtnArea--></div>
<%% end %>

<%%#= yield :button %>
<div class="commonBtnArea">
<%%= prevnext_tag %>
</div>
<!--/ commonBtnArea--></div>

<%%= pagesubtitle %>

<table class="commonSheet">
<% for attribute in attributes -%>
<tr>
<th><%%= f.label :<%= attribute.name %> %></th>
<td>
<% if 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

1 entries across 1 versions & 1 rubygems

Version Path
ava_scaffold_generator-0.0.2 templates/view_show.html.erb