diff --git a/src/templates/src/project_edit.html b/src/templates/src/project_edit.html index 7f0c663..c0ac85a 100644 --- a/src/templates/src/project_edit.html +++ b/src/templates/src/project_edit.html @@ -1,4 +1,4 @@ -{{ template "base.html" . }} +{{ template "base-2024.html" . }} {{ define "extrahead" }} {{ template "markdown_previews.html" .TextEditor }} @@ -22,22 +22,71 @@ {{ end }} {{ define "content" }} -
- {{ if .Editing }} -

Edit {{ .ProjectSettings.Name }}

- {{ else }} -

Create a new {{ if .ProjectSettings.JamParticipation }}jam {{ end }}project

- {{ end }} -
- {{ csrftoken .Session }} -
+
+
+ + {{ csrftoken .Session }} + +

+ {{ if .Editing }} + Edit {{ .ProjectSettings.Name }} + {{ else }} + Create a {{ if .ProjectSettings.JamParticipation }}jam {{ end }}project + {{ end }} +

+ +
+
-
Project name:
+
Project title:
* Required
+
+
Short description:
+
+ +
Plaintext only. No links or markdown.
+
+
+
+
Long description:
+
+ +
+
+
+ Upload files by dragging & dropping, pasting, or them. +
+
+
+
+
+
+
+
+
+
+
Light theme logo:
+ +
+
+
Dark theme logo:
+ +
+ +
+
Status:
@@ -100,10 +149,22 @@
{{ end }} - {{ if and .Editing .User.IsStaff }} -
-
Admin settings
+
+
Project links:
+
+ +
+
Relevant links to put on the project page.
+
Format: url [Title] (e.g. http://example.com/ Example Site)
+
(1 per line, 10 max)
+
+
+ + {{ if and .Editing .User.IsStaff }} +
Official:
@@ -135,85 +196,7 @@
{{ end }} -
-
-
- {{ if .Editing }} - - {{ else }} - Next - {{ end }} -
-
-
-
-
-
Short description:
-
- -
Plaintext only. No links or markdown.
-
-
-
-
Project links:
-
- -
-
Relevant links to put on the project page.
-
Format: url [Title] (e.g. http://example.com/ Example Site)
-
(1 per line, 10 max)
-
-
-
-
-
Full description:
-
- -
-
-
- Upload files by dragging & dropping, pasting, or them. -
-
-
-
-
-
-
-
Preview:
-
-
-
-
-
-
- {{ if .Editing }} - - {{ else }} - Next - {{ end }} -
-
-
-
-
-
Light theme logo:
- -
-
-
Dark theme logo:
- -
+
@@ -224,10 +207,15 @@ {{ end }}
+ +
+
+
- - {{/* NOTE(mark): copied NOTE(asaf): Placing this outside the form to avoid submitting it to the server by accident */}} +
+ {{/* NOTE(mark): copied NOTE(asaf): Placing this outside the form to avoid submitting it to the server by accident */}} +