108869472-template_changes

This commit is contained in:
Stas 2016-01-07 13:07:06 +02:00
parent f142539827
commit a8ff887717

View file

@ -1,7 +1,6 @@
= render 'shared/title', name: t(:contact_versions) = render 'shared/title', name: t(:contact_versions)
%hr
.row .row
.col-md-12 .col-md-12
.table-responsive .table-responsive
@ -9,30 +8,35 @@
%thead %thead
%tr %tr
%th{class: 'col-xs-2'} %th{class: 'col-xs-2'}
= sort_link(@q, 'name', t(:ID)) = sort_link(@q, 'name', t(:name))
%th{class: 'col-xs-2'} %th{class: 'col-xs-2'}
= sort_link(@q, 'code', t(:item_id)) = sort_link(@q, 'code', t(:id))
%th{class: 'col-xs-2'} %th{class: 'col-xs-2'}
= sort_link(@q, 'ident', t(:event)) = sort_link(@q, 'ident', t(:ident))
%th{class: 'col-xs-2'}
= sort_link(@q, 'email', t(:object))
%th{class: 'col-xs-2'} %th{class: 'col-xs-2'}
= sort_link(@q, 'registrar_name', t(:registrar)) = sort_link(@q, 'registrar_name', t(:registrar))
%th{class: 'col-xs-2'}
= sort_link(@q, 'email', t(:created_at))
%th{class: 'col-xs-2'}
= sort_link(@q, 'action', t(:action))
%tbody %tbody
- @versions.each do |version| - @versions.each do |version|
%tr %tr
%td= 1 %td= version.reify.name
%td= 2 %td= version.reify.code
%td= 3 %td= ident_for(version.reify)
%td= 4 %td= l(version.created_at, format: :short)
%td= 5 %td
- if version.reify.registrar
= link_to(version.reify.registrar, admin_registrar_path(version.reify.registrar))
%td= version.event
.row .row
.col-md-6 .col-md-6
= paginate @versions = paginate @versions
.col-md-6.text-right .col-md-6.text-right
.pagination
= t(:result_count, count: @contacts.total_count)
:coffee :coffee
$(".js-reset-form").on "click", (e) -> $(".js-reset-form").on "click", (e) ->