Sha256: 3b59300853a089bced4576036f7eb9e6e0fd44827e51dc174de848004e280d83

Contents?: true

Size: 1.36 KB

Versions: 1

Compression:

Stored size: 1.36 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 /_id$/ =~ attribute.name -%>
  <%%= f.collection_select(:<%= attribute.name %>, <%= attribute.name.gsub("_id", "").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.2 templates/view_edit.html.erb