Displaying 2 results from an estimated 2 matches for "rcheck_box_tag_with_label".
Did you mean:
check_box_tag_with_label
2009 Jun 19
1
[PATCH server] add collapsable sections to vm form
...b/src/app/helpers/application_helper.rb
index 0178ad0..d3eecd7 100644
--- a/src/app/helpers/application_helper.rb
+++ b/src/app/helpers/application_helper.rb
@@ -77,6 +77,15 @@ module ApplicationHelper
}
end
+ # same as check_box_tag_with_label but w/ the checkbox appearing first
+ def rcheck_box_tag_with_label(label, name, value = "1", checked = false)
+ %{
+ <div class="i">#{check_box_tag name, value, checked}
+ <label for="#{name}">#{_(label)}</label></div>
+ }
+ end
+
+
def radio_button_tag_with_label(label, name, value = "...
2009 Jun 30
0
[PATCH server] permit many-to-many vms / networks relationship
...elper.rb b/src/app/helpers/application_helper.rb
index d3eecd7..79d835c 100644
--- a/src/app/helpers/application_helper.rb
+++ b/src/app/helpers/application_helper.rb
@@ -78,9 +78,9 @@ module ApplicationHelper
end
# same as check_box_tag_with_label but w/ the checkbox appearing first
- def rcheck_box_tag_with_label(label, name, value = "1", checked = false)
+ def rcheck_box_tag_with_label(label, name, value = "1", checked = false, opts={})
%{
- <div class="i">#{check_box_tag name, value, checked}
+ <div class="i">#{check_box_tag name, value,...