<div class="modal" id="modal_new_project" xmlns="http://www.w3.org/1999/html">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">×</span></button>
                <h4 class="modal-title" id="modal_new_project_title">New Project</h4>
            </div>
            <form id="formNewProject" action='{% url "projects:new_project" %}'class="form-horizontal" method="post" >
                     {% csrf_token %}
            <div class="modal-body">

                <div id="div_chose_id">
                    <label>Project Name: </label>
                    <input name="name" id="name"  size="40" maxlength="20"/>
                </div>

            </div>

            <div class="modal-footer">
                <button type="button" class="btn btn-default pull-left" data-dismiss="modal">Cancel</button>
                <button class="btn btn-primary"
                            data-loading-text="<i class='fa fa-circle-o-notch fa-spin'></i> Creating..."
                            id="create_new_project">Create
                    </button>
            </div>
                </form>
        </div>
        <!-- /.modal-content -->
    </div>
    <!-- /.modal-dialog -->
</div>