Sha256: 5a14f2a9bbf51e4ecbdce8241d775dc56b06cf4f2b1ed8c7d10ebb32fd0abbd9
Contents?: true
Size: 1.39 KB
Versions: 1
Compression:
Stored size: 1.39 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 /_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_new.html.erb |