
  <div class="row">
    <h3>Update User Details</h3><hr/>
    {% include "fragments/user_details_form.html" %}
  </div>
{% endblock %}

{% block script %}
    <script type="text/javascript">
      $().ready(function(){
        $('#get-user-details').click(function(){
          var token = $('input[name=token]').val();

          $.ajax({
            url: "{% url 'rest_user_details' %}",
            beforeSend: function(xhr){xhr.setRequestHeader('Authorization', 'Token '+token);},
            type: "GET",
 