Sha256: 7dd9b3363f0f9b571aa50533ac7ba47f5816dc04bf575db86f7606a300cc26ee
Contents?: true
Size: 1.11 KB
Versions: 3
Compression:
Stored size: 1.11 KB
Contents
<% if @page.errors.any? %> <div id="error_explanation"> <h2><%= pluralize(@page.errors.count, "error") %> prohibited this page from being saved:</h2> <ul> <% @page.errors.full_messages.each do |msg| %> <li><%= msg %></li> <% end %> </ul> </div> <% end %> <div class="field"> <%= f.label :name %> <%= f.text_field :name %> </div> <div class="field"> <%= f.label :slug, "URL" %> <p> <%= url_for(:action => 'index', :only_path => false).sub(/pages$/, '') %> <%= f.text_field :slug %> </p> </div> <p>Type html in the box below and see a preview right under it</p> <div class="field"> <%= f.label :content %> <%= f.text_area :content, :style => "font-family: monospace; width: 60em;", :class => "cadmus-previewable-html", :"data-preview-in" => "html-preview" %> </div> <div class="actions"> <%= f.submit %> </div> <%= javascript_include_tag "cadmus.previewablehtml.js" %> <script type="text/javascript"> $(document).ready(function(){ $('.cadmus-previewable-html').cadmusPreviewableHtml(); }); </script> <p><b>Rendered html preview</b></p> <div id="html-preview" style="border:1px solid;"> </div> <br/><br/>
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cadmus-0.4.3 | app/views/cadmus/pages/_form.html.erb |
cadmus-0.4.2 | app/views/cadmus/pages/_form.html.erb |
cadmus-0.4.1 | app/views/cadmus/pages/_form.html.erb |