<div class="modal fade p1-modal" id="page-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">Page:</label>

                        <div class="col-sm-8 control-label" ng-bind="request.page.post_title"></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.page.post_title]]"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-4 control-label">Parent Category Node:</label>

                        <div class="col-sm-8">
                            <select2 select2-data="categoryKeywords" select2-model="request.parent.id"></select2>
                        </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-click="createPage()" ng-disabled="request.keyword == ''">Save changes
                </button>
            </div>
        </div>
    </div>
</div>