daily pastebin goal
42%
SHARE
TWEET

Untitled

a guest Feb 12th, 2019 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script>
  2.   window.onbeforeunload = function() {
  3.     var inputs = document.getElementsByTagName('input');
  4.     var unfinished = 'false';
  5.     for (var i = 0; i < inputs.length; ++i) {
  6.       if (inputs[i].value != '') {
  7.         unfinished = 'true';
  8.       }
  9.     }
  10.     if (unfinished == 'true') {
  11.       return 'Are you sure you want to leave?';
  12.     }
  13.   }
  14. </script>
  15.    
  16. <input type="submit" name="commit" value="Edit product" class="btn btn-warning btn-block" data-disable-with="Edit product">
  17.    
  18. <input type="submit" name="commit" value="Edit product" class="btn btn-warning btn-block" data-disable-with="Edit product" disabled="">
  19.    
  20. <%= simple_form_for @pack, url: pack_path(@pack), method: :patch do |f| %>
  21. <%= render 'shared/error_messages', object: f.object %>
  22.   <%= f.input :title, class: "form-control center" %>
  23.   <%= f.input :description, :as => :ckeditor, input_html: {:ckeditor => {:toolbar => 'FULL'}}, class: "form-control left" %>
  24.   <%= f.input :pack_contents, :as => :ckeditor, input_html: {:ckeditor => {:toolbar => 'FULL'}}, class: "form-control left" %>
  25.   <%= f.input :pack_type, class: "form-control center" %>
  26.   <%= f.input :category_id, prompt: "Select Category", collection: [ "sample-pack", "vocal-pack", "preset-pack", "track-pixel", "track-indie", "track-orchestral"], input_html: { class: "form-control center" } %>
  27.   <%= f.input :price, class: "form-control center" %>
  28.   <%= f.input :audio_embed, class: "form-control center" %>
  29.   <%= f.input :video_embed, class: "form-control center" %>
  30.   <%= f.input :art_link, prompt: "ENTER N/A IF STRACK", class: "form-control center" %>
  31.   <%= f.input :download_url, class: "form-control center" %>
  32.   <%= f.submit "Edit product", class: "btn btn-warning btn-block" %>
  33.   <% end %>
  34.   <%= link_to "Cancel", packs_path, class: "btn btn-danger top-drop" %>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top