12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- <extend name="Public:base" />
- <block name="content">
- <div class="page-header">
- <h1>
- {$breadcrumb2}
- <small>
- <i class="icon-double-angle-right"></i>
- {$crumbs}
- </small>
- </h1>
- </div>
- <div class="row">
- <div class="col-xs-12">
- <form class="form-horizontal" id="validation-form" method="post" action='{$action}'>
-
- <notempty name="Think.get.id">
- <input name="order_status_id" type="hidden" value="{$Think.get.id}" />
- </notempty>
-
- <div class="form-group">
- <label class="col-sm-2 control-label no-padding-left"> * 订单状态名称 </label>
- <div class="col-sm-10">
- <div class="clearfix">
- <input name="name" id="name" class="col-xs-10 col-sm-5" value="{$d.name|default=''}" type="text">
- </div>
- </div>
- </div>
- <div class="space-4"></div>
-
-
-
- <div class="form-group">
- <label class="col-sm-1 control-label no-padding-left"> </label>
- <div class="col-sm-11">
- <input name="send" type="submit" value="提交" class="btn btn-primary" />
- </div>
- </div>
- </form>
- </div>
- </div>
- </block>
- <block name="javascript">
- <script src="__JS__/jquery.validate.min.js"></script>
- <script>
- $(function(){
-
- $('#validation-form').validate({
- errorElement: 'div',
- errorClass: 'help-block',
- focusInvalid: false,
- rules: {
- name: {
- required: true,
- minlength: 2
- }
- },
-
- messages: {
-
- name: {
- required: "必填",
- minlength: "不得少于2个字"
- }
-
- },
-
- invalidHandler: function (event, validator) { //display error alert on form submit
- $('.alert-danger', $('.login-form')).show();
- },
-
- highlight: function (e) {
- $(e).closest('.form-group').removeClass('has-info').addClass('has-error');
- },
-
- success: function (e) {
- $(e).closest('.form-group').removeClass('has-error').addClass('has-info');
- $(e).remove();
- },
-
- errorPlacement: function (error, element) {
- error.insertAfter(element.parent());
- },
- });
-
- });
- </script>
- </block>
|