<div class="ui segment">
    <div class="ui form">
        <div class="required field">
            <label>留言分类</label>
            <div class="ui selection dropdown js-categorys">
                <input name="gender" type="hidden" value="0">
                <i class="dropdown icon"></i>
                <div class="text">功能</div>
                <div class="menu">
                    <div class="item" data-value="0">功能</div>
                    <div class="item" data-value="1">BUG</div>
                    <div class="item" data-value="2">其他</div>
                </div>
            </div>
        </div>
        <div class="required field">
            <label>留言内容</label>
            <textarea rows="4" placeholder="" ng-model="comment"></textarea>
        </div>
        <div class="field">
            <div class="actions">
                <div class="ui green button" ng-click="ok()">提交</div>
            </div>
        </div>
    </div>
    <div class="ui divider"></div>
    <div class="ui comments" style="width:100%">
        <h3 class="ui header">最新100条留言</h3>
        <div class="comment" ng-repeat="advice in advices">
            <a class="avatar">
                <img ng-src="/images/head{{advice.head_id}}.jpg">
            </a>
            <div class="content">
                <a class="author">{{ advice.username }}</a>
                <div class="metadata">
                    <span class="date">{{ advice.created_at }}</span>
                </div>
                <div class="metadata">
                    <span class="category">{{ category[advice.category] }}</span>
                </div>
                <div class="text">{{ advice.comment }} </div>
            </div>
        </div>
    </div>
</div>
