diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-08-29 17:45:25 +0200 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-08-29 17:45:25 +0200 |
| commit | 1d2864b2e9494ca1ee0b10424a72a5c1e49eb54a (patch) | |
| tree | 2e7f6419ee92d28398b824c18d94aae959e96372 /archaeological_files | |
| parent | 8afe0cd9b3e515b121cdf0e1f95850d28b9e84a7 (diff) | |
| parent | a408afc5c3c964581ba99eb3d65a821e9f4561ac (diff) | |
| download | Ishtar-1d2864b2e9494ca1ee0b10424a72a5c1e49eb54a.tar.bz2 Ishtar-1d2864b2e9494ca1ee0b10424a72a5c1e49eb54a.zip | |
Merge branch 'master' into v0.9
Diffstat (limited to 'archaeological_files')
| -rw-r--r-- | archaeological_files/locale/django.pot | 86 | ||||
| -rw-r--r-- | archaeological_files/templates/ishtar/dashboards/dashboard_file.html | 143 | ||||
| -rw-r--r-- | archaeological_files/templates/ishtar/sheet_file.html | 16 |
3 files changed, 140 insertions, 105 deletions
diff --git a/archaeological_files/locale/django.pot b/archaeological_files/locale/django.pot index a1af3680f..d1d5e5820 100644 --- a/archaeological_files/locale/django.pot +++ b/archaeological_files/locale/django.pot @@ -9,7 +9,7 @@ msgid "" msgstr "" #: forms.py:51 forms.py:210 forms.py:254 forms.py:395 forms.py:422 -#: models.py:76 templates/ishtar/sheet_file.html:133 +#: models.py:76 templates/ishtar/sheet_file.html:139 msgid "Year" msgstr "" @@ -58,7 +58,7 @@ msgstr "" msgid "Comment" msgstr "" -#: forms.py:69 templates/ishtar/sheet_file.html:110 +#: forms.py:69 templates/ishtar/sheet_file.html:112 msgid "In charge" msgstr "" @@ -164,7 +164,7 @@ msgid "Total developed surface (m2)" msgstr "" #: forms.py:333 templates/ishtar/sheet_file.html:84 -#: templates/ishtar/dashboards/dashboard_file.html:42 +#: templates/ishtar/dashboards/dashboard_file.html:45 msgid "Research archaeology" msgstr "" @@ -457,7 +457,7 @@ msgstr "" msgid "File: administrative act deletion" msgstr "" -#: wizards.py:124 templates/ishtar/sheet_file.html:105 +#: wizards.py:124 templates/ishtar/sheet_file.html:104 msgid "Associated operations" msgstr "" @@ -560,35 +560,35 @@ msgstr "" msgid "Administrative acts" msgstr "" -#: templates/ishtar/sheet_file.html:107 templates/ishtar/sheet_file.html:134 +#: templates/ishtar/sheet_file.html:109 templates/ishtar/sheet_file.html:140 msgid "Ref." msgstr "" -#: templates/ishtar/sheet_file.html:109 templates/ishtar/sheet_file.html:135 +#: templates/ishtar/sheet_file.html:111 templates/ishtar/sheet_file.html:141 msgid "Type" msgstr "" -#: templates/ishtar/sheet_file.html:111 +#: templates/ishtar/sheet_file.html:113 msgid "Start date" msgstr "" -#: templates/ishtar/sheet_file.html:112 +#: templates/ishtar/sheet_file.html:114 msgid "Excavation end date" msgstr "" -#: templates/ishtar/sheet_file.html:126 +#: templates/ishtar/sheet_file.html:128 msgid "No operation associated to this archaelogical file" msgstr "" -#: templates/ishtar/sheet_file.html:131 +#: templates/ishtar/sheet_file.html:134 msgid "Admninistrative acts linked to associated operations" msgstr "" -#: templates/ishtar/sheet_file.html:136 +#: templates/ishtar/sheet_file.html:142 msgid "Date" msgstr "" -#: templates/ishtar/sheet_file.html:146 +#: templates/ishtar/sheet_file.html:152 msgid "No administrative act linked to operations" msgstr "" @@ -601,66 +601,70 @@ msgid "Global informations" msgstr "" #: templates/ishtar/dashboards/dashboard_file.html:12 -#: templates/ishtar/dashboards/dashboard_file.html:44 -#: templates/ishtar/dashboards/dashboard_file.html:97 +#: templates/ishtar/dashboards/dashboard_file.html:47 +#: templates/ishtar/dashboards/dashboard_file.html:102 msgid "Total:" msgstr "" #: templates/ishtar/dashboards/dashboard_file.html:18 -#: templates/ishtar/dashboards/dashboard_file.html:47 -#: templates/ishtar/dashboards/dashboard_file.html:125 -msgid "By year" +#: templates/ishtar/dashboards/dashboard_file.html:49 +#: templates/ishtar/dashboards/dashboard_file.html:133 +msgid "by year" msgstr "" -#: templates/ishtar/dashboards/dashboard_file.html:30 -#: templates/ishtar/dashboards/dashboard_file.html:59 -#: templates/ishtar/dashboards/dashboard_file.html:137 -msgid "By month" +#: templates/ishtar/dashboards/dashboard_file.html:22 +msgid "no year" msgstr "" -#: templates/ishtar/dashboards/dashboard_file.html:71 -#: templates/ishtar/dashboards/dashboard_file.html:164 -msgid "By department" +#: templates/ishtar/dashboards/dashboard_file.html:32 +#: templates/ishtar/dashboards/dashboard_file.html:61 +#: templates/ishtar/dashboards/dashboard_file.html:147 +msgid "by month" msgstr "" -#: templates/ishtar/dashboards/dashboard_file.html:83 -msgid "Main towns" +#: templates/ishtar/dashboards/dashboard_file.html:73 +#: templates/ishtar/dashboards/dashboard_file.html:178 +msgid "by department" msgstr "" -#: templates/ishtar/dashboards/dashboard_file.html:95 +#: templates/ishtar/dashboards/dashboard_file.html:85 +msgid "main towns" +msgstr "" + +#: templates/ishtar/dashboards/dashboard_file.html:100 msgid "Rescue archaeology" msgstr "" -#: templates/ishtar/dashboards/dashboard_file.html:101 -msgid "By saisine type" +#: templates/ishtar/dashboards/dashboard_file.html:105 +msgid "by saisine type" msgstr "" -#: templates/ishtar/dashboards/dashboard_file.html:113 -msgid "By administrative act" +#: templates/ishtar/dashboards/dashboard_file.html:119 +msgid "by administrative act" msgstr "" -#: templates/ishtar/dashboards/dashboard_file.html:147 +#: templates/ishtar/dashboards/dashboard_file.html:160 msgid "Archaeological files linked to at least one operation:" msgstr "" -#: templates/ishtar/dashboards/dashboard_file.html:148 +#: templates/ishtar/dashboards/dashboard_file.html:161 #, python-format msgid "Archaeological files linked to at least one operation (%%):" msgstr "" -#: templates/ishtar/dashboards/dashboard_file.html:152 +#: templates/ishtar/dashboards/dashboard_file.html:164 #, python-format -msgid "Archaeological files linked to at least one operation (%%)" +msgid "archaeological files linked to at least one operation (%%)" msgstr "" -#: templates/ishtar/dashboards/dashboard_file.html:176 -msgid "Surface by department (ha)" +#: templates/ishtar/dashboards/dashboard_file.html:192 +msgid "surface by department (ha)" msgstr "" -#: templates/ishtar/dashboards/dashboard_file.html:188 -msgid "Main towns by number" +#: templates/ishtar/dashboards/dashboard_file.html:206 +msgid "main towns by number" msgstr "" -#: templates/ishtar/dashboards/dashboard_file.html:200 -msgid "Main towns by surface (ha)" +#: templates/ishtar/dashboards/dashboard_file.html:220 +msgid "main towns by surface (ha)" msgstr "" diff --git a/archaeological_files/templates/ishtar/dashboards/dashboard_file.html b/archaeological_files/templates/ishtar/dashboards/dashboard_file.html index de8be7d30..163f89bb8 100644 --- a/archaeological_files/templates/ishtar/dashboards/dashboard_file.html +++ b/archaeological_files/templates/ishtar/dashboards/dashboard_file.html @@ -1,5 +1,5 @@ {% extends "base.html" %} -{% load i18n range units %} +{% load i18n range units humanize %} {% block extra_head %} {{form.media}} {% endblock %} @@ -9,30 +9,33 @@ <h3>{% trans "Global informations" %}</h3> <div> - <p><strong>{% trans "Total:" %}</strong> {{dashboard.total_number}}</p> + <p><label>{% trans "Total:" %}</label> <span class='value numeric'>{{dashboard.total_number|intcomma}}</span></p> {% for type in dashboard.types %} - <p><strong>{{type.file_type__label}}{% trans ":"%}</strong> {{type.number}}</p> + <p><label>{{type.file_type__label}}{% trans ":"%}</label> <span class='value numeric'>{{type.number|intcomma}}</span></p> {% endfor %} - <div class='table'> - <table> - <caption>{% trans "By year"%}</caption> - <tr> - {% for year in dashboard.by_year %}<th>{{year.date.year}}</th>{% endfor %} - </tr> - <tr> - {% for year in dashboard.by_year %}<td>{{year.number}}</td>{% endfor%} - </tr> - </table> + + <div class='clean-table'> + <h4>{% trans "by year"%}</h4> + <div class='clean-table-wrap'> + <table> + <tr> + {% for year in dashboard.by_year %}<th>{% if year.date.year %}{{year.date.year}}{% else %}{% trans "no year" %}{% endif %}</th>{% endfor %} + </tr> + <tr> + {% for year in dashboard.by_year %}<td>{{year.number|intcomma}}</td>{% endfor%} + </tr> + </table> + </div> </div> - <div class='table'> + <div class='clean-table'> + <h4>{% trans "by month"%}</h4> <table> - <caption>{% trans "By month"%}</caption> <tr> - {% for month in dashboard.by_month %}<th>{{month.date|date:"F Y"|capfirst}}</th>{% endfor %} + {% for month in dashboard.by_month %}<th>{{month.date|date:"N Y"|capfirst}}</th>{% endfor %} </tr> <tr> - {% for month in dashboard.by_month %}<td>{{month.number}}</td>{% endfor%} + {% for month in dashboard.by_month %}<td>{{month.number|intcomma}}</td>{% endfor%} </tr> </table> </div> @@ -41,171 +44,191 @@ <h3>{% trans "Research archaeology" %}</h3> <div> - <p><strong>{% trans "Total:" %}</strong> {{dashboard.research.total_number}}</p> - <div class='table'> + <p><label>{% trans "Total:" %}</label><span class='value numeric'>{{dashboard.research.total_number|intcomma}}</span></p> + <div class='clean-table'> + <h4>{% trans "by year"%}</h4> <table> - <caption>{% trans "By year"%}</caption> <tr> {% for year in dashboard.research.by_year %}<th>{{year.date.year}}</th>{% endfor %} </tr> <tr> - {% for year in dashboard.research.by_year %}<td>{{year.number}}</td>{% endfor%} + {% for year in dashboard.research.by_year %}<td>{{year.number|intcomma}}</td>{% endfor%} </tr> </table> </div> - <div class='table'> + <div class='clean-table'> + <h4>{% trans "by month"%}</h4> <table> - <caption>{% trans "By month"%}</caption> <tr> {% for month in dashboard.research.by_month %}<th>{{month.date|date:"F Y"|capfirst}}</th>{% endfor %} </tr> <tr> - {% for month in dashboard.research.by_month %}<td>{{month.number}}</td>{% endfor%} + {% for month in dashboard.research.by_month %}<td>{{month.number|intcomma}}</td>{% endfor%} </tr> </table> </div> - <div class='table'> + <div class='clean-table'> + <h4>{% trans "by department"%}</h4> <table> - <caption>{% trans "By department"%}</caption> <tr> {% for dpt in dashboard.research.by_dpt %}<th>{{dpt.department__label}}</th>{% endfor %} </tr> <tr> - {% for dpt in dashboard.research.by_dpt %}<td>{{dpt.number}}</td>{% endfor%} + {% for dpt in dashboard.research.by_dpt %}<td>{{dpt.number|intcomma}}</td>{% endfor%} </tr> </table> </div> - <div class='table'> + <div class='clean-table'> + <h4>{% trans "main towns"%}</h4> + <div class='clean-table-wrap'> <table> - <caption>{% trans "Main towns"%}</caption> <tr> {% for town in dashboard.research.towns %}<th>{{town.town__name}}</th>{% endfor %} </tr> <tr> - {% for town in dashboard.research.towns %}<td>{{town.number}}</td>{% endfor%} + {% for town in dashboard.research.towns %}<td>{{town.number|intcomma}}</td>{% endfor%} </tr> </table> + </div> </div> </div> <h3>{% trans "Rescue archaeology" %}</h3> <div> - <p><strong>{% trans "Total:" %}</strong> {{dashboard.rescue.total_number}}</p> + <p><label>{% trans "Total:" %}</label> <span class='value numeric'>{{dashboard.rescue.total_number|intcomma}}</span></p> - <div class='table'> + <div class='clean-table'> + <h4>{% trans "by saisine type"%}</h4> + <div class='clean-table-wrap'> <table> - <caption>{% trans "By saisine type"%}</caption> <tr> {% for saisine in dashboard.rescue.saisine %}<th>{{saisine.saisine_type__label}}</th>{% endfor %} </tr> <tr> - {% for saisine in dashboard.rescue.saisine %}<td>{{saisine.number}}</td>{% endfor%} + {% for saisine in dashboard.rescue.saisine %}<td>{{saisine.number|intcomma}}</td>{% endfor%} </tr> </table> </div> + </div> - <div class='table'> + <div class='clean-table'> + <h4>{% trans "by administrative act"%}</h4> + <div class='clean-table-wrap'> <table> - <caption>{% trans "By administrative act"%}</caption> <tr> {% for act in dashboard.rescue.administrative_act %}<th>{{act.act_type__label}}</th>{% endfor %} </tr> <tr> - {% for act in dashboard.rescue.administrative_act %}<td>{{act.number}}</td>{% endfor%} + {% for act in dashboard.rescue.administrative_act %}<td>{{act.number|intcomma}}</td>{% endfor%} </tr> </table> </div> + </div> - <div class='table'> + <div class='clean-table'> + <h4>{% trans "by year"%}</h4> + <div class='clean-table-wrap'> <table> - <caption>{% trans "By year"%}</caption> <tr> {% for year in dashboard.rescue.by_year %}<th>{{year.date.year}}</th>{% endfor %} </tr> <tr> - {% for year in dashboard.rescue.by_year %}<td>{{year.number}}</td>{% endfor%} + {% for year in dashboard.rescue.by_year %}<td>{{year.number|intcomma}}</td>{% endfor%} </tr> </table> </div> + </div> - <div class='table'> + <div class='clean-table'> + <h4>{% trans "by month"%}</h4> + <div class='clean-table-wrap'> <table> - <caption>{% trans "By month"%}</caption> <tr> {% for month in dashboard.rescue.by_month %}<th>{{month.date|date:"F Y"|capfirst}}</th>{% endfor %} </tr> <tr> - {% for month in dashboard.rescue.by_month %}<td>{{month.number}}</td>{% endfor%} + {% for month in dashboard.rescue.by_month %}<td>{{month.number|intcomma}}</td>{% endfor%} </tr> </table> </div> + </div> - <p><strong>{% trans "Archaeological files linked to at least one operation:" %}</strong> {{dashboard.rescue.with_associated_operation}}</p> - <p><strong>{% trans "Archaeological files linked to at least one operation (%):" %}</strong> {{dashboard.rescue.with_associated_operation_percent}}</p> + <p><label>{% trans "Archaeological files linked to at least one operation:" %}</label> <span class='value numeric'>{{dashboard.rescue.with_associated_operation|intcomma}}</span></p> + <p><label>{% trans "Archaeological files linked to at least one operation (%):" %}</label> <span class='value numeric'>{{dashboard.rescue.with_associated_operation_percent|intcomma}}</span></p> - <div class='table'> + <div class='clean-table'> + <h4>{% trans "archaeological files linked to at least one operation (%)"%}</h4> + <div class='clean-table-wrap'> <table> - <caption>{% trans "Archaeological files linked to at least one operation (%)"%}</caption> <tr> {% for year in dashboard.rescue.operational_by_year %}<th>{{year.date.year}}</th>{% endfor %} </tr> <tr> - {% for year in dashboard.rescue.operational_by_year %}<td>{{year.number}}</td>{% endfor%} + {% for year in dashboard.rescue.operational_by_year %}<td>{{year.number|intcomma}}</td>{% endfor%} </tr> </table> </div> + </div> - <div class='table'> + <div class='clean-table'> + <h4>{% trans "by department"%}</h4> + <div class='clean-table-wrap'> <table> - <caption>{% trans "By department"%}</caption> <tr> {% for dpt in dashboard.rescue.by_dpt %}<th>{{dpt.department__label}}</th>{% endfor %} </tr> <tr> - {% for dpt in dashboard.rescue.by_dpt %}<td>{{dpt.number}}</td>{% endfor%} + {% for dpt in dashboard.rescue.by_dpt %}<td>{{dpt.number|intcomma}}</td>{% endfor%} </tr> </table> </div> + </div> - <div class='table'> + <div class='clean-table'> + <h4>{% trans "surface by department (ha)"%}</h4> + <div class='clean-table-wrap'> <table> - <caption>{% trans "Surface by department (ha)"%}</caption> <tr> {% for dpt in dashboard.rescue.surface_by_dpt %}<th>{{dpt.department__label}}</th>{% endfor %} </tr> <tr> - {% for dpt in dashboard.rescue.surface_by_dpt %}<td>{{dpt.number|m2_to_ha}}</td>{% endfor%} + {% for dpt in dashboard.rescue.surface_by_dpt %}<td>{{dpt.number|m2_to_ha|intcomma}}</td>{% endfor%} </tr> </table> </div> + </div> - <div class='table'> + <div class='clean-table'> + <h4>{% trans "main towns by number"%}</h4> + <div class='clean-table-wrap'> <table> - <caption>{% trans "Main towns by number"%}</caption> <tr> {% for town in dashboard.rescue.towns %}<th>{{town.town__name}}</th>{% endfor %} </tr> <tr> - {% for town in dashboard.rescue.towns %}<td>{{town.number}}</td>{% endfor%} + {% for town in dashboard.rescue.towns %}<td>{{town.number|intcomma}}</td>{% endfor%} </tr> </table> </div> + </div> - <div class='table'> + <div class='clean-table'> + <h4>{% trans "main towns by surface (ha)"%}</h4> + <div class='clean-table-wrap'> <table> - <caption>{% trans "Main towns by surface (ha)"%}</caption> <tr> {% for town in dashboard.rescue.surface_by_town %}<th>{{town.town__name}}</th>{% endfor %} </tr> <tr> - {% for town in dashboard.rescue.surface_by_town %}<td>{{town.number|m2_to_ha}}</td>{% endfor%} + {% for town in dashboard.rescue.surface_by_town %}<td>{{town.number|m2_to_ha|intcomma}}</td>{% endfor%} </tr> </table> </div> + </div> </div> </div> diff --git a/archaeological_files/templates/ishtar/sheet_file.html b/archaeological_files/templates/ishtar/sheet_file.html index 9ff6e8356..782a7656d 100644 --- a/archaeological_files/templates/ishtar/sheet_file.html +++ b/archaeological_files/templates/ishtar/sheet_file.html @@ -101,8 +101,10 @@ {% trans "Administrative acts" as administrativeacts_label %} {% table_administrativact administrativeacts_label item.administrative_act.all %} -<table class='simple'> - <caption>{%trans "Associated operations"%}</caption> +<h4>{%trans "Associated operations"%}</h4> +<div class='clean-table'> +<div class='clean-table-wrap'> +<table> <tr> <th>{% trans "Ref." %}</th> <th>Code Patriarche</th> @@ -126,9 +128,13 @@ <tr><td colspan="8" class='no_items'>{% trans "No operation associated to this archaelogical file" %}</td></tr> {% endfor %} </table> +</div> +</div> -<table class='simple'> - <caption>{%trans "Admninistrative acts linked to associated operations"%}</caption> +<h4>{%trans "Admninistrative acts linked to associated operations"%}</h4> +<div class='clean-table'> +<div class='clean-table-wrap'> +<table> <tr> <th>{% trans "Year" %}</th> <th>{% trans "Ref." %}</th> @@ -146,4 +152,6 @@ <tr><td colspan="4" class='no_items'>{% trans "No administrative act linked to operations" %}</td></tr> {% endfor %} </table> +</div> +</div> {% endblock %} |
