{{$formatted_errors := get_formatted_errors}}
{{if $formatted_errors}}
  <ul class="qor-alert qor-error qor-alert__active" data-dismissible="true">
    <button type="button" class="mdl-button mdl-button--icon" data-dismiss="alert">
      <i class="material-icons">close</i>
    </button> 
    {{range $formatted_error := $formatted_errors}}
      <li>
          <i class="material-icons">error</i>
          {{range $error := $formatted_error.Errors}}
            {{$message := escape $error}}
            <span>{{t (printf "qor_admin.errors.%v" $message) $message}}</span>
          {{end}}
      </li>
    {{end}}
  </ul>
{{end}}
