caboose-cms 0.7.11 → 0.7.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/caboose/posts/admin_edit_general.html.erb +10 -7
- data/lib/caboose/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f63e4a06922bcc3cf9320007593f95d2dae4a56
|
4
|
+
data.tar.gz: 3fbc708695a2f581cda77d9294d0a2705394d70f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9cf76d4b54dbcf0b2a1dce894a1c3bb8cc211b56e555470df4f4400d4aae837221f2913804af2379a98654a6437423153a453d51258e8f06e518efd2fbe3ca5b
|
7
|
+
data.tar.gz: 3021c86c61295bce08620cf3f8b5dbb64e89ef0b247872df5ff17dac21713c8d809cce3b7a33749546ad120af680827473d7f3e863b90d513773113404ecf98c
|
@@ -7,6 +7,8 @@
|
|
7
7
|
<p><div id='post_<%= @post.id %>_subtitle' ></div></p>
|
8
8
|
<p><div id='post_<%= @post.id %>_author' ></div></p>
|
9
9
|
<% @post.post_custom_field_values.each do |fv| %>
|
10
|
+
<% f = fv.post_custom_field %>
|
11
|
+
<% next if f.nil? %>
|
10
12
|
<p><div id='postcustomfieldvalue_<%= fv.id %>_value'></div></p>
|
11
13
|
<% end %>
|
12
14
|
<p><div id='post_<%= @post.id %>_created_at'></div></p>
|
@@ -26,17 +28,18 @@ $(document).ready(function() {
|
|
26
28
|
update_url: '/admin/posts/<%= @post.id %>',
|
27
29
|
authenticity_token: '<%= form_authenticity_token %>',
|
28
30
|
attributes: [
|
29
|
-
{ name: 'slug'
|
30
|
-
{ name: 'title'
|
31
|
-
{ name: 'subtitle'
|
32
|
-
{ name: 'author'
|
33
|
-
{ name: 'created_at'
|
34
|
-
{ name: 'published'
|
35
|
-
{ name: 'image'
|
31
|
+
{ name: 'slug' , nice_name: 'Slug' , type: 'text' , value: <%= raw Caboose.json(@post.slug ) %>, width: 600, after_update: function() { refresh_uri(); } },
|
32
|
+
{ name: 'title' , nice_name: 'Title' , type: 'text' , value: <%= raw Caboose.json(@post.title ) %>, width: 600, after_update: function() { refresh_uri(); } },
|
33
|
+
{ name: 'subtitle' , nice_name: 'Subtitle' , type: 'text' , value: <%= raw Caboose.json(@post.subtitle ) %>, width: 600 },
|
34
|
+
{ name: 'author' , nice_name: 'Author' , type: 'text' , value: <%= raw Caboose.json(@post.author ) %>, width: 600 },
|
35
|
+
{ name: 'created_at' , nice_name: 'Date Published' , type: 'date' , value: <%= raw Caboose.json(@post.created_at.strftime('%m/%d/%Y') ) %>, width: 600 },
|
36
|
+
{ name: 'published' , nice_name: 'Published' , type: 'checkbox' , value: <%= raw @post.published ? true : false %>, width: 600 },
|
37
|
+
{ name: 'image' , nice_name: 'Image' , type: 'image' , value: <%= raw Caboose.json(@post.image.url(:thumb)) %>, width: 600, update_url: '/admin/posts/<%= @post.id %>/image' }
|
36
38
|
]
|
37
39
|
});
|
38
40
|
<% @post.post_custom_field_values.each do |fv| %>
|
39
41
|
<% f = fv.post_custom_field %>
|
42
|
+
<% next if f.nil? %>
|
40
43
|
new ModelBinder({
|
41
44
|
name: 'PostCustomFieldValue',
|
42
45
|
id: <%= fv.id %>,
|
data/lib/caboose/version.rb
CHANGED