123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- <form id="edit-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST" action="">
- <div class="form-group">
- <label for="c-title" class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-title" class="form-control" name="row[title]" type="text" value="{$row.title}">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">平台:</label>
- <div class="col-xs-12 col-sm-8">
- <!-- 渠道选择 -->
- <div class="channel-list">
- {foreach name="platformList" item="vo" key="key"}
- <label class="radio-inline">
- <input type="radio" name="row[platform]" value="{$key}" data-rule="checked" data-rule-message="请至少选择一个活动渠道" {if condition="$row.platform && $row.platform == $key"}checked{/if}>
- {$vo}
- </label>
- {/foreach}
- </div>
- </div>
- </div>
- <div class="form-group">
- <label for="c-iteration_version" class="control-label col-xs-12 col-sm-2">{:__('Iterationversion')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-iteration_version" class="form-control" name="row[iteration_version]" type="text" value="{$row.iteration_version}">
- </div>
- </div>
- <div class="form-group">
- <label for="c-old_version" class="control-label col-xs-12 col-sm-2">{:__('Oldversion')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-old_version" class="form-control" name="row[old_version]" type="text" value="{$row.old_version}">
- </div>
- </div>
- <div class="form-group">
- <label for="c-new_version" class="control-label col-xs-12 col-sm-2">{:__('Newversion')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-new_version" class="form-control" name="row[new_version]" type="text" value="{$row.new_version}">
- </div>
- </div>
- <div class="form-group">
- <label for="c-package_size" class="control-label col-xs-12 col-sm-2">{:__('Packagesize')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-package_size" class="form-control" name="row[package_size]" type="text" value="{$row.package_size}">
- </div>
- </div>
- <div class="form-group">
- <label for="c-content" class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
- <div class="col-xs-12 col-sm-8">
- <textarea id="c-content" class="form-control" name="row[content]">{$row.content}</textarea>
- </div>
- </div>
- <div class="form-group">
- <label for="c-download_url" class="control-label col-xs-12 col-sm-2">{:__('Downloadurl')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-download_url" class="form-control" name="row[download_url]" type="text" value="{$row.download_url}">
- </div>
- </div>
- <div class="form-group">
- <label for="c-enforce" class="control-label col-xs-12 col-sm-2">{:__('Enforce')}:</label>
- <div class="col-xs-12 col-sm-8">
- {:build_radios('row[enforce]', [1=>__('Yes'), 0=>__('No')], $row['enforce'])}
- </div>
- </div>
- <div class="form-group">
- <label for="c-weigh" 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}">
- </div>
- </div>
- <div class="form-group">
- <label for="c-status" class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
- <div class="col-xs-12 col-sm-8">
- {:build_radios('row[status]', ['normal'=>__('Normal'), 'hidden'=>__('Hidden')], $row['status'])}
- </div>
- </div>
- <div class="form-group hide 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>
|