The past tense of have one foot in the grave is had one foot in the grave.
The third-person singular simple present indicative form of have one foot in the grave is has one foot in the grave.
The present participle of have one foot in the grave is having one foot in the grave.
The past participle of have one foot in the grave is had one foot in the grave.