DiverseYouthNightSchool/application/admin/view/famysql/table/table_add.html

67 lines
2.6 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
{if $group == null}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Addon')}</label>
<div class="col-xs-12 col-sm-8">
<select id="c-addon" data-rule="required" class="form-control selectpicker" name="row[addon]">
{foreach name="groupsList" item="vo"}
<option value="{$key}" {in name="key" value="" }selected{/in}>{$vo}</option>
{/foreach}
</select>
</div>
</div>
{else}
<input id="c-addon" data-rule="required" class="form-control" placeholder="{:__('Addon')}" name="row[addon]"
type="hidden" value="{$group}">
{/if}
<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" placeholder="{:__('Name placeholder')}" name="row[name]"
type="text" value="">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Engine')}</label>
<div class="col-xs-12 col-sm-8">
{:build_radios('row[engine]', ['InnoDB'=>__('InnoDB'), 'MyISAM'=>__('MyISAM')])}
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Charset')}</label>
<div class="col-xs-12 col-sm-8">
<select id="c-charset" data-rule="required" class="form-control selectpicker" name="row[charset]">
{foreach name="charsetList" item="vo"}
<option value="{$vo}" {in name="vo" value="" }selected{/in}>{$vo}</option>
{/foreach}
</select>
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Collation')}</label>
<div class="col-xs-12 col-sm-8">
<input id="c-collation" data-rule="required" class="form-control selectpage"
data-source="famysql/table/getCollation" data-field="collation" data-primary-key="collation" name="row[collation]" type="text" value="utf8mb4_general_ci">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Comment')}</label>
<div class="col-xs-12 col-sm-8">
<input id="c-comment" data-rule="required" class="form-control" placeholder="{:__('Comment placeholder')}"
name="row[comment]" type="text" value="">
</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>