Sha256: 3fc7dc44055bc7055805fb61780362a69020f10bbf54089611a2f04fc7963e9f

Contents?: true

Size: 850 Bytes

Versions: 2

Compression:

Stored size: 850 Bytes

Contents

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
browse-everything-0.15.1 spec/support/app/views/file_handler/main.html.erb
browse-everything-0.15.0 spec/support/app/views/file_handler/main.html.erb