license flash msg and add set Item price

This commit is contained in:
Yan
2018-01-19 10:43:08 +06:30
parent 09bbfa3772
commit 384923133b
7 changed files with 53 additions and 41 deletions

View File

@@ -29,9 +29,21 @@
</head>
<body class="page">
<% flash.each do |type, message| %>
<% if type == "notice"
color = "alert-success"
elsif type == "error"
color = "alert-danger"
else
color = "bg-black"
end %>
<p id="notify_message" class="hidden" data-placement-from="top" data-message="<%=message%>" data-placement-align="center"
data-animate-enter="" data-animate-exit="" data-color-name="<%=color%>" >
</p>
<% end %>
<div class="box">
<%= yield %>
</div>
</body>
</html>