Commit 733c2bc4 authored by nazarf's avatar nazarf

work out on table

parent 3176e044
= simple_form_for @miner, :html => { :class => 'form-horizontal' } do |f|
= f.input :name
= f.input :status
= f.input :ip_address
= f.input :port
= f.input :wallet_address
= f.input :pass
= f.input :algorithm
= f.input :ip_address_2
= f.input :port_2
= f.input :wallet_address_2
= f.input :pass_2
= f.input :algorithm_2
.row
.col-sm-2
= f.input :name
.col-sm-2
= f.input :status
.row
.col-sm-2
= f.input :ip_address
.col-sm-2
= f.input :port
.col-sm-2
= f.input :wallet_address
.col-sm-2
= f.input :pass
.col-sm-2
= f.input :algorithm
.row
.col-sm-2
= f.input :ip_address_2
.col-sm-2
= f.input :port_2
.col-sm-2
= f.input :wallet_address_2
.col-sm-2
= f.input :pass_2
.col-sm-2
= f.input :algorithm_2
= f.button :submit, :class => 'btn-primary'
......
......@@ -7,10 +7,12 @@
%th= model_class.human_attribute_name(:status)
%th= model_class.human_attribute_name(:ip_address)
%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(:last_activity)
%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
%i.fa.fa-close
%tbody
......@@ -20,6 +22,8 @@
%td= miner.status
%td= miner.ip_address
%td= miner.port
%td= miner.ip_address_2
%td= miner.port_2
%td= miner.hash_rate
%td= miner.last_activity
%td.actions
......
......@@ -2,10 +2,60 @@
.page-header
%h1=model_class.model_name.human.titleize
%p
%strong= model_class.human_attribute_name(:email) + ':'
= @miner.name
.row
.col-sm-2
%p
%strong= model_class.human_attribute_name(: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
= 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'
......
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