-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
243 additions
and
106 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
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 |
---|---|---|
@@ -0,0 +1,52 @@ | ||
{% load i18n %} | ||
{% load static %} | ||
{% load report_extra %} | ||
{% load ooi_extra %} | ||
{% load compress %} | ||
|
||
<table id="report-name-table"> | ||
<caption class="visually-hidden">{% translate "Report names:" %}</caption> | ||
<thead> | ||
<tr> | ||
<th scope="col" colspan="2"> | ||
{% translate "Name" %} <span class="nota-bene" aria-hidden>{% translate "(Required)" %}</span> | ||
</th> | ||
<th scope="col">{% translate "Add reference date" %}</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for report_name in reports %} | ||
{% with report_id=report_name|slugify %} | ||
<input type="hidden" name="old_report_name" value="{{ report_name }}" /> | ||
<tr> | ||
<td> | ||
<div> | ||
<input id="{{ report_id }}" | ||
class="name-input" | ||
name="report_name" | ||
type="text" | ||
value="{{ report_name }}" | ||
required | ||
minlength="3" /> | ||
</div> | ||
</td> | ||
<td> | ||
<button type="button" | ||
class="icon ti-arrow-back-up action-button reset-button hidden" | ||
aria-label="{% translate "Reset" %}"></button> | ||
</td> | ||
<td> | ||
<select class="reference-date" name="reference_date"> | ||
<option value="">{% translate "No reference date" %}</option> | ||
<option value="%b %d %Y, %H:%M">{% translate "Day" %} ({{ created_at|date:"N jS Y, H:i" }})</option> | ||
<option value="week">{% translate "Week" %} ({% translate "Week" %} {{ created_at|date:"W, Y" }})</option> | ||
<option value="%b, %Y">{% translate "Month" %} ({{ created_at|date:"N, Y" }})</option> | ||
<option value="%Y">{% translate "Year" %} ({{ created_at|date:"Y" }})</option> | ||
</select> | ||
</td> | ||
</tr> | ||
{% endwith %} | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
{% csrf_token %} |
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 @@ | ||
{% load i18n %} | ||
{% load static %} | ||
|
||
<h2>{% translate "Report name" %}</h2> | ||
<p> | ||
{% blocktranslate trimmed %} | ||
Give your report a custom name and optionally add the reports' reference date | ||
to the name. To do so you can select a standard option or use a <a href="https://strftime.org/" target="_blank">Python | ||
strftime code</a> in the report name. | ||
{% endblocktranslate %} | ||
</p> |
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
Oops, something went wrong.