Sha256: 591c1372f59fe492e7f8f2ce16dc99e1716334783d5acd1f38a8f649ac01c77e
Contents?: true
Size: 1.13 KB
Versions: 1
Compression:
Stored size: 1.13 KB
Contents
<% form_for(@database, :url => { :action => :create, :tablename => @tablename }, :html => { :method => :post }) do |f| %> <%#= menu %> <div id="contents"> <%#= submenu %> <div id="main"> <%= message %> <%= pagetitle :title => "database [" + @tablename + "]" %> <div class="sheet"> <%= f.error_messages %> <%= flash_tag %> <% content_for :button do %> <div class="commonBtnArea"> <div class="centerBox"> <%= submit_button_tag(f, :value => '/images/btn_create.png') %> <%= index_button_tag %> </div> <!--/ commonBtnArea--></div> <% end %> <%#= yield :button %> <%= pagesubtitle %> <%= required_notice_tag %> <table class="commonSheet"> <% @columns.each do |column| %> <tr> <th><%= f.label column.name %><%#=hlabel @tablename.singularize, column.name %></th> <td> <% if ["id","created_at","updated_at"].include?(column.name) -%> <% if column.type.to_s == "datetime" -%> <%=hdate @database[column.name] -%> <% else -%> <%=h @database[column.name] -%> <% end -%> <% else -%> <%= f.text_field column.name -%> <% 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_rails_generator-0.0.3 | templates/databases_new.html.erb |