<div class="modal fade p1-modal" id="category-keyword-create" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
     aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true"
                     ng-click="clearData()">&times;</button>
                <h4 class="modal-title">Create New Category Keyword</h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal" role="form">
                    <div class="form-group">
                        <label class="col-sm-4 control-label">Category:</label>

                        <div class="col-sm-8 control-label" ng-bind="request.category.text"></div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-4 control-label">Keyword Text:</label>

                        <div class="col-sm-8">
                            <input class="form-control" type="text" placeholder="Enter Category Keyword Text"
                                   ng-model="request.keyword" value="[[request.category.text]]"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-4 control-label">Parent Category Node: (optional)</label>

                        <div class="col-sm-8">
                            <select2 select2-data="categoryKeywords" select2-model="request.parent.id"></select2>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-4 control-label">Content Keywords:</label>

                        <div class="col-sm-8 create-content-keywords">
                            <input type="checkbox" ng-model="request.createContentKeywords">
                            <label>Automatically create SM Content Keywords for this Category</label>

                            <p>
                                This option automatically creates Sitemanger Content Keywords (WP Posts) for all WP
                                Posts under this Category. The newly created Content Keywords will belong to the newly
                                created Category Keyword.
                            </p>
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal"
                        ng-click="clearData()">Close
                </button>
                <button type="button" class="btn btn-primary" data-dismiss="modal"
                        ng-disabled="request.keyword == ''"
                        ng-click="createCategory()">Save changes
                </button>
            </div>
        </div>
    </div>
</div>