blacklanternsecurity / writehat

A pentest reporting tool written in Python. Free yourself from Microsoft Word.
GNU General Public License v3.0
1.28k stars 225 forks source link

Add "Today" button to Title Page component date field #101

Closed kerrymilan closed 1 year ago

kerrymilan commented 1 year ago

This PR adds a button to the "Title Page" and "Title Page (Abridged)" components which sets the current value of the Date fields to today's date. It uses a custom widget template which adds a javascript-driven hyperlink to the existing template, then subclasses the SelectDateWidget class to use the modified template.