phcpress 3.7.5 → 3.7.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/app/views/phcpress/blog/posts/_form.html.erb +2 -2
- data/app/views/phcpress/news/posts/_form.html.erb +15 -9
- data/lib/phcpress/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: fe557e6f0c4674f6447c422188a1531d2fa650cd
|
4
|
+
data.tar.gz: 1aed979fb4ab378b7b2640e6542ac34e27123ee6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b68061527ccbbd1b5911ce86a3fe8fb525cc0504d2c0519d1097b27af3903d89b2ff80f6e7bfb68cd389ae2c15b6f9e1377dfd69256e7e73323326f1a9d42ea
|
7
|
+
data.tar.gz: 266728834cdcee2c80626cd7887a6e17b8f40d2f051e9b25ad41addb9f915221130566533578ae1eef3ee958b094702e61d91475c9c97f52925bd0d4285c5e08
|
data/README.md
CHANGED
@@ -8,7 +8,7 @@ PHCPress is an open source news & blog engine built for PHCPress application
|
|
8
8
|
|
9
9
|
#### Step 1 - Add PHCPress to your gemfile
|
10
10
|
|
11
|
-
gem 'phcpress', '~> 3.
|
11
|
+
gem 'phcpress', '~> 3.7', '>= 3.7.5'
|
12
12
|
bundle exec install
|
13
13
|
|
14
14
|
#### Step 2 - Add PHCPress database migration files
|
@@ -12,11 +12,11 @@
|
|
12
12
|
<div class="panel-body">
|
13
13
|
<div class="form-group">
|
14
14
|
<%= f.label :pststatus, "Post Status" %>
|
15
|
-
<%= f.select( :pststatus, [['Draft','draft'],['Publish','publish'],['Review','review']], {class: "form-control form-control-sm"}) %>
|
15
|
+
<%= f.select( :pststatus, [['Draft','draft'],['Publish','publish'],['Review','review']], {}, {class: "form-control form-control-sm"}) %>
|
16
16
|
</div>
|
17
17
|
<div class="form-group">
|
18
18
|
<%= f.label :pstcategory, "Post Category" %>
|
19
|
-
<%= collection_select(:pstcategory, :pstcategory_id, Phcpress::
|
19
|
+
<%= collection_select(:pstcategory, :pstcategory_id, Phcpress::Category.order('catname'), :id, :catname, {}, {class: "form-control form-control-sm"}) %>
|
20
20
|
</div>
|
21
21
|
<div class="actions">
|
22
22
|
<%= f.submit "Publish Blog Article", class: "btn btn-primary btn-sm" %>
|
@@ -1,10 +1,11 @@
|
|
1
1
|
<div class="row">
|
2
2
|
<%= form_for(@news_post, :html => {:multipart => true}) do |f| %>
|
3
|
-
|
3
|
+
|
4
4
|
<!-- PHC-Notifi Render Validation -->
|
5
5
|
<%= render 'phcnotifi/validations', :object => @news_post %>
|
6
|
-
|
6
|
+
|
7
7
|
<div class="col-md-3">
|
8
|
+
|
8
9
|
<div class="panel panel-primary">
|
9
10
|
<div class="panel-heading">
|
10
11
|
<i class="fa fa-paper-plane-o"></i> Publish Panel
|
@@ -12,50 +13,55 @@
|
|
12
13
|
<div class="panel-body">
|
13
14
|
<div class="form-group">
|
14
15
|
<%= f.label :pststatus, "Post Status" %>
|
15
|
-
<%= f.select( :pststatus, [['Draft','draft'],['Publish','publish'],['Review','review']], {class: "form-control form-control-sm"}) %>
|
16
|
+
<%= f.select( :pststatus, [['Draft','draft'],['Publish','publish'],['Review','review']], {}, {class: "form-control form-control-sm"}) %>
|
16
17
|
</div>
|
17
18
|
<div class="form-group">
|
18
19
|
<%= f.label :pstcategory, "Post Category" %>
|
19
|
-
<%= collection_select(:pstcategory, :pstcategory_id, Phcpress::
|
20
|
+
<%= collection_select(:pstcategory, :pstcategory_id, Phcpress::Category.order('catname'), :id, :catname, {}, {class: "form-control form-control-sm"}) %>
|
20
21
|
</div>
|
21
22
|
<div class="actions">
|
22
23
|
<%= f.submit "Publish News Article", class: "btn btn-primary btn-sm" %>
|
23
24
|
</div>
|
24
25
|
</div>
|
25
26
|
</div>
|
27
|
+
|
26
28
|
<div class="panel panel-primary">
|
27
29
|
<div class="panel-heading">
|
28
30
|
<i class="fa fa-camera-retro"></i> Post Images
|
29
31
|
</div>
|
30
32
|
<div class="panel-body">
|
31
33
|
<div class="form-group">
|
32
|
-
|
34
|
+
<%= f.label :pstimage, "Featured Image" %>
|
33
35
|
<%= f.file_field :pstimage, class: "form-control" %>
|
34
36
|
</div>
|
35
37
|
<%= image_tag(@news_post.pstimage_url, class: "img-responsive img-thumbnail") %>
|
36
38
|
</div>
|
37
39
|
</div>
|
40
|
+
|
38
41
|
</div>
|
39
|
-
|
42
|
+
|
43
|
+
<div class="col-md-9">
|
44
|
+
|
40
45
|
<div class="panel panel-primary">
|
41
46
|
<div class="panel-heading">
|
42
47
|
<i class="fa fa-newspaper-o"></i> News Post Publisher
|
43
48
|
</div>
|
44
49
|
<div class="panel-body">
|
45
50
|
<div class="form-group">
|
46
|
-
|
51
|
+
<%= f.label :newspsttitle, "Post Name" %>
|
47
52
|
<%= f.text_field :newspsttitle, class: "form-control" %>
|
48
53
|
</div>
|
49
54
|
<div class="form-group">
|
50
|
-
|
55
|
+
<%= f.label :newspsttext, "Post Text" %>
|
51
56
|
<%= f.text_area :newspsttext, class: "form-control" %>
|
52
57
|
</div>
|
53
58
|
<div class="form-group">
|
54
|
-
|
59
|
+
<%= f.label :newspstexcerpts, "Excerpts/Text Leads" %>
|
55
60
|
<%= f.text_area :newspstexcerpts, class: "form-control" %>
|
56
61
|
</div>
|
57
62
|
</div>
|
58
63
|
</div>
|
64
|
+
|
59
65
|
</div>
|
60
66
|
|
61
67
|
<% end %>
|
data/lib/phcpress/version.rb
CHANGED