Sha256: f4b4a2c58a71583b5799fe21383593699b1525566a1d542e72033cb90905143c

Contents?: true

Size: 663 Bytes

Versions: 2

Compression:

Stored size: 663 Bytes

Contents

.new-asset
  %h2 Upload a new image
  %hr
  .asset-upload-form
    = view_create(:assets)
.choose-asset{:style => "display: none"}
  %h2 Choose a previously uploaded image
  %hr
  = view_list(:assets)
.current-asset
  %hr
  %a.asset-chooser-toggle{:href => "#"} Choose a previously uploaded image instead
  %hr
  %p 
    %em No image currently chosen
:javascript
  $(".asset-chooser-toggle").toggle(function(){
    $(this).text("Upload a new image instead");
    $(".new-asset").hide();
    $(".choose-asset").show();
  }, function(){
    $(this).text("Choose a previously uploaded image instead");
    $(".new-asset").show();
    $(".choose-asset").hide();
  });

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
orange-sparkles-0.5.8 lib/orange-sparkles/views/assets/insert.haml
orange-sparkles-0.5.7 lib/orange-sparkles/views/assets/insert.haml