Sha256: 882a84208d83da4a104814a856c50c2855207bd0ca1bb225adc5e670bde17f67

Contents?: true

Size: 715 Bytes

Versions: 10

Compression:

Stored size: 715 Bytes

Contents

<%= f.inputs do %>
  <%= f.input :content, :as => :text, :input_html => { :class => "span12", :id => "template_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="template_content_editor-<%= f.object.id || 'new' %>" class="template_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 %>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
smithycms-0.5.0 app/views/smithy/contents/_form_fields.html.erb
smithycms-0.4.5 app/views/smithy/contents/_form_fields.html.erb
smithycms-0.4.4 app/views/smithy/contents/_form_fields.html.erb
smithycms-0.4.3 app/views/smithy/contents/_form_fields.html.erb
smithycms-0.4.2 app/views/smithy/contents/_form_fields.html.erb
smithycms-0.4.1 app/views/smithy/contents/_form_fields.html.erb
smithycms-0.4.0 app/views/smithy/contents/_form_fields.html.erb
smithycms-0.0.3 app/views/smithy/contents/_form_fields.html.erb
smithycms-0.0.2 app/views/smithy/contents/_form_fields.html.erb
smithycms-0.0.1 app/views/smithy/contents/_form_fields.html.erb