Review html for the forms

- Remove icon error from html (Added with css)
- Add maxlenght
- Remove class has-success
- Translate placeholder
- Confirm dialog to delete an address
This commit is contained in:
touffies
2013-11-05 15:49:55 +01:00
parent 0431010a65
commit aa030f20ea
12 changed files with 222 additions and 273 deletions

View File

@@ -195,7 +195,7 @@
});
// Apply validation
$('#form-contact, #form-register').validate({
$('#form-contact, #form-register, #form-address').validate({
highlight: function(element) {
$(element).closest('.form-group').addClass('has-error');
},
@@ -203,14 +203,14 @@
$(element).closest('.form-group').removeClass('has-error');
},
errorElement: 'span',
errorClass: 'help-block',
errorClass: 'help-block'/*,
errorPlacement: function(error, element) {
if(element.parent('.input-group').length || element.prop('type') === 'checkbox' || element.prop('type') === 'radio'){
error.prepend('<i class="icon-remove"></i> ').insertAfter(element.parent());
}else{
error.prepend('<i class="icon-remove"></i> ').insertAfter(element);
}
}
}*/
});

View File

@@ -25,6 +25,13 @@ body { padding-top: 80px; }
}
}
.has-error .help-block {
&:before {
.icon(@remove);
margin-right: .3em;
}
}
label { font-weight: 600; }
// Dropdowns