DiverseYouthNightSchool/application/admin/view/school/message_config/edit.html

130 lines
6.5 KiB
HTML
Raw Normal View History

<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">{:__('Name')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Event')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-event" data-rule="required" class="form-control" name="row[event]" type="text" value="{$row.event|htmlentities}">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Logo_image')}:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-logo_image" data-rule="required" class="form-control" size="50" name="row[logo_image]" type="text" value="{$row.logo_image|htmlentities}">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="faupload-logo_image" class="btn btn-danger faupload" data-input-id="c-logo_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-logo_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
<span><button type="button" id="fachoose-logo_image" class="btn btn-primary fachoose" data-input-id="c-logo_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-logo_image"></span>
</div>
<ul class="row list-inline faupload-preview" id="p-logo_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="$row.status"}checked{/in} /> {$vo}</label>
{/foreach}
</div>
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Wechat_wap')}:</label>
<div class="col-xs-12 col-sm-8">
<select id="c-wechat_wap" data-rule="required" class="form-control selectpicker" name="row[wechat_wap]">
{foreach name="wechatWapList" item="vo"}
<option value="{$key}" {in name="key" value="$row.wechat_wap"}selected{/in}>{$vo}</option>
{/foreach}
</select>
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Message')}:</label>
<div class="col-xs-12 col-sm-8">
<select id="c-message" data-rule="required" class="form-control selectpicker" name="row[message]">
{foreach name="messageList" item="vo"}
<option value="{$key}" {in name="key" value="$row.message"}selected{/in}>{$vo}</option>
{/foreach}
</select>
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Selfmail')}:</label>
<div class="col-xs-12 col-sm-8">
<select id="c-selfmail" data-rule="required" class="form-control selectpicker" name="row[selfmail]">
{foreach name="selfmailList" item="vo"}
<option value="{$key}" {in name="key" value="$row.selfmail"}selected{/in}>{$vo}</option>
{/foreach}
</select>
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Message_id')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-message_id" class="form-control" name="row[message_id]" type="text" value="{$row.message_id|htmlentities}">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Wechat_wap_id')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-wechat_wap_id" class="form-control" name="row[wechat_wap_id]" type="text" value="{$row.wechat_wap_id|htmlentities}">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Selfmail_title')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-selfmail_title" class="form-control" name="row[selfmail_title]" type="text" value="{$row.selfmail_title|htmlentities}">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Selfmail_template_text')}:</label>
<div class="col-xs-12 col-sm-8">
<textarea id="c-selfmail_template_text" class="form-control " rows="5" name="row[selfmail_template_text]" cols="50">{$row.selfmail_template_text|htmlentities}</textarea>
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Configjson')}:</label>
<div class="col-xs-12 col-sm-8">
<dl class="fieldlist" data-name="row[configjson]">
<dd>
<ins>{:__('Key')}</ins>
<ins>{:__('Value')}</ins>
</dd>
<dd><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> {:__('Append')}</a></dd>
<textarea name="row[configjson]" class="form-control hide" cols="30" rows="5">{$row.configjson|htmlentities}</textarea>
</dl>
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-weigh" class="form-control" name="row[weigh]" type="number" value="{$row.weigh|htmlentities}">
</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>
</div>
</div>
</form>