Add a modal dialog for adding environments accessible through the Actions button if the trial has measurement data

BMS-78

Reviewer: Daniel Villafuerte
Code cleanup
1. Remove trailing whitespaces.
2. Use double quotes for attributes
3. Move else beside the closing brace

BMS-78

Reviewer: Chezka Arevalo