Commit 733c2bc4 authored by nazarf's avatar nazarf

work out on table

parent 3176e044
= simple_form_for @miner, :html => { :class => 'form-horizontal' } do |f| = simple_form_for @miner, :html => { :class => 'form-horizontal' } do |f|
.row
.col-sm-2
= f.input :name = f.input :name
.col-sm-2
= f.input :status = f.input :status
.row
.col-sm-2
= f.input :ip_address = f.input :ip_address
.col-sm-2
= f.input :port = f.input :port
.col-sm-2
= f.input :wallet_address = f.input :wallet_address
.col-sm-2
= f.input :pass = f.input :pass
.col-sm-2
= f.input :algorithm = f.input :algorithm
.row
.col-sm-2
= f.input :ip_address_2 = f.input :ip_address_2
.col-sm-2
= f.input :port_2 = f.input :port_2
.col-sm-2
= f.input :wallet_address_2 = f.input :wallet_address_2
.col-sm-2
= f.input :pass_2 = f.input :pass_2
.col-sm-2
= f.input :algorithm_2 = f.input :algorithm_2
......
...@@ -7,10 +7,12 @@ ...@@ -7,10 +7,12 @@
%th= model_class.human_attribute_name(:status) %th= model_class.human_attribute_name(:status)
%th= model_class.human_attribute_name(:ip_address) %th= model_class.human_attribute_name(:ip_address)
%th= model_class.human_attribute_name(:port) %th= model_class.human_attribute_name(:port)
%th= model_class.human_attribute_name(:ip_address_2)
%th= model_class.human_attribute_name(:port_2)
%th= model_class.human_attribute_name(:hash_rate) %th= model_class.human_attribute_name(:hash_rate)
%th= model_class.human_attribute_name(:last_activity) %th= model_class.human_attribute_name(:last_activity)
%th= t 'helpers.actions' %th= t 'helpers.actions'
= tabular_filter.row_helper ['name', '-', '-','-','-', '-', '-'] do = tabular_filter.row_helper ['name', '-', '-','-','-', '-', '-', '-','-'] do
-link_to '?', class: 'btn btn-default btn-xs' do -link_to '?', class: 'btn btn-default btn-xs' do
%i.fa.fa-close %i.fa.fa-close
%tbody %tbody
...@@ -20,6 +22,8 @@ ...@@ -20,6 +22,8 @@
%td= miner.status %td= miner.status
%td= miner.ip_address %td= miner.ip_address
%td= miner.port %td= miner.port
%td= miner.ip_address_2
%td= miner.port_2
%td= miner.hash_rate %td= miner.hash_rate
%td= miner.last_activity %td= miner.last_activity
%td.actions %td.actions
......
...@@ -2,10 +2,60 @@ ...@@ -2,10 +2,60 @@
.page-header .page-header
%h1=model_class.model_name.human.titleize %h1=model_class.model_name.human.titleize
%p .row
%strong= model_class.human_attribute_name(:email) + ':' .col-sm-2
%p
%strong= model_class.human_attribute_name(:name) + ':'
= @miner.name = @miner.name
.col-sm-2
%p
%strong= model_class.human_attribute_name(:status) + ':'
= @miner.status
.row
.col-sm-2
%p
%strong= model_class.human_attribute_name(:ip_address) + ':'
= @miner.ip_address
.col-sm-2
%p
%strong= model_class.human_attribute_name(:port) + ':'
= @miner.port
.col-sm-2
%p
%strong= model_class.human_attribute_name(:wallet_address) + ':'
= @miner.wallet_address
.col-sm-2
%p
%strong= model_class.human_attribute_name(:pass) + ':'
= @miner.pass
.col-sm-2
%p
%strong= model_class.human_attribute_name(:algorithm) + ':'
= @miner.algorithm
.row
.col-sm-2
%p
%strong= model_class.human_attribute_name(:ip_address_2) + ':'
= @miner.ip_address_2
.col-sm-2
%p
%strong= model_class.human_attribute_name(:port_2) + ':'
= @miner.port_2
.col-sm-2
%p
%strong= model_class.human_attribute_name(:wallet_address_2) + ':'
= @miner.wallet_address_2
.col-sm-2
%p
%strong= model_class.human_attribute_name(:pass_2) + ':'
= @miner.pass_2
.col-sm-2
%p
%strong= model_class.human_attribute_name(:algorithm_2) + ':'
= @miner.algorithm_2
%br %br
= link_to t('.back', :default => t("helpers.links.back")), miners_path, :class => 'btn btn-default' = link_to t('.back', :default => t("helpers.links.back")), miners_path, :class => 'btn btn-default'
= link_to t('.edit', :default => t("helpers.links.edit")), edit_miner_path(@miner), :class => 'btn btn-default' = link_to t('.edit', :default => t("helpers.links.edit")), edit_miner_path(@miner), :class => 'btn btn-default'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment