Sha256: f8f78c572ea385da37c7c276e40c31cbbe503ca8abeb1d7460394ae2e9c05e19

Contents?: true

Size: 860 Bytes

Versions: 4

Compression:

Stored size: 860 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).ready(function() {
      $('#browse-btn').browseEverything()
        .done(function(data) { $('#status').html(data.length.toString() + " items selected") })
        .cancel(function()   { window.alert('Canceled!') });
    });
  </script>
</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
browse-everything-0.4.1 spec/support/app/views/file_handler/index.html.erb
browse-everything-0.4.0 spec/support/app/views/file_handler/index.html.erb
browse-everything-0.3.0 spec/support/app/views/file_handler/index.html.erb
browse-everything-0.2.0 spec/support/app/views/file_handler/index.html.erb