Commit 1f43bc9c authored by Jeff Sturek's avatar Jeff Sturek
Browse files

Merge branch 'update-notice' into 'master'

Implement DCF Notices

See merge request dxg/unl-resource-scheduler!24
parents 3a46239c ac21a021
...@@ -131,24 +131,19 @@ ...@@ -131,24 +131,19 @@
<% unless session["notice"].nil? %> <% unless session["notice"].nil? %>
<% notices = session.delete("notice") %> <% notices = session.delete("notice") %>
<% notices.each do |notice| %> <% notices.each do |notice| %>
<% notice_class = '' %> <% notice_class = 'dcf-notice-info' %>
<% case notice[:type] <% case notice[:type]
when 'success', :success when 'success', :success
notice_class = 'affirm' notice_class = 'dcf-notice-success'
when 'failure', :failure when 'failure', :failure
notice_class = 'negate' notice_class = 'dcf-notice-warning'
when 'alert', 'danger', 'error', :error, :alert, :danger when 'alert', 'danger', 'error', :error, :alert, :danger
notice_class = 'alert' %> notice_class = 'dcf-notice-warning' %>
<% end %> <% end %>
<div id="notice" class="wdn_notice <%= notice_class %>"> <div id="notice" class="dcf-notice <%= notice_class %>" hidden>
<div class="close"> <h2><%= notice[:header] %></h2>
<a href="#" title="Close this notice">Close this notice</a> <div class="message-content">
</div> <%= notice[:message] %>
<div class="message">
<h4><%= notice[:header] %></h4>
<div class="message-content">
<%= notice[:message] %>
</div>
</div> </div>
</div> </div>
<% end %> <% end %>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment