-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🚨 fix linter warnings, reformat with ruff
- Loading branch information
Showing
21 changed files
with
283 additions
and
315 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
#!/usr/bin/env python | ||
"""Django's command-line utility for administrative tasks.""" | ||
|
||
import os | ||
import sys | ||
|
||
|
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,4 +1,3 @@ | ||
{% load static %} | ||
|
||
<script type="module" src="{% static 'entry.js' %}"></script> | ||
<link rel="stylesheet" href="{% static 'css/entry.css' %}"> |
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,16 +1,19 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>{% block title %}{% endblock %}</title> | ||
{% block css %}{% endblock %} | ||
</head> | ||
<body> | ||
<main>{% block body %}{% endblock %}</main> | ||
|
||
{% block scripts %} | ||
{% include "_frontend.html" with entry_point="filingcabinet.js" %} | ||
{% endblock %} | ||
</body> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title> | ||
{% block title %}{% endblock %} | ||
</title> | ||
{% block css %}{% endblock %} | ||
</head> | ||
<body> | ||
<main> | ||
{% block body %}{% endblock %} | ||
</main> | ||
{% block scripts %} | ||
{% include "_frontend.html" with entry_point="filingcabinet.js" %} | ||
{% endblock %} | ||
</body> | ||
</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
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
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
20 changes: 11 additions & 9 deletions
20
src/filingcabinet/templates/admin/filingcabinet/document/change_list.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 |
---|---|---|
@@ -1,13 +1,15 @@ | ||
{% extends "admin/change_list.html" %} | ||
{% load i18n %} | ||
|
||
{% block content %} | ||
{{ block.super }} | ||
<div> | ||
<form enctype="multipart/form-data" method="post" action="{% url 'admin:filingcabinet-document-upload' %}"> | ||
{% csrf_token %} | ||
<input type="file" name="file" accept="application/pdf" multiple/> | ||
<input type="submit" value="{% blocktrans with cl.opts.verbose_name_plural as name %}Import {{ name }}{% endblocktrans %}"/> | ||
</form> | ||
</div> | ||
{{ block.super }} | ||
<div> | ||
<form enctype="multipart/form-data" | ||
method="post" | ||
action="{% url 'admin:filingcabinet-document-upload' %}"> | ||
{% csrf_token %} | ||
<input type="file" name="file" accept="application/pdf" multiple /> | ||
<input type="submit" | ||
value="{% blocktrans with cl.opts.verbose_name_plural as name %}Import {{ name }}{% endblocktrans %}" /> | ||
</form> | ||
</div> | ||
{% endblock %} |
28 changes: 18 additions & 10 deletions
28
src/filingcabinet/templates/admin/filingcabinet/pageannotation/change_form.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 |
---|---|---|
@@ -1,29 +1,37 @@ | ||
{% extends "admin/change_form.html" %} | ||
|
||
{% load static %} | ||
{% load i18n %} | ||
|
||
{% block extrahead %}{{ block.super }} | ||
{% block extrahead %} | ||
{{ block.super }} | ||
<script src="{% static 'filingcabinet/admin/pageannotation.js' %}"></script> | ||
{% endblock %} | ||
|
||
{% block after_field_sets %} | ||
{% if original.image %} | ||
<img src="{{ original.image.url }}" style="max-width: 100%"> | ||
<img alt="" src="{{ original.image.url }}" style="max-width: 100%"> | ||
{% endif %} | ||
{% if original and original.page and original.image %} | ||
<h3>{% trans "Annotation" %}</h3> | ||
<input type="color" id="annotationcolor" value="#ffff88"/> | ||
<input type="color" id="annotationcolor" value="#ffff88" /> | ||
<div style="position:relative; width: 100%"> | ||
<img src="{{ original.image.url }}" id="annotation_image" style="outline: 1px solid #000; width: 100%;"> | ||
<img src="{{ original.image.url }}" | ||
alt="" | ||
id="annotation_image" | ||
style="outline: 1px solid #000; | ||
width: 100%"> | ||
</div> | ||
{% endif %} | ||
|
||
{% if original and original.page %} | ||
<h3>{% trans "Make annotation" %}</h3> | ||
<div style="position:relative; width: 100%"> | ||
<img src="{{ original.page.image.url }}" id="page_image" style="outline: 1px solid #000; width: 100%;"> | ||
<div id="page_rect" style="outline: 1px solid #f00; position: absolute; pointer-events: none;"></div> | ||
<img src="{{ original.page.image.url }}" | ||
alt="" | ||
id="page_image" | ||
style="outline: 1px solid #000; | ||
width: 100%"> | ||
<div id="page_rect" | ||
style="outline: 1px solid #f00; | ||
position: absolute; | ||
pointer-events: none"></div> | ||
</div> | ||
{% endif %} | ||
{% endblock %} |
Oops, something went wrong.