Sha256: 4a9209d5ec738d34bdb57aa6d2c0108402eeba61cf78126ac83f370541a367e9

Contents?: true

Size: 1.34 KB

Versions: 1

Compression:

Stored size: 1.34 KB

Contents

<%% form_for(@<%= singular_name %>, :url => { :action => :confirm }) do |f| %>

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

<div id="main">

<%%= message %>

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

<div class="sheet">

<%%= f.error_messages %>
<%%= flash_tag %>

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

<%%#= yield :button %>

<%%= pagesubtitle %>
<%%= required_notice_tag %>

<table class="commonSheet">
<% for attribute in attributes -%>
<tr>
<th><%%= f.label :<%= attribute.name %> %></th>
<td>
<% if attribute.reference? -%>
  <%%= f.collection_select(:<%= attribute.name %>_id, <%= attribute.name.capitalize  %>.find(:all), :id, :name, :include_blank => true) %>
<% elsif attribute.field_type == :text_area -%>
  <%%= f.text_area :<%= attribute.name %>, :size => "60x5" %>
<% elsif attribute.field_type == :check_box -%>
  <label><%%= f.check_box :<%= attribute.name %> %><%%= f.label :<%= attribute.name %> %></label>
<% else -%>
  <%%= f.<%= attribute.field_type %> :<%= attribute.name %> %>
<% end -%>
<% if attribute.field_type == :date_select -%>
  <%%= clear_cal_button_tag %>
<% end -%>
</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.3 templates/view_edit.html.erb