Skip to content

Commit

Permalink
Merge pull request #117 from opensafely-core/refactor-views
Browse files Browse the repository at this point in the history
Refactor views
  • Loading branch information
rebkwok authored Feb 29, 2024
2 parents 239215c + 433b9cf commit 0e60c36
Show file tree
Hide file tree
Showing 15 changed files with 679 additions and 610 deletions.
5 changes: 5 additions & 0 deletions airlock/forms.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
from django import forms


class TokenLoginForm(forms.Form):
user = forms.CharField()
token = forms.CharField()


class AddFileForm(forms.Form):
filegroup = forms.ChoiceField(required=False)
new_filegroup = forms.CharField(required=False)
Expand Down
316 changes: 0 additions & 316 deletions airlock/views.py

This file was deleted.

14 changes: 14 additions & 0 deletions airlock/views/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
from .auth import login, logout
from .index import index
from .request import (
request_index,
request_reject,
request_release_files,
request_submit,
request_view,
)
from .workspace import (
workspace_add_file_to_request,
workspace_index,
workspace_view,
)
Loading

0 comments on commit 0e60c36

Please sign in to comment.