ephios icon indicating copy to clipboard operation
ephios copied to clipboard

280 areyousure

Open garinm90 opened this issue 4 years ago • 3 comments

Are you sure?-Prompts #280

Add are you sure jQuery plugin. Load this plugin on form pages. Add classes to inputs that dynamically create new forms to be monitored.

garinm90 avatar Mar 11 '21 16:03 garinm90

Coverage Status

Coverage increased (+0.2%) to 88.542% when pulling abcb27bc311d45d70dca674afd09c980fdca8834 on garinm90:280-areyousure into 7d04d3287ae16ee332e31add1f25829b199f29a5 on ephios-dev:main.

coveralls avatar Mar 11 '21 16:03 coveralls

@garinm90 Nice! Using the plugin is was very simple! Only thing on my mind now is internationalization. How do we get an e.g. german translation into the alert?

After doing some digging looks like Django offers a solution for this. https://docs.djangoproject.com/en/3.1/topics/i18n/translation/#internationalization-in-javascript-code

I'll look into adding this so future JavaScript modules will also have access to these translations!

garinm90 avatar Mar 15 '21 17:03 garinm90

By the way, we are already using jsi18n...

felixrindt avatar Mar 20 '21 13:03 felixrindt