48 lines
1.6 KiB
Plaintext
48 lines
1.6 KiB
Plaintext
%tr.taxon_row#taxon_row{:id => taxon.id, :class => ("disable"if !taxon.enabled)}
|
|
%td
|
|
-if taxon.enabled
|
|
=link_to ic(:"check-square-o"), admin_taxon_path(:id => taxon.id, :taxon => {:enabled => false}), :remote => true, :method => :patch, :style => "color:green;"
|
|
-else
|
|
=link_to ic(:"square-o"), admin_taxon_path(:id => taxon.id, :taxon => {:enabled => true}), :remote => true, :method => :patch, :style => "color:#dddddd;"
|
|
%td
|
|
-if taxon.fav
|
|
=link_to ic(:"star"), admin_taxon_path(:id => taxon.id, :taxon => {:fav => false}), :remote => true, :method => :patch, :style => "color:#ffcc17;"
|
|
-else
|
|
=link_to ic(:"star-o"), admin_taxon_path(:id => taxon.id, :taxon => {:fav => true}), :remote => true, :method => :patch, :style => "color:#dddddd;"
|
|
|
|
%td.cat_td
|
|
=ic(:"folder-o")
|
|
=semantic_form_for [:admin, taxon],:remote => true, :html => {:onclick => "$(this).submit();"} do |form|
|
|
%input{:type => "hidden", :name=>"taxon[t_cat_ids][]", :id=>"taxon_t_cats_none", :value=>""}
|
|
-TCat.all.each do |t_cat|
|
|
.checkbox
|
|
%label{:for => "#{taxon.id}_taxon_t_cat_ids_#{t_cat.id}"}
|
|
|
|
=check_box_tag "taxon[t_cat_ids][]", t_cat.id, (taxon.t_cat_ids.include?(t_cat.id) ? true : false),:id=>"#{taxon.id}_taxon_t_cat_ids_#{t_cat.id}"
|
|
|
|
=t_cat.name
|
|
|
|
|
|
=hidden_field_tag :no_refresh, "1"
|
|
|
|
%td
|
|
=taxon.rang
|
|
%td
|
|
=taxon.nom_vern
|
|
%td
|
|
=taxon.lb_nom
|
|
%td
|
|
=taxon.nom_valide
|
|
%td
|
|
=taxon.classe
|
|
%td
|
|
=taxon.ordre
|
|
|
|
%td
|
|
=taxon.famille
|
|
|
|
%td
|
|
=taxon.cd_nom
|
|
%td
|
|
=taxon.cd_ref
|