Commit 8cc50fff authored by Fernando Verdugo's avatar Fernando Verdugo Committed by Francesc Guasch
Browse files

fix(messages): Show error messages (#1087)

- Check "fade in" in all alerts

Issue #1086
parent bdf05d30
......@@ -42,7 +42,7 @@
<!--<small class="form-text text-muted">Format:</small> -->
<div ng-show="name_duplicated"
class="alert alert-warning fade in">
class="alert alert-warning" role="alert">
<%=l 'A node with that name already exists.' %>
<div class="form-group row">
......@@ -109,15 +109,15 @@
<div class="form-group row">
<div ng-show="new_machineForm.$submitted ||$touched">
<div ng-show="$error.required" class="alert alert-warning fade in">
<div ng-show="$error.required" class="alert alert-warning" role="alert">
<strong><%=l "Error" %></strong> <%=l 'Machine name is required.' %>
<div ng-show="$error.maxlength" class="alert alert-warning fade in">
<div ng-show="$error.maxlength" class="alert alert-warning" role="alert">
<strong><%=l 'Error' %></strong> <%=l "Machine name can\'t exceed 20 characters." %>
<div ng-show="new_machineForm.$submitted || new_machineForm.backend.$touched">
<div ng-show="new_machineForm.backend.$error.required" class="alert alert-warning fade in">
<div ng-show="new_machineForm.backend.$error.required" class="alert alert-warning" role="alert">
<strong><%=l 'Error' %></strong> <%=l 'Backend selection is required.' %>
......@@ -138,20 +138,20 @@
</div> -->
<div ng-show="new_machineForm.$submitted || new_machineForm.id_iso.$touched">
<div ng-show="new_machineForm.id_iso.$error.required" class="alert alert-warning fade in">
<div ng-show="new_machineForm.id_iso.$error.required" class="alert alert-warning" role="alert">
<strong><%=l 'Error' %></strong> <%=l 'ISO image selection is required.' %>
<div ng-show="new_machineForm.$submitted || new_machineForm.id_template.$touched">
<div ng-show="new_machineForm.id_template.$error.required" class="alert alert-warning fade in">
<div ng-show="new_machineForm.id_template.$error.required" class="alert alert-warning" role="alert">
<strong><%=l 'Error' %></strong> <%=l 'Template selection is required' %>
<div ng-show="name_duplicated" class="alert alert-warning">
<div ng-show="name_duplicated" class="alert alert-warning" role="alert">
<strong><%=l 'Error' %></strong> <%=l 'A machine with that name already exists.' %>
<div ng-show="$error.pattern" class="alert alert-warning fade in">
<div ng-show="$error.pattern" class="alert alert-warning" role="alert">
<strong><%=l 'Error' %></strong> <%=l 'The machine name must contain only alphabetic, numbers, undercores and dashes.' %>
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