<div class="modal fade p1-modal" id="post-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 Content Keyword</h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal" role="form">
                    <div class="form-group">
                        <label class="col-sm-4 control-label">Post:</label>

                        <div class="col-sm-8 control-label" ng-bind="request.post.post_title"></div>
                    </div>
                    <div class="form-group" ng-if="request.post.tags.length">
                        <label class="col-sm-4 control-label">Tags:</label>

                        <div class="col-sm-8 control-label links-list">
                            <a class="margin-right-10" href="" ng-repeat="tag in request.post.tags"
                               ng-click="request.keyword = tag.name">[[tag.name]]</a>
                        </div>
                    </div>
                    <div class="form-group" ng-if="request.post.pcmKeywords && request.post.pcmKeywords.length">
                        <label class="col-sm-4 control-label">PCM Keywords:</label>

                        <div class="col-sm-8 control-label links-list">
                            <a class="margin-right-10" href="" ng-repeat="pcmKeyword in request.post.pcmKeywords"
                               ng-click="request.keyword = pcmKeyword">[[pcmKeyword]]</a>
                        </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 Content Keyword Text"
                                   ng-model="request.keyword" value="[[request.post.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="createPost()"
                        ng-disabled="request.keyword == '' || !request.parent.id">Save changes
                </button>
            </div>
        </div>
    </div>
</div>