62 lines
2.1 KiB
HTML
Raw Normal View History

<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
<div class="alert">
<h4>{$row.name|htmlentities}</h4>
</div>
<table class="table table-hover">
<thead>
<tr>
<th>字段名</th>
<th>备注</th>
<th></th>
</tr>
</thead>
<tbody>
{foreach $row->content_arr as $k=>$v}
<tr>
<td>{$k|htmlentities}</td>
<td>{$v|htmlentities}</td>
<td class="form-inline"><input type="text" name="row[field][{$k|htmlentities}]" class="form-control"></td>
</tr>
{/foreach}
<tr>
<td>receiver_admin_ids</td>
<td>(选填)接受消息管理员ids</td>
<td class="form-inline"><input type="text" name="row[receiver_admin_ids]" class="form-control selectpage" data-source="auth/admin" data-field="nickname"></td>
</tr>
<tr>
<td>receiver_admin_group_ids</td>
<td>(选填)接受消息管理员组别ids</td>
<td class="form-inline"><input type="text" name="row[receiver_admin_group_ids]" class="form-control selectpage" data-source="auth/group" data-field="name"></td>
</tr>
</tbody>
</table>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">调用代码</h3>
</div>
<div class="panel-body">
<pre>
// 发送通知-{$row.name|htmlentities}
$noticeParams = [
'event' => '{$row.event|htmlentities}',
'params' => {:var_export($row->content_arr2, true)}
];
\Think\Hook::listen('send_notice', $noticeParams);
</pre>
</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>