phcdevworks_notifications 0.10.0 → 0.11.0

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
  SHA256:
3
- metadata.gz: 0b82730957a5ae9fd062dc82713e51bb4ab7039fe1b8e75069fefd381ebecc72
4
- data.tar.gz: f3db6ec2191d9d7ef207e5f2c273608cb25fc6766b4d1a212bebf89ce6037c00
3
+ metadata.gz: 0fdc275a9d6dd05b2a9c01c96cd51a78ae032b7d367dfd5e4b104009b601b1aa
4
+ data.tar.gz: 0a53624fb6db3ba0eb5911759a16f25920b95b4b77c03e6ae28ceb0281b207b2
5
5
  SHA512:
6
- metadata.gz: 3acfe03753aa6a1ccd3be2e908f7df35564639a34fa984a24e77ee5e7aa4a928b90fbed11c71bc68a39bd3b9ed6fa309c014b6b523413785a4a37377f678578d
7
- data.tar.gz: 6476481a13598986f6698774e645f8f5a0209e95586936c7a721a3c927309b34cdd37addfb68ff9a4cb4b50ec7ac51fdc165fcefdd65c773f1f8818429106d72
6
+ metadata.gz: 7d4d15876344fefcd2c59cf1d5a3657261a1103464f6ac25f94505493c583ecd4c37526f786297a8fed22ddd327be9bf4e55c9e87b5c0c6b5092e01c556713ca
7
+ data.tar.gz: e0a1366aa68f90972637954f83fca7347f49c4f88320d07631eb6681e19e28c0ba47117f3d1959f344bf649377e14dafae3550ef7502f417f0ca2ad8bb5dab8c
@@ -2,7 +2,7 @@ module PhcdevworksNotifications
2
2
  module ApplicationHelper
3
3
 
4
4
  # PHCNotifi - Bootstrap Notification Helpers for Rails
5
- def phc_notifi(flash_type)
5
+ def phc_notification(flash_type)
6
6
  case flash_type
7
7
  when 'success'
8
8
  'alert-success'
@@ -0,0 +1,12 @@
1
+ <% flash.each do |type, msg| %>
2
+ <div class="row">
3
+ <div class="col-md-12">
4
+ <div class="alert <%= phc_notification(type) %> alert-dismissable fade show" role="alert">
5
+ <button type="button" class="close" data-dismiss="alert" aria-label="Close">
6
+ <span aria-hidden="true">&times;</span>
7
+ </button>
8
+ <h4 class="text-center"><%= msg %></h4>
9
+ </div>
10
+ </div>
11
+ </div>
12
+ <% end %>
@@ -0,0 +1,14 @@
1
+ <% if object.errors.any? %>
2
+ <div class="alert alert-danger alert-dismissable fade show" role="alert">
3
+ <button type="button" class="close" data-dismiss="alert" aria-label="Close">
4
+ <span aria-hidden="true">&times;</span>
5
+ </button>
6
+ <h4 class="text-center">The form contains <%= pluralize(object.errors.count, "error") %>.</h4>
7
+ <ul class="list-group">
8
+ <% object.errors.full_messages.each do |phc_notification_msg| %>
9
+ <li class="list-group-item list-group-item-danger borderless"><%= phc_notification_msg %></li>
10
+ <li class="list-group-item list-group-item-danger "></li>
11
+ <% end %>
12
+ </ul>
13
+ </div>
14
+ <% end %>
@@ -6,7 +6,7 @@ module PhcdevworksNotifications
6
6
  require "phcthemes_web_theme_pack"
7
7
 
8
8
  # Plugin Namespace
9
- isolate_namespace PhcdevworksActiveMenus
9
+ isolate_namespace PhcdevworksNotifications
10
10
 
11
11
  end
12
12
  end
@@ -1,3 +1,3 @@
1
1
  module PhcdevworksNotifications
2
- VERSION = '0.10.0'
2
+ VERSION = '0.11.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phcdevworks_notifications
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - PHCDevworks
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-07-05 00:00:00.000000000 Z
11
+ date: 2019-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails