Make the aspect_dropdown_list_item easier to read
This commit is contained in:
parent
d6321d2327
commit
f2e3102562
1 changed files with 10 additions and 9 deletions
|
|
@ -87,15 +87,16 @@ module AspectGlobalHelper
|
||||||
klass = checked ? "selected" : ""
|
klass = checked ? "selected" : ""
|
||||||
hidden = !checked ? "hidden" : ""
|
hidden = !checked ? "hidden" : ""
|
||||||
|
|
||||||
str = "<li data-aspect_id=#{aspect.id} class='#{klass}'>"
|
str = <<LISTITEM
|
||||||
#str << "<input #{checked} id=\"in_aspect\" name=\"in_aspect\" type=\"checkbox\" value=\"in_aspect\" />"
|
<li data-aspect_id=#{aspect.id} class='#{klass}'>
|
||||||
str << "<img src='/images/icons/check_yes_ok.png' width=18 height=18 class='check #{hidden}'/>"
|
<img src='/images/icons/check_yes_ok.png' width=18 height=18 class='check #{hidden}'/>
|
||||||
str << "<img src='/images/icons/check_yes_ok_white.png' width=18 height=18 class='checkWhite'/>"
|
<img src='/images/icons/check_yes_ok_white.png' width=18 height=18 class='checkWhite'/>
|
||||||
str << aspect.name
|
#{aspect.name}
|
||||||
str << "<div class=\"hidden\">"
|
<div class=\"hidden\">
|
||||||
str << aspect_membership_button(aspect, contact, person)
|
#{aspect_membership_button(aspect, contact, person)}
|
||||||
str << "</div>"
|
</div>
|
||||||
str << "</li>"
|
</li>
|
||||||
|
LISTITEM
|
||||||
str.html_safe
|
str.html_safe
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue