show response errors,sync and update member

This commit is contained in:
Myat Zin Wai Maw
2019-05-08 17:59:57 +06:30
parent 8f81eb8e4a
commit b2532ce5f3
5 changed files with 203 additions and 45 deletions

View File

@@ -46,18 +46,18 @@
<% flash.each do |type, message| %>
<% if !flash["errors"]%>
<%
if type == "notice"
if type == "notice"
color = "alert-success"
elsif type == "error"
end
if 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"
<% if flash["error"] || flash["notice"]%>
<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>
</p>
<% end %>
<% end %>
<% end %>
<%= yield %>