effective_posts 0.5.7 → 0.5.8
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 04ba386efac7a0db2208e7f432afe963da7680bc
|
4
|
+
data.tar.gz: 117249eb70345c26e0a664eaea131051e2dca981
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0fbc97db88abc83ac2fcf33773852869c252e84ee64253c36429024b7e7f4d8543a8162d1eea199fd56b5415672e9e891e5e95a127a4b5e5fb09d06c93d20040
|
7
|
+
data.tar.gz: 55230223d87552e89979b3b3ade1475fb872b7ce39b5e910546e2e510d76d8cfc7fb1080f2e602571bd432c62b13a71f7255ade64058fb7b2182e0fb10a31354
|
@@ -1,13 +1,13 @@
|
|
1
1
|
= simple_form_for(post, (EffectivePosts.admin_simple_form_options || {}).merge(:url => (post.persisted? ? effective_posts.admin_post_path(post.id) : effective_posts.admin_posts_path))) do |f|
|
2
2
|
= f.input :title, hint: 'The title of your post.'
|
3
3
|
|
4
|
-
- if Array(EffectivePosts.categories).length >
|
4
|
+
- if Array(EffectivePosts.categories).length > 1
|
5
5
|
= f.input :category,
|
6
6
|
as: (defined?(EffectiveFormInputs) ? :effective_select : :select),
|
7
7
|
collection: EffectivePosts.categories,
|
8
8
|
include_blank: false
|
9
9
|
- else
|
10
|
-
= f.input :category, as: :hidden, input_html: { value: 'posts' }
|
10
|
+
= f.input :category, as: :hidden, input_html: { value: (EffectivePosts.categories.first || 'posts') }
|
11
11
|
|
12
12
|
= render partial: '/effective/posts/additional_fields', locals: { post: post, form: f, f: f }
|
13
13
|
|
@@ -27,10 +27,10 @@
|
|
27
27
|
- if defined?(EffectiveRoles) and f.object.respond_to?(:roles) && EffectivePosts.use_effective_roles
|
28
28
|
= f.input :roles, collection: EffectiveRoles.roles_collection(f.object), as: :check_boxes, hint: '* leave blank for a regular public post that anyone can view'
|
29
29
|
|
30
|
-
.effective-post-actions
|
31
|
-
= f.button :submit, 'Save', data: { disable_with: 'Saving...' }
|
30
|
+
.form-actions.effective-post-actions
|
31
|
+
= f.button :submit, 'Save', data: { disable_with: 'Saving...' }, class: 'btn btn-primary'
|
32
32
|
- if EffectivePosts.use_fullscreen_editor
|
33
|
-
= f.button :submit, 'Save and Edit Content', data: { disable_with: 'Saving...' }
|
34
|
-
= f.button :submit, 'Save and Add New', data: { disable_with: 'Saving...' }
|
35
|
-
= f.button :submit, 'Save and Duplicate', data: { disable_with: 'Saving...' }
|
33
|
+
= f.button :submit, 'Save and Edit Content', data: { disable_with: 'Saving...' }, class: 'btn btn-primary'
|
34
|
+
= f.button :submit, 'Save and Add New', data: { disable_with: 'Saving...' }, class: 'btn btn-default'
|
35
|
+
= f.button :submit, 'Save and Duplicate', data: { disable_with: 'Saving...' }, class: 'btn btn-default'
|
36
36
|
= link_to 'Cancel', effective_posts.admin_posts_path
|
@@ -1,13 +1,13 @@
|
|
1
1
|
= simple_form_for(post, (EffectivePosts.simple_form_options || {}).merge(url: (post.persisted? ? effective_posts.post_path(post.id) : effective_posts.posts_path))) do |f|
|
2
2
|
= f.input :title, hint: 'The title of your post.'
|
3
3
|
|
4
|
-
- if Array(EffectivePosts.categories).length >
|
4
|
+
- if Array(EffectivePosts.categories).length > 1
|
5
5
|
= f.input :category,
|
6
6
|
as: (defined?(EffectiveFormInputs) ? :effective_select : :select),
|
7
7
|
collection: EffectivePosts.categories,
|
8
8
|
include_blank: false
|
9
9
|
- else
|
10
|
-
= f.input :category, as: :hidden, input_html: { value: 'posts' }
|
10
|
+
= f.input :category, as: :hidden, input_html: { value: (EffectivePosts.categories.first || 'posts') }
|
11
11
|
|
12
12
|
= render partial: '/effective/posts/additional_fields', locals: { post: post, form: f, f: f }
|
13
13
|
|
@@ -22,6 +22,6 @@
|
|
22
22
|
toolbar: 'simple',
|
23
23
|
required: true
|
24
24
|
|
25
|
-
|
26
|
-
= f.button :submit, 'Save', data: { disable_with: 'Saving...' }
|
25
|
+
.form-actions
|
26
|
+
= f.button :submit, 'Save', data: { disable_with: 'Saving...' }, class: 'btn btn-primary'
|
27
27
|
= link_to 'Cancel', effective_posts.posts_path
|
@@ -9,12 +9,12 @@
|
|
9
9
|
- if @post.start_at.present?
|
10
10
|
%tr
|
11
11
|
%th Starts
|
12
|
-
%td= @post.start_at
|
12
|
+
%td= @post.start_at.stftime('%F %H:%M')
|
13
13
|
|
14
14
|
- if @post.end_at.present?
|
15
15
|
%tr
|
16
16
|
%th Ends
|
17
|
-
%td= @post.
|
17
|
+
%td= @post.end_at.stftime('%F %H:%M')
|
18
18
|
|
19
19
|
- if @post.location.present?
|
20
20
|
%tr
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_posts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-07-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|