luci-base: use common alert message markup
authorJo-Philipp Wich <jo@mein.io>
Thu, 31 May 2018 17:05:40 +0000 (19:05 +0200)
committerJo-Philipp Wich <jo@mein.io>
Thu, 31 May 2018 17:06:48 +0000 (19:06 +0200)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/luasrc/view/cbi/map.htm
modules/luci-base/luasrc/view/sysauth.htm

index 69ef3615a28665925cd84946e86da6ec140fd488..02b47f545511b2cd994de277422bbc7637272f3e 100644 (file)
@@ -1,5 +1,5 @@
 <%- if firstmap and messages then local msg; for _, msg in ipairs(messages) do -%>
-       <div class="errorbox"><%=pcdata(msg)%></div>
+       <div class="alert-message warning"><%=pcdata(msg)%></div>
 <%- end end -%>
 
 <div class="cbi-map" id="cbi-<%=self.config%>">
index b3ec9b761705e2fe1c8fca5237362b3d152e1497..e7a741aaab034cea812e7cd6475a3678dbdb44fd 100644 (file)
@@ -8,7 +8,9 @@
 
 <form method="post" action="<%=pcdata(FULL_REQUEST_URI)%>">
        <%- if fuser then %>
-       <div class="errorbox"><%:Invalid username and/or password! Please try again.%></div>
+               <div class="alert-message warning">
+                       <p><%:Invalid username and/or password! Please try again.%></p>
+               </div>
        <% end -%>
 
        <div class="cbi-map">