First, sorry for my poor english, it's not my native language.
I`m writing a simple activity module and have one trouble - I need to distinct teacher and student. For example, let's say I have two buttons, created by simple HTML. Teacher should see bouth of them, but student should see only one button. So, I need something like that:
But I don't know how to do this. Searched in Google, got a few solutions, but they don't work in my version of Moodle. And they were kinda hard to understand, I need something realy simple, because I am not even a programmer.
Thank you for answers.