www_fpvone_cn/application/admin/view/fastim/groupchat/edit.html

97 lines
5.0 KiB
HTML

<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Leader')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-leader" data-rule="required" data-source="fastim/user/loaduser" data-field="nickname" class="form-control selectpage" name="row[leader]" value="{$row.leader|htmlentities}" />
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Avatar')}:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-avatar" class="form-control" size="50" name="row[avatar]" type="text" value="{$row.avatar|htmlentities}">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="faupload-avatar" class="btn btn-danger faupload" data-input-id="c-avatar" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-avatar"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
<span><button type="button" id="fachoose-avatar" class="btn btn-primary fachoose" data-input-id="c-avatar" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
</div>
<span class="msg-box n-right" for="c-avatar"></span>
</div>
<ul class="row list-inline faupload-preview" id="p-avatar"></ul>
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Nickname')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-nickname" data-rule="required" class="form-control" name="row[nickname]" type="text" value="{$row.nickname|htmlentities}">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Bio')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-bio" class="form-control" name="row[bio]" type="text" value="{$row.bio|htmlentities}">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Max_user_count')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-max_user_count" class="form-control" name="row[max_user_count]" type="number" value="{$row.max_user_count|htmlentities}">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Add_mode')}:</label>
<div class="col-xs-12 col-sm-8">
<select id="c-add_mode" data-rule="required" class="form-control selectpicker" name="row[add_mode]">
{foreach name="addModeList" item="vo"}
<option value="{$key}" {in name="key" value="$row.add_mode"}selected{/in}>{$vo}</option>
{/foreach}
</select>
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Invite_join_group')}:</label>
<div class="col-xs-12 col-sm-8">
<select id="c-invite_join_group" data-rule="required" class="form-control selectpicker" name="row[invite_join_group]">
{foreach name="inviteJoinGroupList" item="vo"}
<option value="{$key}" {in name="key" value="$row.invite_join_group"}selected{/in}>{$vo}</option>
{/foreach}
</select>
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Speak')}:</label>
<div class="col-xs-12 col-sm-8">
<select id="c-speak" data-rule="required" class="form-control selectpicker" name="row[speak]">
{foreach name="speakList" item="vo"}
<option value="{$key}" {in name="key" value="$row.speak"}selected{/in}>{$vo}</option>
{/foreach}
</select>
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('History_message')}:</label>
<div class="col-xs-12 col-sm-8">
<select id="c-history_message" data-rule="required" class="form-control selectpicker" name="row[history_message]">
{foreach name="historyMessageList" item="vo"}
<option value="{$key}" {in name="key" value="$row.history_message"}selected{/in}>{$vo}</option>
{/foreach}
</select>
</div>
</div>
<div class="form-group layer-footer">
<label class="control-label col-xs-12 col-sm-2"></label>
<div class="col-xs-12 col-sm-8">
<button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
<button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
</div>
</div>
</form>