Sha256: b3e5aefd1e03f3518873d802f42c1d47eecd525d93cd9070e33b3a84756c7842

Contents?: true

Size: 1.26 KB

Versions: 72

Compression:

Stored size: 1.26 KB

Contents

<%= render :partial => 'caboose/pages/admin_header' %>

<h2>Custom CSS URLs</h2>
<p>One URL per line</p>
<p><div id='page_<%= @page.id %>_custom_css_files'></div></p>
<h2>Custom CSS</h2>
<p><div id='page_<%= @page.id %>_custom_css'></div></p>

<%= render :partial => 'caboose/pages/admin_footer' %>

<% content_for :caboose_css do %>
<style>
  textarea {
    font-family: monospace;
    font-size: 13px;
    line-height: 20px;
    padding: 5px 15px !important;
  }
</style>
<% end %>
<% content_for :caboose_js do %>
<script type='text/javascript'>

var modal = false;
$(window).load(function() {
  modal = new CabooseModal(800);
});

$(document).ready(function() {
  m = new ModelBinder({
    name: 'Page',
    id: <%= @page.id %>,
    update_url: '/admin/pages/<%= @page.id %>',
    authenticity_token: '<%= form_authenticity_token %>',
    attributes: [
      { name: 'custom_css_files' , nice_name: 'Custom CSS URLs' , type: 'textarea', value: <%= raw Caboose.json(@page.custom_css_files ) %>, width: 800, height: 200, fixed_placeholder: false },
      { name: 'custom_css'       , nice_name: 'Custom CSS'      , type: 'textarea', value: <%= raw Caboose.json(@page.custom_css       ) %>, width: 800, height: 400, fixed_placeholder: false }             
    ]
  });
});

</script>
<% end %>

Version data entries

72 entries across 72 versions & 1 rubygems

Version Path
caboose-cms-0.9.175 app/views/caboose/pages/admin_edit_css.html.erb
caboose-cms-0.9.174 app/views/caboose/pages/admin_edit_css.html.erb
caboose-cms-0.9.173 app/views/caboose/pages/admin_edit_css.html.erb
caboose-cms-0.9.172 app/views/caboose/pages/admin_edit_css.html.erb
caboose-cms-0.9.171 app/views/caboose/pages/admin_edit_css.html.erb
caboose-cms-0.9.170 app/views/caboose/pages/admin_edit_css.html.erb
caboose-cms-0.9.169 app/views/caboose/pages/admin_edit_css.html.erb
caboose-cms-0.9.168 app/views/caboose/pages/admin_edit_css.html.erb
caboose-cms-0.9.167 app/views/caboose/pages/admin_edit_css.html.erb
caboose-cms-0.9.166 app/views/caboose/pages/admin_edit_css.html.erb
caboose-cms-0.9.165 app/views/caboose/pages/admin_edit_css.html.erb
caboose-cms-0.9.164 app/views/caboose/pages/admin_edit_css.html.erb
caboose-cms-0.9.163 app/views/caboose/pages/admin_edit_css.html.erb
caboose-cms-0.9.162 app/views/caboose/pages/admin_edit_css.html.erb
caboose-cms-0.9.161 app/views/caboose/pages/admin_edit_css.html.erb
caboose-cms-0.9.160 app/views/caboose/pages/admin_edit_css.html.erb
caboose-cms-0.9.159 app/views/caboose/pages/admin_edit_css.html.erb
caboose-cms-0.9.158 app/views/caboose/pages/admin_edit_css.html.erb
caboose-cms-0.9.157 app/views/caboose/pages/admin_edit_css.html.erb
caboose-cms-0.9.156 app/views/caboose/pages/admin_edit_css.html.erb