Sha256: 42e0ad341fb3ecddf5f18fb1d2220e2551df577afcbf73a1bfc286be4b33a6b3

Contents?: true

Size: 872 Bytes

Versions: 25

Compression:

Stored size: 872 Bytes

Contents

<div class="<%=bs2or3('hero-unit','jumbotron')%>">
  <h1>Welcome!</h1>

  <p>Please click the button below to start pickin' files!</p>

  <%= form_tag('/file', id: 'main_form', method: 'post') do %>
    <%= button_tag("Browse", type: 'button', class: 'btn btn-large btn-success', id: "browse-btn",
      'data-toggle' => 'browse-everything', 'data-route' => browse_everything_engine.root_path,
      'data-target' => '#main_form' ) %>
    <%= button_tag("Submit", type: 'submit', class: 'btn btn-large btn-primary', id: "submit-btn") %>
  <% end %>

  <p id="status">0 items selected</p>

  <script>
    $(document).on('page:change', function() {
      $('#browse-btn').browseEverything()
        .done(function(data) { $('#status').html(data.length.toString() + " items selected") })
        .cancel(function()   { window.alert('Canceled!') });
    });
  </script>
</div>

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
browse-everything-0.10.4 spec/support/app/views/file_handler/main.html.erb
browse-everything-0.10.3 spec/support/app/views/file_handler/main.html.erb
browse-everything-0.10.2 spec/support/app/views/file_handler/main.html.erb
browse-everything-0.10.1 spec/support/app/views/file_handler/main.html.erb
browse-everything-0.10.0 spec/support/app/views/file_handler/main.html.erb
browse-everything-0.9.1 spec/support/app/views/file_handler/main.html.erb
browse-everything-0.9.0 spec/support/app/views/file_handler/main.html.erb
browse-everything-0.8.4 spec/support/app/views/file_handler/main.html.erb
browse-everything-0.8.3 spec/support/app/views/file_handler/main.html.erb
browse-everything-0.8.2 spec/support/app/views/file_handler/main.html.erb
browse-everything-0.8.1 spec/support/app/views/file_handler/main.html.erb
browse-everything-0.8.0 spec/support/app/views/file_handler/main.html.erb
browse-everything-0.7.1 spec/support/app/views/file_handler/main.html.erb
browse-everything-0.7.0 spec/support/app/views/file_handler/main.html.erb
browse-everything-0.6.3 spec/support/app/views/file_handler/main.html.erb
browse-everything-0.6.2 spec/support/app/views/file_handler/main.html.erb
browse-everything-0.6.1 spec/support/app/views/file_handler/main.html.erb
browse-everything-0.6.0 spec/support/app/views/file_handler/main.html.erb
browse-everything-0.5.2 spec/support/app/views/file_handler/main.html.erb
browse-everything-0.5.1 spec/support/app/views/file_handler/main.html.erb