Sha256: b57d9f416fbd9642c0af680bbfac2d32f1b901c086ea89b9ada4c6fb9a30611d
Contents?: true
Size: 1.37 KB
Versions: 1
Compression:
Stored size: 1.37 KB
Contents
<%% form_for(@<%= singular_name %>, :url => { :action => :check }, :html => { :method => :post }) 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_new.html.erb |