Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Arkindex
Backend
Commits
8edd31e8
Commit
8edd31e8
authored
6 years ago
by
Erwan Rouchet
Committed by
Bastien Abadie
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Move CorpusCreate to frontend
parent
818f7992
No related branches found
No related tags found
1 merge request
!151
Move CorpusCreate to frontend
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
arkindex/documents/urls.py
+1
-2
1 addition, 2 deletions
arkindex/documents/urls.py
arkindex/documents/views.py
+1
-9
1 addition, 9 deletions
arkindex/documents/views.py
arkindex/templates/documents/corpus.create.html
+0
-7
0 additions, 7 deletions
arkindex/templates/documents/corpus.create.html
with
2 additions
and
18 deletions
arkindex/documents/urls.py
+
1
−
2
View file @
8edd31e8
from
django.conf
import
settings
from
django.conf.urls
import
url
,
include
from
arkindex.documents.views
import
CorpusCreate
from
arkindex.project.views
import
FrontendView
...
...
@@ -10,7 +9,7 @@ urlpatterns = [
url
(
r
'
^pages/$
'
,
FrontendView
.
as_view
(),
name
=
'
pages
'
),
url
(
r
'
^acts/$
'
,
FrontendView
.
as_view
(),
name
=
'
acts
'
),
url
(
r
'
^corpus/new/$
'
,
CorpusCreate
.
as_view
(),
name
=
'
corpus-create
'
),
url
(
r
'
^corpus/new/$
'
,
FrontendView
.
as_view
(),
name
=
'
corpus-create
'
),
]
if
'
debug_toolbar
'
in
settings
.
INSTALLED_APPS
:
...
...
This diff is collapsed.
Click to expand it.
arkindex/documents/views.py
+
1
−
9
View file @
8edd31e8
from
django.views.generic
import
TemplateView
,
View
from
django.views.generic
import
View
from
django.views.generic.detail
import
SingleObjectMixin
from
django.contrib.auth.mixins
import
LoginRequiredMixin
from
django.http
import
HttpResponse
from
arkindex.documents.models
import
Element
,
ElementType
,
Act
,
Page
,
Corpus
import
io
import
csv
class
CorpusCreate
(
LoginRequiredMixin
,
TemplateView
):
"""
Create a new corpus
"""
template_name
=
'
documents/corpus.create.html
'
class
DumpActs
(
SingleObjectMixin
,
View
):
"""
Dump acts and linked surfaces data for a given volume in CSV format
...
...
This diff is collapsed.
Click to expand it.
arkindex/templates/documents/corpus.create.html
deleted
100644 → 0
+
0
−
7
View file @
818f7992
{% extends 'base.html' %}
{% block content %}
<div
id=
"app"
>
<Corpus-Create
/>
</div>
{% endblock %}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment