<div class="modal" id="modal_new_package_name_chooser">
    <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">Create new Package</h4>
            </div>
            <form id="formCreatePackage" action='{% url "packages:create_package_empty" package_type=package_type %}'
                  class="form-horizontal"
                  method="post" enctype="multipart/form-data">
                {% csrf_token %}
                <div class="modal-body" id="modal_new_package_name_chooser">
                    <div class="form-group">
                        <label for="package_name" class="col-sm-3 control-label">Package name *</label>
                        <div class="col-sm-6">
                            <input class="form-control" id="package_name" name="name"
                                   placeholder="name" required>
                        </div>
                    </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_user">Create
                    </button>

                </div>
            </form>
        </div>
        <!-- /.modal-content -->
    </div>
    <!-- /.modal-dialog -->
</div>