Update add.php

The model can have multiple field not (always 'name'), these fields can be grabbed from the variable $fields witch is prepared previously in generate_shell.php/generate_views()