fix teacher resource add form.