-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use fullpage markdown widget for documentation pages (#3762)
Use the fullpage markdown editor for documentation pages. This splits up content and metadata editing. Related to #3682
- Loading branch information
Showing
7 changed files
with
119 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
app/grandchallenge/documentation/templates/documentation/docpage_content_update.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{% extends "documentation/docpage_form.html" %} | ||
{% load crispy from crispy_forms_tags %} | ||
|
||
{% block container %}container-fluid{% endblock %} | ||
|
||
{% block outer_content %} | ||
|
||
<h2>Update Page</h2> | ||
|
||
{% crispy form %} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,30 @@ | ||
from django.urls import path | ||
|
||
from grandchallenge.documentation.views import ( | ||
DocPageContentUpdate, | ||
DocPageCreate, | ||
DocPageDetail, | ||
DocPageList, | ||
DocPageUpdate, | ||
DocPageMetadataUpdate, | ||
DocumentationHome, | ||
) | ||
|
||
app_name = "documentation" | ||
|
||
|
||
urlpatterns = [ | ||
path("", DocumentationHome.as_view(), name="home"), | ||
path("overview/", DocPageList.as_view(), name="list"), | ||
path("create/", DocPageCreate.as_view(), name="create"), | ||
path("<slug:slug>/", DocPageDetail.as_view(), name="detail"), | ||
path("<slug:slug>/update/", DocPageUpdate.as_view(), name="update"), | ||
path( | ||
"<slug:slug>/content-update/", | ||
DocPageContentUpdate.as_view(), | ||
name="content-update", | ||
), | ||
path( | ||
"<slug:slug>/metadata-update/", | ||
DocPageMetadataUpdate.as_view(), | ||
name="metadata-update", | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters