0

I have the following template to delete an account :

enter image description here

To Delete this account first you need to tick the checkbox then Button Delete will be enabled, this is what to be done

My question is it possible to perform this using jinja2 Templating ? if yes how ?

Thanks. /K

davidism
  • 121,510
  • 29
  • 395
  • 339
koul
  • 431
  • 2
  • 10
  • 20

1 Answers1

0

Basically, you want your checkbox to be required, right?
That's simple: use <input required> if you only want to notify the user on clicking the button without checked box.
If you want to disable the button entirely, you will need to write some js.

RamenChef
  • 5,557
  • 11
  • 31
  • 43
janpeterka
  • 568
  • 4
  • 17