Sha256: fa990a250219863e43091587062f98095c6ca3aa8db0dbd401812812d5715793

Contents?: true

Size: 1.47 KB

Versions: 1

Compression:

Stored size: 1.47 KB

Contents

<%#= menu %>

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

<div id="main">

<%#= message %>

<%= pagetitle :title => "database [" + @tablename + "]" %>

<%= flash_tag %>

<div class="commonBtnArea">
<div class="leftBox">
<%= search_tag %>
</div>
<div class="rightBox">
<%= csv_button_tag %>
<%= new_button_tag :params => {:tablename => @tablename} %>
</div>
<!--/ commonBtnArea--></div>

<div class="list">
<%= paginate_tag @databases %>
<%= counter_tag %>
<table class="commonList">
<thead>
  <tr>
<% @columns.each do |column| %>
    <th><%=h column.name %></th>
<% end %>
  </tr>
</thead>
<tbody>
<% @databases.each do |database| %>
  <tr>
<% @columns.each do |column| %>
    <td><%=link_to database[column.name].blank? ? "": database[column.name], :controller => :databases, :action => :edit, :tablename => @tablename, :id => database["id"] %></td>
<% end %>
  </tr>
<% end %>
</tbody>
</table>
<!--/ list--></div>

<div class="commonBtnArea">
<div class="leftBox">
<% form_tag({ :action => :import, :tablename => @tablename }, { :multipart => true, :method => :post }) do  %>
<h3><%= hlabel :import, :file %></h3>
<%#= note "Let's write an explanatory note later!" %><br>

<%= file_field_tag :file %>
<%= submit_tag hlabel(:import, :button), :confirm => hlabel(:import, :message) %>
<% end %>
</div>
<!--/ commonBtnArea--></div>

<div class="commonBtnArea">
<div class="centerBox">
<%= index_button_tag :action => :list %>
</div>
<!--/ commonBtnArea--></div>


<!--/ #main--></div>
<!--/ #contents--></div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ava_rails_generator-0.0.3 templates/databases_index.html.erb