Sha256: 8fc3351835852822f4dd826f043a6b392e9005ed6e0f3117797013a7644cc05b
Contents?: true
Size: 1.75 KB
Versions: 25
Compression:
Stored size: 1.75 KB
Contents
<div class="btn-group pull-left bulk-update"> <a data-toggle="dropdown" class="btn btn-primary dropdown-toggle btn-sm" type="button"><%= t("views.admin.generic.bulk_update_options.button_title") %> <span class="caret"></span> </a> <ul role="menu" class="dropdown-menu"> <% @options.each do |k, v| %> <% if k == 'publish' %> <li><a href="javascript:void(0)" data-val="<%= k %>"><i class="fa fa-refresh"></i> <%= v %></a></li> <% elsif k == 'draft' %> <li><a href="javascript:void(0)" data-val="<%= k %>"><i class="fa fa-edit"></i> <%= v %></a></li> <% elsif k == 'move_to_trash' || k == 'destroy' %> <li><a href="javascript:void(0)" data-val="<%= k %>"><i class="fa fa-trash-o"></i> <%= v %></a></li> <% elsif k == 'mark_as_spam'%> <li><a href="javascript:void(0)" data-val="<%= k %>"><i class="fa fa-fire"></i> <%= v %></a></li> <% elsif k == 'approve' %> <li><a href="javascript:void(0)" data-val="<%= k %>"><i class="fa fa-check"></i> <%= v %></a></li> <% elsif k == 'unapprove' %> <li><a href="javascript:void(0)" data-val="<%= k %>"><i class="fa fa-minus"></i> <%= v %></a></li> <% elsif k == 'reinstate' %> <li><a href="javascript:void(0)" data-val="<%= k %>"><i class="fa fa-reply"></i> <%= v %></a></li> <% else %> <li><a href="javascript:void(0)" data-val="<%= k %>"><%= v %></a></li> <% end %> <% end %> </ul> </div> <input type="hidden" name="to_do" /> <script type='text/javascript'> $('ul.dropdown-menu li a').bind('click', function(){ $('input[name=to_do]').val($(this).attr('data-val')) $(this).closest('form').submit(); }); </script>
Version data entries
25 entries across 25 versions & 1 rubygems