Sha256: de79b62113331e7821e5e968336e6744209156ab3ba84a7bb0b51773341cef32

Contents?: true

Size: 1.95 KB

Versions: 119

Compression:

Stored size: 1.95 KB

Contents

<%
f = @post_custom_field
%>

<h1>Edit Post Custom Field</h1>

<p><div id='postcustomfield_<%= f.id %>_key'           ></div></p>    
<p><div id='postcustomfield_<%= f.id %>_name'          ></div></p>    
<p><div id='postcustomfield_<%= f.id %>_field_type'    ></div></p>    
<p><div id='postcustomfield_<%= f.id %>_default_value' ></div></p>
<p><div id='postcustomfield_<%= f.id %>_options_url'   ></div></p>  
<p><div id='postcustomfield_<%= f.id %>_options'       ></div></p>    
         
<div id='message'></div>

<p>
<input type='button' value='< Back' onclick="window.location='/admin/post-custom-fields';" />
</p>

<% content_for :caboose_js do %>
<%= javascript_include_tag "caboose/model/all" %>
<script type="text/javascript">

$(document).ready(function() {
  m = new ModelBinder({
    name: 'PostCustomField',
    id: <%= f.id %>,
    update_url: '/admin/post-custom-fields/<%= f.id %>',
    authenticity_token: '<%= form_authenticity_token %>',
    attributes: [
      { name: 'key'           , nice_name: 'Key'           , type: 'text'     , value: <%= raw Caboose.json(f.key           ) %>, width: 800 },           
      { name: 'name'          , nice_name: 'Name'          , type: 'text'     , value: <%= raw Caboose.json(f.name          ) %>, width: 800 },    
      { name: 'field_type'    , nice_name: 'Type'          , type: 'select'   , value: <%= raw Caboose.json(f.field_type    ) %>, width: 800  , options_url: '/admin/post-custom-fields/field-type-options' },    
      { name: 'default_value' , nice_name: 'Default Value' , type: 'text'     , value: <%= raw Caboose.json(f.default_value ) %>, width: 800 },
      { name: 'options_url' , nice_name: 'Options URL' , type: 'text'     , value: <%= raw Caboose.json(f.options_url ) %>, width: 800 },       
      { name: 'options'       , nice_name: 'Options'       , type: 'textarea' , value: <%= raw Caboose.json(f.options       ) %>, width: 800 , height: 200 }                  
    ]
  });  
});

</script>
<% end %>

Version data entries

119 entries across 119 versions & 1 rubygems

Version Path
caboose-cms-0.9.229 app/views/caboose/post_custom_fields/admin_edit.html.erb
caboose-cms-1.0.2 app/views/caboose/post_custom_fields/admin_edit.html.erb
caboose-cms-1.0.1 app/views/caboose/post_custom_fields/admin_edit.html.erb
caboose-cms-0.9.228 app/views/caboose/post_custom_fields/admin_edit.html.erb
caboose-cms-0.9.227 app/views/caboose/post_custom_fields/admin_edit.html.erb
caboose-cms-0.9.226 app/views/caboose/post_custom_fields/admin_edit.html.erb
caboose-cms-0.9.225 app/views/caboose/post_custom_fields/admin_edit.html.erb
caboose-cms-0.9.224 app/views/caboose/post_custom_fields/admin_edit.html.erb
caboose-cms-0.9.223 app/views/caboose/post_custom_fields/admin_edit.html.erb
caboose-cms-0.9.222 app/views/caboose/post_custom_fields/admin_edit.html.erb
caboose-cms-0.9.221 app/views/caboose/post_custom_fields/admin_edit.html.erb
caboose-cms-0.9.220 app/views/caboose/post_custom_fields/admin_edit.html.erb
caboose-cms-0.9.219 app/views/caboose/post_custom_fields/admin_edit.html.erb
caboose-cms-0.9.218 app/views/caboose/post_custom_fields/admin_edit.html.erb
caboose-cms-0.9.217 app/views/caboose/post_custom_fields/admin_edit.html.erb
caboose-cms-0.9.216 app/views/caboose/post_custom_fields/admin_edit.html.erb
caboose-cms-0.9.215 app/views/caboose/post_custom_fields/admin_edit.html.erb
caboose-cms-0.9.214 app/views/caboose/post_custom_fields/admin_edit.html.erb
caboose-cms-0.9.213 app/views/caboose/post_custom_fields/admin_edit.html.erb
caboose-cms-0.9.212 app/views/caboose/post_custom_fields/admin_edit.html.erb