123 lines
9.5 KiB
HTML
123 lines
9.5 KiB
HTML
<div class="alert alert-info-light" style="margin-bottom:10px;">
|
||
<b>温馨提示</b><br>
|
||
1.插件默认不包含富文本编辑器插件,请在<a href="https://www.fastadmin.net/store.html?category=16" target="_blank">插件市场</a>按需要安装<br>
|
||
2.部分设置项与用户的Im设置重合,实际以用户的个人设置为准,此处的设置将作为默认值。<br />
|
||
3.消息推送:https下Web端可使用`Notification API`,无需配置;APP端使用`uniPush`配置请<a target="_blank" href="https://doc.fastadmin.net/fastim/1021.html">参考文档</a><br />
|
||
</div>
|
||
<form id="config-form" class="config-form form-horizontal" role="form" data-toggle="validator" method="POST" action="{:url('fastim.config/update')}">
|
||
{:token()}
|
||
<div class="panel panel-default panel-intro">
|
||
<div class="panel-heading">
|
||
<ul class="nav nav-tabs">
|
||
{foreach $configList as $index=>$vo}
|
||
<li class="{$vo.active?'active':''}"><a href="#{$vo.name}" data-toggle="tab">{:__($vo.title)}</a></li>
|
||
{/foreach}
|
||
<li class="run_config"><a href="javascript:void(0)" data-toggle="tab">运行配置</a></li>
|
||
</ul>
|
||
</div>
|
||
|
||
<div class="panel-body">
|
||
<div class="tab-content">
|
||
{foreach $configList as $index=>$vo}
|
||
<div class="tab-pane fade {$vo.active?'active in':''}" id="{$vo.name}">
|
||
<div class="widget-body no-padding">
|
||
<table class="table table-striped">
|
||
<thead>
|
||
<tr>
|
||
<th width="28%">变量标题</th>
|
||
<th width="70%">变量值</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
{foreach $vo.list as $item}
|
||
<tr>
|
||
<td>{$item.title}</td>
|
||
<td>
|
||
<div class="row">
|
||
<div class="col-sm-8 col-xs-12">
|
||
{switch $item.type}
|
||
{case string}
|
||
<input {$item.extend_html} type="text" name="row[{$item.name}]" value="{$item.value|htmlentities}" class="form-control" data-rule="{$item.rule}" data-tip="{$item.tip}"/>
|
||
{/case}
|
||
{case text}
|
||
<textarea {$item.extend_html} name="row[{$item.name}]" class="form-control" data-rule="{$item.rule}" rows="5" data-tip="{$item.tip}">{$item.value|htmlentities}</textarea>
|
||
{/case}
|
||
{case editor}
|
||
<textarea {$item.extend_html} name="row[{$item.name}]" id="editor-{$item.name}" class="form-control editor" data-rule="{$item.rule}" rows="5" data-tip="{$item.tip}">{$item.value|htmlentities}</textarea>
|
||
{/case}
|
||
{case number}
|
||
<input {$item.extend_html} type="number" name="row[{$item.name}]" value="{$item.value|htmlentities}" class="form-control" data-tip="{$item.tip}" data-rule="{$item.rule}"/>
|
||
{/case}
|
||
{case checkbox}
|
||
<div class="checkbox">
|
||
{foreach name="item.content" item="vo"}
|
||
<label for="row[{$item.name}][]-{$key}"><input id="row[{$item.name}][]-{$key}" name="row[{$item.name}][]" type="checkbox" value="{$key}" data-tip="{$item.tip}" {in name="key" value="$item.value" }checked{/in} /> {$vo}</label>
|
||
{/foreach}
|
||
</div>
|
||
{/case}
|
||
{case radio}
|
||
<div class="radio">
|
||
{foreach name="item.content" item="vo"}
|
||
<label for="row[{$item.name}]-{$key}"><input id="row[{$item.name}]-{$key}" name="row[{$item.name}]" type="radio" value="{$key}" data-tip="{$item.tip}" {in name="key" value="$item.value" }checked{/in} /> {$vo}</label>
|
||
{/foreach}
|
||
</div>
|
||
{/case}
|
||
{case value="select" break="0"}{/case}
|
||
{case value="selects"}
|
||
<select {$item.extend_html} name="row[{$item.name}]{$item.type=='selects'?'[]':''}" class="form-control selectpicker" data-tip="{$item.tip}" {$item.type=='selects'?'multiple':''}>
|
||
{foreach name="item.content" item="vo"}
|
||
<option value="{$key}" {in name="key" value="$item.value" }selected{/in}>{$vo}</option>
|
||
{/foreach}
|
||
</select>
|
||
{/case}
|
||
{case value="image" break="0"}{/case}
|
||
{case value="images"}
|
||
<div class="form-inline">
|
||
<input id="c-{$item.name}" class="form-control" size="50" name="row[{$item.name}]" type="text" value="{$item.value|htmlentities}" data-tip="{$item.tip}">
|
||
<span><button type="button" id="faupload-{$item.name}" class="btn btn-danger faupload" data-input-id="c-{$item.name}" data-mimetype="image/*" data-multiple="{$item.type=='image'?'false':'true'}" data-preview-id="p-{$item.name}"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
|
||
<span><button type="button" id="fachoose-{$item.name}" class="btn btn-primary fachoose" data-input-id="c-{$item.name}" data-mimetype="image/*" data-multiple="{$item.type=='image'?'false':'true'}"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
|
||
<span class="msg-box n-right" for="c-{$item.name}"></span>
|
||
<ul class="row list-inline faupload-preview" id="p-{$item.name}"></ul>
|
||
</div>
|
||
{/case}
|
||
{case value="file" break="0"}{/case}
|
||
{case value="files"}
|
||
<div class="form-inline">
|
||
<input id="c-{$item.name}" class="form-control" size="50" name="row[{$item.name}]" type="text" value="{$item.value|htmlentities}" data-tip="{$item.tip}">
|
||
<span><button type="button" id="faupload-{$item.name}" class="btn btn-danger faupload" data-input-id="c-{$item.name}" data-multiple="{$item.type=='file'?'false':'true'}"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
|
||
<span><button type="button" id="fachoose-{$item.name}" class="btn btn-primary fachoose" data-input-id="c-{$item.name}" data-multiple="{$item.type=='file'?'false':'true'}"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
|
||
<span class="msg-box n-right" for="c-{$item.name}"></span>
|
||
</div>
|
||
{/case}
|
||
{case switch}
|
||
<input id="c-{$item.name}" name="row[{$item.name}]" type="hidden" value="{:$item.value?1:0}">
|
||
<a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-{$item.name}" data-yes="1" data-no="0">
|
||
<i class="fa fa-toggle-on text-success {if !$item.value}fa-flip-horizontal text-gray{/if} fa-2x"></i>
|
||
</a>
|
||
{/case}
|
||
{/switch}
|
||
</div>
|
||
<div class="col-sm-4"></div>
|
||
</div>
|
||
</td>
|
||
</tr>
|
||
{/foreach}
|
||
</tbody>
|
||
<tfoot>
|
||
<tr>
|
||
<td></td>
|
||
<td>
|
||
<button type="submit" class="btn btn-success btn-embossed">{:__('OK')}</button>
|
||
<button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
|
||
</td>
|
||
<td></td>
|
||
</tr>
|
||
</tfoot>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
{/foreach}
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</form> |