Commit 2aafa79c by Mei Romauli Sagala

edit

parent d2e983a8
...@@ -72,7 +72,7 @@ require_once(dirname(__FILE__).'/common/header.php'); ...@@ -72,7 +72,7 @@ require_once(dirname(__FILE__).'/common/header.php');
<div class="form-group"> <div class="form-group">
<label class="col-md-4 control-label"></label> <label class="col-md-4 control-label"></label>
<div class="col-md-4"> <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>
</div> </div>
</fieldset> </fieldset>
......
...@@ -14,52 +14,47 @@ ...@@ -14,52 +14,47 @@
}, 'json'); }, 'json');
}, },
fields: { fields: {
first_name: { name: {
validators: { validators: {
stringLength: { stringLength: {
min: 2, min: 2,
}, },
notEmpty: {
message: 'Isi Nama Depan'
}
} }
}, },
last_name: { address: {
validators: { validators: {
stringLength: { stringLength: {
min: 2, min: 8,
}, },
notEmpty: { notEmpty: {
message: 'Isi Nama Belakang' message: 'Isi Alamat Anda'
} }
} }
}, },
email: {
phone: {
validators: { validators: {
notEmpty: { stringLength: {
message: 'Isi E-mail Anda' max: 13,
}
}, },
}
email: {
validators: {
emailAddress: { emailAddress: {
message: 'Isi E-mail Anda Dengan Benar' message: 'Isi E-mail Anda Dengan Benar'
} }
} }
}, },
phone: {
validators: {
notEmpty: {
message: 'Isi Nomor Anda'
}
}
}, username: {
address: {
validators: { validators: {
stringLength: { stringLength: {
min: 8, min: 2,
}, },
notEmpty: {
message: 'Isi Alamat Anda'
}
} }
}, },
password: { password: {
...@@ -67,32 +62,9 @@ ...@@ -67,32 +62,9 @@
stringLength: { stringLength: {
min: 4, 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(); $('#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