From 8e460a157c94f86fd9248203553194e2709490d9 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 2 Apr 2019 16:04:58 -0700 Subject: release edit context --- python/fatcat_web/templates/file_edit.html | 231 +++++++++++++++++++++++++++++ 1 file changed, 231 insertions(+) create mode 100644 python/fatcat_web/templates/file_edit.html (limited to 'python/fatcat_web/templates/file_edit.html') diff --git a/python/fatcat_web/templates/file_edit.html b/python/fatcat_web/templates/file_edit.html new file mode 100644 index 00000000..3fe2a063 --- /dev/null +++ b/python/fatcat_web/templates/file_edit.html @@ -0,0 +1,231 @@ +{% import "edit_macros.html" as edit_macros %} +{% extends "base.html" %} + +{% block body %} +{% block edit_form_prefix %} +
+

Edit File Entity

+ +
+{% endblock %} + {{ form.hidden_tag() }} + +
+
+
+

Editgroup Meta

+
+
+ {% if editgroup_id %} +

You have an editgroup in progress, and this edit will be included by + default. You can override this below. + {% else %} +

No existing editgroup is in progress (or at least, not is selected). + An existing ID can be pasted in, or if you leave that blank but give a + description, a new editgroup will be created for this edit. + {% endif %} + {{ edit_macros.form_field_inline(form.editgroup_id) }} + {{ edit_macros.form_field_inline(form.editgroup_description) }} +

+
+ +
+

The Basics

+
+
+
+
+ {{ edit_macros.form_field_basic(form.release_type, "required") }} + {{ edit_macros.form_field_basic(form.release_status) }} +
+
+
+
+ + {{ edit_macros.form_field_inline(form.title, "required") }} + {{ edit_macros.form_field_inline(form.original_title) }} + {{ edit_macros.form_field_inline(form.work_id) }} + {{ edit_macros.form_field_inline(form.release_date) }} +
+
+
+
+ {{ edit_macros.form_field_basic(form.language) }} + {{ edit_macros.form_field_basic(form.license_slug) }} +
+
+
+
+ +
+

Contributors

+
+ {% for cform in form.contribs %} +
+ {{ cform.hidden_tag() }} +
+ +
+
+
+ {{ cform.role() }} +
+
+
+
+ {{ cform.raw_name() }} +
+
+
+ +
+
+ {% endfor %} +
+
+ +
+ +
+

Identifers

+
+ {{ edit_macros.form_field_inline(form.doi) }} + {{ edit_macros.form_field_inline(form.wikidata_qid) }} + {{ edit_macros.form_field_inline(form.isbn13) }} +
+
+
+
+ {{ edit_macros.form_field_basic(form.pmid) }} + {{ edit_macros.form_field_basic(form.pmcid) }} +
+
+
+
+ +
+

Container

+
+ {{ edit_macros.form_field_inline(form.container_id) }} + {{ edit_macros.form_field_inline(form.publisher) }} +
+
+
+
+
+ {{ edit_macros.form_field_basic(form.pages) }} + {{ edit_macros.form_field_basic(form.volume) }} + {{ edit_macros.form_field_basic(form.issue) }} +
+
+
+
+ +

+

Submit

+ {{ edit_macros.form_field_basic(form.edit_description) }} + This description will be attached to this specific action, not to the + editgroup as a whole. +{% block edit_form_suffix %} +

+ +
+
+{% endblock %} +{% endblock %} + +{% block postscript %} + + +{% endblock %} -- cgit v1.2.3 From 102be654418e1a4acc6ebbd7bdaf22df2a27ac54 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 2 Apr 2019 18:34:38 -0700 Subject: file editing templates --- python/fatcat_web/templates/file_create.html | 20 +++ python/fatcat_web/templates/file_edit.html | 252 ++++++++++++++------------- 2 files changed, 147 insertions(+), 125 deletions(-) create mode 100644 python/fatcat_web/templates/file_create.html (limited to 'python/fatcat_web/templates/file_edit.html') diff --git a/python/fatcat_web/templates/file_create.html b/python/fatcat_web/templates/file_create.html new file mode 100644 index 00000000..a7c99b96 --- /dev/null +++ b/python/fatcat_web/templates/file_create.html @@ -0,0 +1,20 @@ +{% extends "file_edit.html" %} + +{% block edit_form_prefix %} +
+

Create New File Entity

+ +
+{% endblock %} + +{% block edit_form_suffix %} +

+ +

+ New entity will be part of the current editgroup, which needs to be + submited and approved before the entity will formally be included in the + catalog. +

+
+{% endblock %} + diff --git a/python/fatcat_web/templates/file_edit.html b/python/fatcat_web/templates/file_edit.html index 3fe2a063..279acca9 100644 --- a/python/fatcat_web/templates/file_edit.html +++ b/python/fatcat_web/templates/file_edit.html @@ -11,175 +11,121 @@ {{ form.hidden_tag() }}
-
-
-

Editgroup Meta

-
-
- {% if editgroup_id %} -

You have an editgroup in progress, and this edit will be included by - default. You can override this below. - {% else %} -

No existing editgroup is in progress (or at least, not is selected). - An existing ID can be pasted in, or if you leave that blank but give a - description, a new editgroup will be created for this edit. - {% endif %} - {{ edit_macros.form_field_inline(form.editgroup_id) }} - {{ edit_macros.form_field_inline(form.editgroup_description) }} -

-
+ {{ edit_macros.editgroup_dropdown(form) }}
-

The Basics

-
-
-
-
- {{ edit_macros.form_field_basic(form.release_type, "required") }} - {{ edit_macros.form_field_basic(form.release_status) }} -
-
-
-
+

File Metadata

- {{ edit_macros.form_field_inline(form.title, "required") }} - {{ edit_macros.form_field_inline(form.original_title) }} - {{ edit_macros.form_field_inline(form.work_id) }} - {{ edit_macros.form_field_inline(form.release_date) }} -
-
-
-
- {{ edit_macros.form_field_basic(form.language) }} - {{ edit_macros.form_field_basic(form.license_slug) }} -
-
-
-
+ {{ edit_macros.form_field_inline(form.size, "required") }} + {{ edit_macros.form_field_inline(form.mimetype) }} + {{ edit_macros.form_field_inline(form.md5) }} + {{ edit_macros.form_field_inline(form.sha1, "required") }} + {{ edit_macros.form_field_inline(form.sha256) }}
-

Contributors

-
- {% for cform in form.contribs %} +

Locations (URLs)

+ Public web (no login/paywall) locations of this exact file (should match + by hashes). +

+
+ {% for cform in form.urls %}
{{ cform.hidden_tag() }} -
+
-
- {{ cform.role() }} +
+ {{ cform.rel() }}
-
- {{ cform.raw_name() }} +
+ {{ cform.url() }}
- +
{% endfor %}

- -

-

Identifers

-
- {{ edit_macros.form_field_inline(form.doi) }} - {{ edit_macros.form_field_inline(form.wikidata_qid) }} - {{ edit_macros.form_field_inline(form.isbn13) }} -
-
-
-
- {{ edit_macros.form_field_basic(form.pmid) }} - {{ edit_macros.form_field_basic(form.pmcid) }} +

Releases

+ Usually one, but sometimes multiple Release entities (by FCID) that this + file is a fulltext copy of. +

+
+ {% for rfield in form.release_ids %} +
+
-
-
-
- -
-

Container

-
- {{ edit_macros.form_field_inline(form.container_id) }} - {{ edit_macros.form_field_inline(form.publisher) }} -
-
-
-
-
- {{ edit_macros.form_field_basic(form.pages) }} - {{ edit_macros.form_field_basic(form.volume) }} - {{ edit_macros.form_field_basic(form.issue) }} +
+
+ {{ rfield() }} +
+
+
+
-
+ {% endfor %}
+
+ -

+

Submit

{{ edit_macros.form_field_basic(form.edit_description) }} - This description will be attached to this specific action, not to the + This description will be attached to the individual edit, not to the editgroup as a whole. {% block edit_form_suffix %}

- + +

+ Edit will be part of the current editgroup, which needs to be submited and + approved before the change is included in the catalog.

{% endblock %} {% endblock %} {% block postscript %} -