change the show of `type` in the form
fix code style
check constraint before save an material

add list for all material