Sha256: 8e037f6c5253001595d87503ea4ad84bac00e40cfbf816de5f80ec1343896220
Contents?: true
Size: 1.21 KB
Versions: 6
Compression:
Stored size: 1.21 KB
Contents
<%= f.inputs do %> <%= f.input :asset, :collection => Smithy::Asset.order(:name) %> <%= f.input :alternate_text %> <% end %> <%= f.inputs "Content (optional)" do %> <%= f.input :content, :as => :text, :input_html => { :class => "span12", :id => "image_content-#{f.object.id || 'new'}" }, :hint => "Use markdown syntax for formatting. You can also use HTML directly. <a href=\"#{guide_path('markdown')}\" data-toggle=\"remote-load\" data-target=\"#content-guide\">See our markdown syntax reference</a>".html_safe %> <div id="image_content_editor-<%= f.object.id || 'new' %>" class="image_content_editor"></div> <div id="content-guide"></div> <% end %> <% content_for :javascript do %> <%= javascript_tag do %> var editor = ace_edit('<%= f.object.id || 'new' %>', 'markdown'); editor.renderer.setShowGutter(false); <% end %> <% end %> <%= f.inputs "Image Sizing (optional)" do %> <%= f.input :width %> <%= f.input :height %> <%= f.input :image_scaling, :as => :select, :collection => Smithy::Image.image_scaling_options %> <% end %> <%= f.inputs "Linked Image (optional)" do %> <%= f.input :link_url %> <% end %> <%= f.inputs "HTML Attributes (optional)" do %> <%= f.input :html_attributes %> <% end %>
Version data entries
6 entries across 6 versions & 1 rubygems