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 +4 -4
- data/app/helpers/phcdevworks_notifications/application_helper.rb +1 -1
- data/app/views/phcdevworks_notifications/bootstrap/_notifications.html.erb +12 -0
- data/app/views/phcdevworks_notifications/bootstrap/_validations.html.erb +14 -0
- data/lib/phcdevworks_notifications/engine.rb +1 -1
- data/lib/phcdevworks_notifications/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0fdc275a9d6dd05b2a9c01c96cd51a78ae032b7d367dfd5e4b104009b601b1aa
|
4
|
+
data.tar.gz: 0a53624fb6db3ba0eb5911759a16f25920b95b4b77c03e6ae28ceb0281b207b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d4d15876344fefcd2c59cf1d5a3657261a1103464f6ac25f94505493c583ecd4c37526f786297a8fed22ddd327be9bf4e55c9e87b5c0c6b5092e01c556713ca
|
7
|
+
data.tar.gz: e0a1366aa68f90972637954f83fca7347f49c4f88320d07631eb6681e19e28c0ba47117f3d1959f344bf649377e14dafae3550ef7502f417f0ca2ad8bb5dab8c
|
@@ -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">×</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">×</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 %>
|
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.
|
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-
|
11
|
+
date: 2019-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|