Sha256: 8cacbd0f5786325a0e1d0849a393acd36ad97954a2bff0b941a9c706ca3e1f5f
Contents?: true
Size: 1.91 KB
Versions: 2
Compression:
Stored size: 1.91 KB
Contents
<% content_for :stylesheets do %> <%= stylesheet_link_tag "bootstrap_datepicker" %> <% end %> <% content_for :javascripts do %> <%= javascript_include_tag "https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" %> <%= javascript_include_tag "bootstrap_datepicker" %> <script type="text/javascript"> $(function(){$('#dp1').datepicker().on('changeDate', function(){$('#list-form').submit();})}); </script> <% end %> <%= render "navigation", :referrer => "lists" %> <div class="span12"> <div class="well"> <h3 class="pull-left">Log</h3> <div class="pull-right"> <%= form_tag best_boy_admin_lists_path, :method => :get, :id => "list-form" do %> <div class="input-append date pull-left span3" id="dp1" data-date="<%= params[:date].present? ? params[:date] : l(Time.zone.now, :format => "%d-%m-%Y") %>" data-date-format="dd-mm-yyyy"> <input name="date" class="span2" size="16" type="text" value="<%= params[:date] %>" readonly="readonly"> <span class="add-on"><i class="icon-th"></i></span> </div> <%= hidden_field_tag :owner_type, current_owner_type %> <%= select_tag :event, options_for_select([["all Events", nil]] + available_events, :selected => current_event), :onchange => "submit();", :class => "span4" %> <% end %> </div> <table class="table table-striped table-bordered"> <thead> <tr> <th>Owner Type</th> <th>Event</th> <th>Event source</th> <th>created_at</th> </tr> </thead> <tbody> <% collection.each do |best_boy_event| %> <tr> <td><%= best_boy_event.owner_type %></td> <td><%= best_boy_event.event %></td> <td><%= best_boy_event.event_source %></td> <td><%= best_boy_event.created_at %></td> </tr> <% end %> </tbody> </table> <%= paginate collection %> </div> </div>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
best_boy-0.3.0 | app/views/best_boy/best_boy_events/lists.html.erb |
best_boy-0.2.2 | app/views/best_boy/best_boy_events/lists.html.erb |