<button
	class="add-comment-btn js-add-comment-btn d-block"
	ng-hide="cc.config.showFullInput"
	ng-click="cc.showFullInput()">

	<span lmsg="common.cla_comments.placeholder">[Type your message…]</span>
</button>

<div class="new-comment" ng-if="cc.config.showFullInput">
    <div class="new-comment">
		<img name="user_image" ng-src="{{ cc.config.user_photo_url }}" width="46" class="profile-img">
		<comment-edit id="new_comment_{{ cc.uniqueId }}" class="new-comment-edit" name="comment_textnew" comment="cc.new_comment"></comment-edit>
    </div>

    <div>
		<ng-include src="'/intranet/comments/html/ui/controls.html'"></ng-include>
	</div>

    <div class="row mb-2">
        <div class="col-5">
			<ng-include src="'/intranet/comments/html/ui/control-buttons.html'"></ng-include>
		</div>

        <div class="col-7 text-right">
			<div class="btn-group">
				<select id="threadSelect"
						class="btn btn-secondary"
						ng-model="cc.selectedThreadId"
						ng-options="discuss.id as discuss.title for discuss in cc.discussions">

					<option value="" lmsg="comments.component.select_topic">[Select a topic]</option>
				</select>

                <button type="submit" ng-if="cc.config.compact_mode" rel="tooltip" title="${common:cancel.body}" class="btn btn-secondary" ng-click="cc.hideFullInput()">
					<ion-icon name="close-circle-outline"></ion-icon>
                </button>

				<button type="submit" class="btn btn-primary" ng-click="cc.new( $event )" rel="tooltip" lmsg="title:common.post" ng-disabled="!cc.can_save || !cc.selectedThreadId">
					<ion-icon name="paper-plane-outline"></ion-icon>
                </button>
            </div>
        </div>
    </div>
</div>
