{$layout "layout_popup"}
{$template "/code_editor"}

<h3>创建接收人媒介</h3>
<form class="ui form" data-tea-action="$" data-tea-success="success">
    <csrf-token></csrf-token>

    <table class="ui table definition selectable">
        <tr>
            <td class="title">系统用户 *</td>
            <td>
                <admin-selector></admin-selector>
                <p class="comment">选择关联的系统用户。</p>
            </td>
        </tr>
        <tr>
            <td>媒介 *</td>
            <td>
                <message-media-instance-selector @change="changeInstance"></message-media-instance-selector>
            </td>
        </tr>
        <tr>
            <td>接收人标识</td>
            <td>
                <input type="text" name="user" maxlength="300"/>
                <p class="comment">{{userDescription}}</p>
            </td>
        </tr>
        <tr>
            <td>分组</td>
            <td>
                <message-recipient-group-selector></message-recipient-group-selector>
                <p class="comment">选择当前接收人所属分组。</p>
            </td>
        </tr>
        <tr>
            <td>备注</td>
            <td>
                <textarea rows="3" name="description" maxlength="100"></textarea>
            </td>
        </tr>
    </table>

    <submit-btn></submit-btn>
</form>