Module frontend.app.views.study
Functions
def close_study(id)-
Closes a study by setting its status to closed (status 4).
Args
id:int- The ID of the study to be closed.
Returns
Redirects to the study page with a success message.
def confirm_new_study()-
Confirms the creation of a new study by processing the submitted form data and providing a preview.
Returns
Rendered HTML template to confirm the new study creation.
def create_new_study()-
Creates a new study based on confirmed data and stores it in the database.
Returns
Redirects to the newly created study's page or updates an existing study.
def delete_study(id)-
Deletes a specific study and its associated data after user confirmation.
Args
id:int- The ID of the study to be deleted.
Returns
Redirects to the dashboard if the study is deleted.
def edit_study(id)-
Renders the form to edit an existing study, with pre-filled data.
Args
id:int- The ID of the study to be edited.
Returns
Rendered HTML template with the study edit form.
def new_study()-
Renders the form for creating a new study, with populated choices for type, search engines, and classifiers.
Returns
Rendered HTML template with the new study form.
def studies()-
Displays a paginated list of studies. Accessible only to users with the 'Admin' role.
def study(id)-
Displays detailed information about a specific study, including progress and statistics.
Args
id:int- The ID of the study to be displayed.
Returns
Rendered HTML template with study details and progress information.