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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 19a87557ab3352bd6b46c50f9cba91e6bb666758
4
- data.tar.gz: 0a4982252f0004e99f54cc6ef7f0a02696c7d3ac
3
+ metadata.gz: fe557e6f0c4674f6447c422188a1531d2fa650cd
4
+ data.tar.gz: 1aed979fb4ab378b7b2640e6542ac34e27123ee6
5
5
  SHA512:
6
- metadata.gz: 7f3ea7e20d169d44c177e57ccbfbce0ee01b13d4ee52aa590e33c784c5753d8e4faabb034b4c2e9d44704a9a0d99ad4f9cac33a0c580effb142f217d11b8a1b2
7
- data.tar.gz: e4db1e936318efe82e3c5c3b6086da3e281948fe4538679b81076daf5f5d7e111a2e70d896342b845f3212dc1bf6afe5c5f8fa8d0802c845efb9a5822b8457d5
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.5', '>= 3.5.5'
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::Blog::Post.order('blogpsttitle'), :id, :blogpsttitle, {}, {class: "form-control form-control-sm"}) %>
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::News::Post.order('newspsttitle'), :id, :newspsttitle, {}, {class: "form-control form-control-sm"}) %>
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
- <label><%= f.label :pstimage, "Featured Image" %></label>
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
- <div class="col-md-9 ">
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
- <label><%= f.label :newspsttitle, "Post Name" %></label>
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
- <label><%= f.label :newspsttext, "Post Text" %></label>
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
- <label><%= f.label :newspstexcerpts, "Excerpts/Text Leads" %></label>
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 %>
@@ -1,3 +1,3 @@
1
1
  module Phcpress
2
- VERSION = "3.7.5"
2
+ VERSION = "3.7.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phcpress
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.7.5
4
+ version: 3.7.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - BradPotts