<html xmlns:th="http://www.thymeleaf.org"
             xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
             layout:decorator="fragments/layout">
<body>

<form  method="post" enctype="multipart/form-data" class="form-horizontal">
<fieldset>
  <legend th:text="#{nav.role}">File</legend>
      
           
       <div class="form-group" th:classappend="${#fields.hasErrors('name')}? 'has-error has-feedback'">
        <label for="name" class="col-sm-2 control-label" th:text="#{name}">Name</label>        
          <div class="col-xs-3">
               <input type="text" id="name" name="name" th:field="*{name}" class="form-control" value="ee"/>
                <span th:if="${#fields.hasErrors('name')}" th:errors="*{name}" class="help-block">error!</span>
         </div>
        </div>
        <div class="form-group" th:classappend="${#fields.hasErrors('file')}? 'has-error has-feedback'">
        <label for="file" class="col-sm-2 control-label" th:text="#{file}">File</label>        
          <div class="col-xs-3">
               <input type="file" id="file" name="file" th:field="*{file}" class="form-control" value="ee"/>
                <span th:if="${#fields.hasErrors('file')}" th:errors="*{file}" class="help-block">error!</span>
         </div>
         </div>
         
      
         
     <div class="form-group">
           <div class="col-sm-offset-2 col-sm-10">
             <button type="submit" class="btn btn-primary">save</button>
           </div>
    </div>
     
      </fieldset>
    </form>
    </div>
</body>
</html>