<style>
|
.parameter{ display:none}
|
</style>
|
<form id="add-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">{:__('Name')}:</label>
|
<div class="col-xs-12 col-sm-8">
|
<input id="c-name" class="form-control" name="row[name]" type="text">
|
</div>
|
</div>
|
<div class="form-group">
|
<label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
|
<div class="col-xs-12 col-sm-8">
|
|
<select id="c-type" class="form-control selectpicker" name="row[type]">
|
{foreach name="typeList" item="vo"}
|
<option value="{$key}" {in name="key" value=""}selected{/in}>{$vo}</option>
|
{/foreach}
|
</select>
|
|
</div>
|
</div>
|
<div class="form-group">
|
<label class="control-label col-xs-12 col-sm-2">{:__('Image')}:</label>
|
<div class="col-xs-12 col-sm-8">
|
<div class="input-group">
|
<input id="c-image" class="form-control" size="50" name="row[image]" type="text">
|
<div class="input-group-addon no-border no-padding">
|
<span><button type="button" id="faupload-image" class="btn btn-danger faupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
|
<span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
|
</div>
|
<span class="msg-box n-right" for="c-image"></span>
|
</div>
|
<ul class="row list-inline faupload-preview" id="p-image"></ul>
|
</div>
|
</div>
|
<div class="form-group">
|
<label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
|
<div class="col-xs-12 col-sm-8">
|
|
<div class="radio">
|
{foreach name="statusList" item="vo"}
|
<label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="0"}checked{/in} /> {$vo}</label>
|
{/foreach}
|
</div>
|
|
</div>
|
</div>
|
<div class="form-group">
|
<label class="control-label col-xs-12 col-sm-2">{:__('Click_count')}:</label>
|
<div class="col-xs-12 col-sm-8">
|
<input id="c-click_count" class="form-control" name="row[click_count]" type="number">
|
</div>
|
</div>
|
<div class="form-group">
|
<label class="control-label col-xs-12 col-sm-2">{:__('Note')}:</label>
|
<div class="col-xs-12 col-sm-8">
|
<input id="c-note" class="form-control" name="row[note]" type="text">
|
</div>
|
</div>
|
<div class="form-group">
|
<label class="control-label col-xs-12 col-sm-2">{:__('Colour')}:</label>
|
<div class="col-xs-12 col-sm-8">
|
<input id="c-colour" class="form-control" name="row[colour]" type="text">
|
</div>
|
</div>
|
<div class="form-group">
|
<label class="control-label col-xs-12 col-sm-2">{:__('Url_type')}:</label>
|
<div class="col-xs-12 col-sm-8">
|
|
<select id="c-url_type" class="form-control selectpicker" name="row[url_type]">
|
{foreach name="urlTypeList" item="vo"}
|
<option value="{$key}" {in name="key" value=""}selected{/in}>{$vo}</option>
|
{/foreach}
|
</select>
|
|
</div>
|
</div>
|
<div class="form-group parameter app-id">
|
<label class="control-label col-xs-12 col-sm-2">{:__('小程序APPID')}:</label>
|
<div class="col-xs-12 col-sm-8">
|
<input id="c-appId" class="form-control" name="row[parameter_json][appId]" type="text">
|
</div>
|
</div>
|
<div class="form-group parameter route">
|
<label class="control-label col-xs-12 col-sm-2">{:__('小程序路径')}:</label>
|
<div class="col-xs-12 col-sm-8">
|
<input id="c-route" class="form-control" name="row[parameter_json][route]" type="text">
|
</div>
|
</div>
|
<div class="form-group parameter link">
|
<label class="control-label col-xs-12 col-sm-2">{:__('Url')}:</label>
|
<div class="col-xs-12 col-sm-8">
|
<input id="c-url" class="form-control" name="row[parameter_json][url]" type="text">
|
</div>
|
</div>
|
<div class="form-group parameter activity-id">
|
<label class="control-label col-xs-12 col-sm-2">{:__('淘宝活动ID')}:</label>
|
<div class="col-xs-12 col-sm-8">
|
<input id="c-activityId" class="form-control" name="row[parameter_json][activityId]" type="text">
|
</div>
|
</div>
|
<div class="form-group parameter goods-id">
|
<label class="control-label col-xs-12 col-sm-2">{:__('商品ID')}:</label>
|
<div class="col-xs-12 col-sm-8">
|
<input id="c-goodsId" class="form-control" name="row[parameter_json][goodsId]" type="text">
|
</div>
|
</div>
|
<div class="form-group parameter platform">
|
<label class="control-label col-xs-12 col-sm-2">{:__('平台信息')}:</label>
|
<div class="col-xs-12 col-sm-8">
|
<select id="c-platform" class="form-control selectpicker" name="row[parameter_json][goods_platform]">
|
<option value="">请选择平台信息</option>
|
{foreach name="platformList" item="vo"}
|
<option value="{$key}" {in name="key" value=""}selected{/in}>{$vo}</option>
|
{/foreach}
|
</select>
|
</div>
|
</div>
|
<div class="form-group parameter template-id">
|
<label class="control-label col-xs-12 col-sm-2">{:__('模版ID')}:</label>
|
<div class="col-xs-12 col-sm-8">
|
<input id="c-template_id" class="form-control" name="row[parameter_json][template_id]" type="text">
|
</div>
|
</div>
|
<div class="form-group parameter jtk_act_id">
|
<label class="control-label col-xs-12 col-sm-2">{:__('转链参数')}:</label>
|
<div class="col-xs-12 col-sm-8">
|
<select id="c-jtk_act_id" class="form-control selectpicker" name="row[parameter_json][jtk_act_id]">
|
<option value="">请选择活动</option>
|
{foreach name="jtkActivityIds" item="vo"}
|
<option value="{$key}" {in name="key" value=""}selected{/in}>{$vo}</option>
|
{/foreach}
|
</select>
|
|
</div>
|
</div>
|
<div class="form-group parameter cmark">
|
<label class="control-label col-xs-12 col-sm-2">{:__('字段标识')}:</label>
|
<div class="col-xs-12 col-sm-8">
|
<input id="c-cmark" class="form-control" name="row[parameter_json][cmark]" type="text">
|
</div>
|
</div>
|
<div class="form-group">
|
<label class="control-label col-xs-12 col-sm-2">{:__('Sort')}:</label>
|
<div class="col-xs-12 col-sm-8">
|
<input id="c-sort" class="form-control" name="row[sort]" type="number">
|
</div>
|
</div>
|
<div class="form-group">
|
<label class="control-label col-xs-12 col-sm-2">{:__('Start_time')}:</label>
|
<div class="col-xs-12 col-sm-8">
|
<input id="c-start_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[start_time]" type="text" value="{:date('Y-m-d H:i:s')}">
|
</div>
|
</div>
|
<div class="form-group">
|
<label class="control-label col-xs-12 col-sm-2">{:__('End_time')}:</label>
|
<div class="col-xs-12 col-sm-8">
|
<input id="c-end_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[end_time]" type="text" value="{:date('Y-m-d H:i:s')}">
|
</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-primary btn-embossed disabled">{:__('OK')}</button>
|
<button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
|
</div>
|
</div>
|
</form>
|