LPS-37306

Hey Nate,

@ipeychev  has added this to the template editor first, but the end goal is to add it to the new UI that we are working on for the Role Permission Definition UI. 

It's just a few lines of JS, but if you don't have time to review them today I would appreciate if you could at least take a quick look and let us know if there is anything that you see at first sight that should be changed.