Looks like you already know the sequence of commands to run. I can make a bash script that takes in your desired mac for eth0 and perform the sequence of steps. I can make the file read-only using the script too, so you won't have to do that using the web UI.
If you would like to input the mac another way like via a standalone web UI, or if your intention is just to randomize your mac so you get assigned a different IP, I can set that up for you too.