109163582-import_files

This commit is contained in:
Stas 2015-12-09 16:07:57 +02:00
parent cec3693f82
commit 1651961147
5 changed files with 86 additions and 2 deletions

View file

@ -0,0 +1,24 @@
.row
.col-md-12
.table-responsive
%table.table.table-hover.table-bordered.table-condensed
%thead
%tr
%th{class: 'col-xs-2'}
=t(:name)
%th{class: 'col-xs-2'}
=t(:id)
%th{class: 'col-xs-2'}
=t(:ident)
%th{class: 'col-xs-2'}
=t(:created_at)
%th{class: 'col-xs-2'}
=t(:registrar)
%tbody
- @contacts.each do |contact|
%tr
%td= contact
%td= contact.code
%td= ident_for(contact)
%td= l(contact.created_at, format: :short)
%td= contact.registrar

View file

@ -73,6 +73,18 @@
 
%button.btn.btn-default.js-reset-form
= t(:clear_fields)
.row
.col-md-3
.btn-group{:role => "group"}
%button.btn.btn-default.dropdown-toggle{"aria-expanded" => "false", "aria-haspopup" => "true", "data-toggle" => "dropdown", :type => "button"}
Download
%span.caret
%ul.dropdown-menu
%li= link_to 'PDF', download_list_registrar_contacts_path(params[:q], format: "pdf")
%li= link_to 'CSV', download_list_registrar_contacts_path(params[:q], format: "csv")
.col-md-3
.col-md-3
.col-md-3
%hr
.row