OpenTechStrategies / streetcrm

StreetCRM is a free software contact management application
Other
5 stars 4 forks source link

"Archive" button shows up on "add new" form #328

Open cecilia-donnelly opened 7 years ago

cecilia-donnelly commented 7 years ago

For both institutions and participants, the "archive" button shows up on the create form. This is a bug, especially since clicking the archive button on that form does nothing.

The archive buttons are purple in the screenshots below:

screenshot from 2017-10-23 12-01-44 screenshot from 2017-10-23 12-07-47

This is technical debt from when I added the archive button, most likely. See ee443ad6ffd39b4814ec0c1abfcd3f2324f1fd82. The built-in show_delete_link variable has more information than my new can_archive variable -- it's not just about permission, it's also about the context. See admin_modify.py, in django/contrib/admin.