Commit 2aafa79c by Mei Romauli Sagala

edit

parent d2e983a8
......@@ -72,7 +72,7 @@ require_once(dirname(__FILE__).'/common/header.php');
<div class="form-group">
<label class="col-md-4 control-label"></label>
<div class="col-md-4">
<button type="submit" class="btn btn-warning" > Daftar <span class="glyphicon glyphicon-send"></span></button>
<button type="submit" class="btn btn-warning" onclick="this.form.reset();"> Daftar <span class="glyphicon glyphicon-send"></span></button>
</div>
</div>
</fieldset>
......
......@@ -14,52 +14,47 @@
}, 'json');
},
fields: {
first_name: {
name: {
validators: {
stringLength: {
min: 2,
},
notEmpty: {
message: 'Isi Nama Depan'
}
}
},
last_name: {
address: {
validators: {
stringLength: {
min: 2,
min: 8,
},
notEmpty: {
message: 'Isi Nama Belakang'
message: 'Isi Alamat Anda'
}
}
},
email: {
phone: {
validators: {
notEmpty: {
message: 'Isi E-mail Anda'
},
emailAddress: {
message: 'Isi E-mail Anda Dengan Benar'
stringLength: {
max: 13,
}
}
},
phone: {
}
email: {
validators: {
notEmpty: {
message: 'Isi Nomor Anda'
emailAddress: {
message: 'Isi E-mail Anda Dengan Benar'
}
}
},
address: {
username: {
validators: {
stringLength: {
min: 8,
stringLength: {
min: 2,
},
notEmpty: {
message: 'Isi Alamat Anda'
}
}
},
password: {
......@@ -67,32 +62,9 @@
stringLength: {
min: 4,
},
notEmpty: {
message: 'Isi password Anda'
}
}
},
state: {
validators: {
notEmpty: {
message: 'Pilih Provinsi'
}
}
},
zip: {
validators: {
notEmpty: {
message: 'Isi Zip kode'
},
}
},
sex:{
validators:{
notEmpty:{
message: 'Pilih Jenis Kelamin'
}
}
}
}
})
$('#contact_form').data('bootstrapValidator').resetForm();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment