move checks and links in sidebars

This commit is contained in:
Rafael Schouten
2014-09-26 17:57:45 +10:00
parent e480d3a135
commit dee869a273
6 changed files with 37 additions and 30 deletions

View File

@@ -8,11 +8,13 @@
= hidden_field klass, :distributor_ids, :multiple => true, value: nil
- @hubs.each do |hub|
%span.four.columns.alpha.list-item{ class: "#{cycle('odd','even')}" }
%span.three.columns.omega
%label
= check_box klass, :distributor_ids, { multiple: true }, hub.id, nil
= hub.name
%a.one.column.alpha{ href: "#{main_app.edit_admin_enterprise_path(hub)}" }Link
%span.four.columns
%span.three.columns.alpha
%label
= check_box klass, :distributor_ids, { multiple: true }, hub.id, nil
= hub.name
%a.one.column.omega{ href: "#{main_app.edit_admin_enterprise_path(hub)}" }
%span.icon-arrow-right
- else
.four.columns.alpha.list-item
%span.three.columns.alpha None Available