anchor.diff:          isEdition = true;
           badgeId = id;
         });
  -    }+    }
  
positive.code:         url: "http://localhost:8080/MoussaRaser/api/badges/?apiKey=" + API_KEY,
          contentType:"application/json; charset=utf-8",
          dataType:"json",
          data: $('#testform').serialize(),
          success: function(data) {
            alert('success');
          },
          error: function(jqXHR, textStatus, errorThrown) {
            alert('error');
          }
        });
  
         //$.post("http://localhost:8080/MoussaRaser/api/badges/?apiKey=" + API_KEY, $('#testform').serialize());
      }
  
  
negative.code:     a#submit.btn.btn-default(type='submit' onclick="submit()") Add
      span  
      a#cancel.btn.btn-default(type='submit' style="display:none;" onclick="ResetForm()") Cancel
    
    p(class="col-md-12")
      br
  
    script.
      var API_KEY = "0d969d5771ea42888b70db4fb44f9e67";
  