Saturday progress
This commit is contained in:
@@ -1,14 +1,22 @@
|
||||
- model_class = Table
|
||||
div.page-header= title :index, model_class
|
||||
= form_tag({}, method: :get) do
|
||||
label.number for="filter-from_number" data-t="attributes.table.from_number"
|
||||
input#filter-from_number.number type="number" size=4 value=params[:from_number] name="from_number"
|
||||
label.number for="filter-to_number" data-t="attributes.table.to_number"
|
||||
input#filter-to_number.number type="number" size=4 value=params[:to_number] name="to_number"
|
||||
'
|
||||
= submit_tag 'Filter'
|
||||
.well
|
||||
- if @tables.any?
|
||||
= paginate @tables
|
||||
table.table
|
||||
thead
|
||||
tr
|
||||
th.link data-t="attributes.table.number"= model_class.human_attribute_name(:number)
|
||||
th.link data-t="models.section"= Section.model_name.human
|
||||
th.timestamp data-t="attributes.table.created_at"= model_class.human_attribute_name(:created_at)
|
||||
th.actions data-t="helpers.actions"=t 'helpers.actions'
|
||||
th.actions data-t="helpers.actions.title"=t 'helpers.actions.title'
|
||||
tbody
|
||||
- @tables.each do |table|
|
||||
tr
|
||||
|
||||
Reference in New Issue
Block a user