= link_to t("application.tenants.new"), new_tenant_path,class: [:btn,"btn-primary"] %table.table %thead %tr %th= Tenant.human_attribute_name(:name) %th= Tenant.human_attribute_name(:company_name) %th= Tenant.human_attribute_name(:created_at) %th %tbody - @tenants.each do |tenant| %tr %td = tenant.name - if tenant.stop_flg %span.label.label-warning = Tenant.human_attribute_name(:stop_now) %td= tenant.company_name %td= l(tenant.created_at) %td = link_to t("application.tenants.show"), tenant,class: [:btn,"btn-default"] = link_to t("application.tenants.edit"), edit_tenant_path(tenant),class: [:btn,"btn-primary"] - change_status = tenant.stop_flg ? :to_use_start : :to_stop = link_to t(change_status,scope: "application.tenants"),change_status_tenant_path(tenant), method: :put,class: [:btn,"btn-warning"],data: { confirm: t(".#{change_status}") } = paginate @tenants