$model->formName(),
'enableAjaxValidation' => true,
'validationUrl' => Url::to(['ajax-edit', 'name' => $model['name'], 'type' => $model['type']]),
'fieldConfig' => [
'template' => "
{label}
{input}\n{hint}\n{error}
",
],
]);
?>
= $form->field($model, 'template_id')->textInput()->hint('注意:请自行去微信公众号后台申请微信模板消息ID'); ?>
= $form->field($model, 'content')->widget(MultipleInput::class, [
'iconSource' => 'fa',
'max' => 10,
'columns' => [
[
'name' => 'key',
'title' => '参数名',
'enableError' => false,
'options' => [
'class' => 'input-priority'
]
],
[
'name' => 'value',
'title' => '参数值',
'enableError' => false,
'options' => [
'class' => 'input-priority'
]
],
[
'name' => 'color',
'title' => '颜色(默认:#000000)',
'enableError' => false,
'options' => [
'class' => 'input-priority',
]
],
]
])->label(false);
?>
= $form->field($model, 'url')->textInput()->hint('例如: https://www.baidu.com/index?foo=bar'); ?>
= $form->field($model, 'status')->radioList(StatusEnum::getMap()); ?>