Sha256: 989d8b30557900def7844e5b626088ddf8bbbac818b285069b79a409aade0b54

Contents?: true

Size: 949 Bytes

Versions: 6

Compression:

Stored size: 949 Bytes

Contents

<% ApplicationWidget.widgets.each do |widget| %>
    <ul>
      <li>
        <b><%= widget[:name] %></b>
        <br><span class="help-block"><%= widget[:description] %></span>
        <ul>
          <% widget[:actions].each do |action| %>
              <% widget_code = "#{widget[:code]}_#{action[:name]}" %>
              <li>
                <div class="checkbox">
                  <%= label_tag widget_code do %>
                      <%= check_box_tag 'widgets[]', "#{widget[:code]}|#{action[:name]}", @widgets_code.include?(widget_code), {id: widget_code} %>
                      <b><%= action[:name].to_s.humanize %></b>
                      <% if action[:description].present? %>
                          <br><span class="help-block"><%= action[:description] %></span>
                      <% end %>
                  <% end %>
                </div>
              </li>
          <% end %>
        </ul>
      </li>
    </ul>
<% end %>

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
dashboard-rails-1.0.0 app/views/dashboard-rails/widgets/_widgets_list.html.erb
visual_condition_builder-0.1.3 app/views/visual_condition_builder/widgets/_widgets_list.html.erb
visual_condition_builder-0.1.1 app/views/visual_condition_builder/widgets/_widgets_list.html.erb
visual_condition_builder-0.1.0 app/views/visual_condition_builder/widgets/_widgets_list.html.erb
visual_condition_builder-0.0.3 app/views/visual_condition_builder/widgets/_widgets_list.html.erb
visual_condition_builder-0.0.2 app/views/visual_condition_builder/widgets/_widgets_list.html.erb