title: How to add success notification after form submit
body: <p>I would like to add success notification after user submitted the form.</p>
  
  <p>I've already checked out the Pnotify js library -<a href="https://sciactive.com/pnotify/" rel="nofollow noreferrer">https://sciactive.com/pnotify/</a>, which looks nice. But no idea how I can use in my CRUD project. I'm using Spring Boot and Thymeleaf for a frontend.</p>
  
  <p>I checked docs:</p>
  
  <pre><code>&lt;button class="btn btn-default source" onclick="new PNotify({
                                title: 'Regular Success',
                                text: 'That thing that you were trying to do worked!',
                                type: 'success',
                                styling: 'bootstrap3'
                            });"&gt;Success&lt;/button&gt;
  </code></pre>
  
  <p>This is my form:</p>
  
  <pre><code>&lt;form action="#" th:action="@{/contractors-save}"
      th:object="${contractor}"
      method="post" class="form-horizontal form-label-left"&gt;
  
  &lt;div class="form-group"&gt;
      &lt;label class="control-label col-md-3 col-sm-3 col-xs-12"&gt;Name&lt;/label&gt;
      &lt;div class="col-md-5 col-sm-5 col-xs-12"&gt;
          &lt;input type="text" th:field="*{name}" class="form-control"
                  placeholder="name"/&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;div class="form-group"&gt;
      &lt;label class="control-label col-md-3 col-sm-3 col-xs-12"&gt;Description&lt;/label&gt;
      &lt;div class="col-md-5 col-sm-5 col-xs-12"&gt;
          &lt;input type="text" th:field="*{description}"
                  class="form-control"
                  placeholder="description"/&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;div class="modal-footer"&gt;
      &lt;button type="button" class="btn btn-default"
              data-dismiss="modal"&gt;
          Close
      &lt;/button&gt;
      &lt;input type="submit" value="Save" class="btn btn-success"&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p></p>
  
  <p>The notification is showing on click action, in my case I need to show after form submission. 
  Could you advise and share with your expertise? Maybe other alternatives.</p>