Sha256: 1e137aa73e0b0aa53648f1fcf818b30e509af96b761b087f20b6370a49cb8fab
Contents?: true
Size: 1.33 KB
Versions: 2
Compression:
Stored size: 1.33 KB
Contents
<%= title "Edit Newsletter" %> <label>Design</label> <div style="font-size: 11pt; padding-top: 5px;"><%= @newsletter.design.name %> </div><br /> <%= render :partial => 'form' %> <% if @newsletter.design %> <% @newsletter.areas.each do |area| %> <%= form_tag new_newsletter_piece_path(@newsletter), :method => :get, :id => "add_element_for_area_#{area.id}" do %> <%= hidden_field_tag 'area_id', area.id %> <%= label_tag "area_#{area.id}_element_id", "Area: #{area.name.humanize}" %> <%= select_tag 'element_id', options_from_collection_for_select(area.elements, 'id', 'name'), :style=>'margin-right: 10px;', :id => "area_#{area.id}_element_id" %> <%= submit_tag 'Add Element', :class => 'button', :id => "add_element_#{area.id}" %> <div style="clear: left;"></div> <% end %> <% end %> <p><b>Newsletter Window Size: </b> <% [[320,568],[640,480],[800,600],[1024,768],[1280,1024],[1600,1200]].each do |width,height| %> <%= link_to_function "#{width}x#{height}","$('#preview').css({height: '#{height}px', width: '#{width}px'})" %> <% end %> </p> <%= content_tag :iframe, @newsletter.name, :id => 'preview', :src => editor_newsletter_path(@newsletter), :width => 800, :height => 600 %> <% end %> <%= content_for :page_navigation do %> <div> <%= link_to "Back", newsletters_path, :class => 'button' %> </div> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
newsletter-3.2.25.1 | app/views/newsletter/newsletters/edit.html.erb |
newsletter-3.2.22.0 | app/views/newsletter/newsletters/edit.html.erb |