Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

Have Django set interactive flag #49

Open
tercer opened this issue Nov 6, 2018 · 1 comment
Open

Have Django set interactive flag #49

tercer opened this issue Nov 6, 2018 · 1 comment
Assignees

Comments

@tercer
Copy link
Member

tercer commented Nov 6, 2018

There is a flag in the frontend javascript called interactive here: https://github.com/TwoRavens/PSI/blob/3727925d4af0df8dd6e5bdf8f22bf50e78054673/assets/code/interface.js#L84

For development purposes, this was set in the javascript, to switch between functionality for when the depositor or the analyst is using the interface. But now we should set this flag from Django, and work out how to best serve the page in these two different modes.

@TurboFreeze
Copy link
Contributor

TurboFreeze commented Nov 23, 2018

Important note: the interactive queries version actually uses a different interface. Specifically, when the interactive flag is set to true to run the interactive queries version, then interactiveInterface.html needs to be served instead of interface.html that is currently be served. Therefore, the flag in Django should also incorporate logic regarding which interface to use. I have added the interactiveInterface.html to the \templates directory already.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants