From 31fb767e5377e55d9e68121aa8ec5dcb53ebe07b Mon Sep 17 00:00:00 2001 From: = Date: Tue, 13 Aug 2024 18:21:13 -0300 Subject: [PATCH] Fixing double creationg of report --- locale/pt_BR/LC_MESSAGES/django.mo | Bin 30616 -> 30774 bytes locale/pt_BR/LC_MESSAGES/django.po | 324 +++++++++++++++-------------- report/views.py | 64 +++--- 3 files changed, 200 insertions(+), 188 deletions(-) diff --git a/locale/pt_BR/LC_MESSAGES/django.mo b/locale/pt_BR/LC_MESSAGES/django.mo index ba7fd0ebd403dbf756c694f0546a025747808ffc..fc00c50926612d41b4a5040dfc2961ead6aca1bd 100644 GIT binary patch delta 8499 zcmZA63w+P@9>?+DFk?4n*nRtt85?F85_8LKA=kNwu|H;G>=Nt9pUACD^-t&=Djav| zzP8cr2`sl@Q+=3184eR@;`>JjIHCtY*iMcNV zRiA3}T}|HO3?`ulb8JPa%`dn4KVU=Z_uBGf*ogdRw)~3C*KBI;i?XJn+I_(0N7;M< zHl}eFB=pBmFceQ=0A8|whk@j8VLkLu zHa5ckb z&>v5u2Jjy&#qUvDn3rP87hoOo~qLVNlh>QMNnnUQru&8#bGK!Z@P z&otD4%B%}fGhc>U`qikVU1Q5P+VZWaE!d6f_=qj{d`dzMp2qv|tj))9RJDgmr~zi6 z2G9?ANt`jLj>e&8n2Ty>7OJCC)QYY|y-k}?9UnyB3Scnj&-t8$W^fVJ(REbAwbIR* z2*Eh=X&8?KQG1w=+QX$7ici}73#jK`#2UCA^;Ye|5PS=LTZF-S|4))=N5y&6OrqEa zZADZ5pvcKaHMkU2zuLMUHRH{;ekZDfeOMolpaymVwE|}_3~!+(5KO1O_rEy_?OnPG zup?@O-Ej&Iz>c^VSu*E5>i+MsGv35RY~S7tC>ym!<57om0_wR(t;fc0d(L2}xKg4=?1~t&@);p*f*Uc~;M54|@9BRhxFdPS=`pd~+{dE{- zP@ugkMdjzAM!eYG_%y2H^_YaakYzUBtcs?n)7u%l<4{xw&tOB`jXIP^Pz`^9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8#aM`)JUAjFoWGDv&37vDAH~0PbH6-x$L-h} zOO1B+LN8-3dQv_VV=>>j*xcV_?(f7n?(elpXsR!uMsN$O;~gx4v16QXd=hG=8l$GJ zHwNQa)X#ufsMGKk>iBL$jqn(122P_!ei`HOCaOIQQsuH@;x3 z;0lU}x6hm0C%BCm!<(;R4eUj1BwZOZ(HDb=g{1%gnoarZ6b9l7b8|Rp{h!Jm^6^9_ z>4wC9(qZ^WKLqs6dU6$#c;!h3zbCGm{2td25s{f~cunj39ibDVOB?D8!S~3TLe%7$ z5Y%;?Xsm>}UgF*u(mP#EA|vf6a=LU@bm?!Lx^&o|A>D;VRQew2_leu4Oh5ddTwQ52#5AlQL92*C=4M&S zTM+|^K16`~UpTnQN7wqAXif~}hOSEZGY)s>IJNi}G1iqC9htezl-|PA#4%zXZ&Wtr zB8E6clvRf7S?*tRl2%{Rb%~Cy_0ci*UP{x+y@~GN>V=RseAoNXLB#!l>I?^ib)S8onq2=N%KYIavd!1m$!pN6>j;M+r6;` zv5)fVI0AnqbX6d7Df`IS`sq#6g=P1c08WEj{ zo|JiD4?@=v%y3PO3G10a>UT;C%$<=&JylD8aJ@tfqkICEtMwVOz#tO$d#9x+-ge~E(53JP@PU>%cwkNkGxKg4?CFp)&e=l(i;`m!nOLBTu3 zz^88XH|gK7BC(bTBPQ{@kLB`?3#`(Tq^^%0+<&&_&n#j9_mc4-5$(!|i;Vk`)Fxsw vcdFxZ;wK`U{8qfO<%PJ+Qm&&lXKtC5@|(|=ap~VzaP{u9bW3dCvXTD-9V(pC diff --git a/locale/pt_BR/LC_MESSAGES/django.po b/locale/pt_BR/LC_MESSAGES/django.po index 546f975..e45ca59 100644 --- a/locale/pt_BR/LC_MESSAGES/django.po +++ b/locale/pt_BR/LC_MESSAGES/django.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: 2.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-03-15 18:40-0300\n" +"POT-Creation-Date: 2024-08-13 18:17-0300\n" "PO-Revision-Date: 2024-02-09 16:44-0300\n" "Last-Translator: Éder Porto \n" "Language-Team: PT_BR \n" @@ -46,7 +46,7 @@ msgstr "Nome" #: .\report\templates\report\detail_report.html:78 #: .\report\templates\report\list_reports.html:42 .\report\tests_views.py:779 #: .\report\tests_views.py:865 .\report\tests_views.py:938 -#: .\report\views.py:250 +#: .\report\views.py:254 msgid "Initial date" msgstr "Data inicial" @@ -57,7 +57,7 @@ msgstr "Data inicial" #: .\report\templates\report\detail_report.html:83 #: .\report\templates\report\list_reports.html:43 .\report\tests_views.py:779 #: .\report\tests_views.py:865 .\report\tests_views.py:938 -#: .\report\views.py:250 +#: .\report\views.py:254 msgid "End date" msgstr "Data final" @@ -67,7 +67,7 @@ msgstr "Data final" #: .\report\templates\report\detail_report.html:68 #: .\report\templates\report\list_reports.html:44 .\report\tests_views.py:778 #: .\report\tests_views.py:864 .\report\tests_views.py:937 -#: .\report\views.py:250 +#: .\report\views.py:254 msgid "Area responsible" msgstr "Gestão responsável" @@ -297,7 +297,7 @@ msgstr "Buscar" #: .\agenda\templates\agenda\list_events.html:35 #: .\bug\templates\bug\list_bugs.html:40 .\bug\views.py:50 .\bug\views.py:65 #: .\metrics\templates\metrics\list_metrics_per_project.html:40 -#: .\metrics\templates\metrics\list_metrics_per_project.html:84 +#: .\metrics\templates\metrics\list_metrics_per_project.html:80 #: .\metrics\templates\metrics\list_metrics_reports.html:30 #: .\report\templates\area_activated\list_areas.html:33 #: .\report\templates\funding\list_fundings.html:32 @@ -317,11 +317,11 @@ msgstr "Buscar" #: .\report\tests_views.py:1335 .\report\tests_views.py:1350 #: .\report\tests_views.py:1383 .\report\tests_views.py:1441 #: .\report\tests_views.py:1459 .\report\tests_views.py:1478 -#: .\report\tests_views.py:1497 .\report\views.py:249 .\report\views.py:388 -#: .\report\views.py:418 .\report\views.py:457 .\report\views.py:491 -#: .\report\views.py:518 .\report\views.py:536 .\report\views.py:553 -#: .\report\views.py:570 .\report\views.py:587 .\report\views.py:604 -#: .\report\views.py:621 +#: .\report\tests_views.py:1497 .\report\views.py:253 .\report\views.py:392 +#: .\report\views.py:422 .\report\views.py:461 .\report\views.py:495 +#: .\report\views.py:522 .\report\views.py:540 .\report\views.py:557 +#: .\report\views.py:574 .\report\views.py:591 .\report\views.py:608 +#: .\report\views.py:625 msgid "ID" msgstr "ID" @@ -350,7 +350,7 @@ msgstr "Mudanças feitas com sucesso!" #: .\agenda\views.py:104 .\agenda\views.py:150 .\bug\views.py:28 #: .\bug\views.py:112 .\bug\views.py:129 .\bug\views.py:151 -#: .\report\views.py:52 .\users\tests.py:162 .\users\views.py:22 +#: .\report\views.py:53 .\users\tests.py:162 .\users\views.py:22 msgid "Something went wrong!" msgstr "Algo deu errado!" @@ -383,80 +383,84 @@ msgid "To do" msgstr "A fazer" #: .\bug\models.py:10 +msgid "In evaluation" +msgstr "Em avaliação" + +#: .\bug\models.py:11 msgid "In progress" msgstr "Em progresso" -#: .\bug\models.py:11 +#: .\bug\models.py:12 msgid "Testing" msgstr "Em teste" -#: .\bug\models.py:12 .\metrics\templates\metrics\list_metrics.html:195 +#: .\bug\models.py:13 .\metrics\templates\metrics\list_metrics.html:195 #: .\metrics\templates\metrics\list_metrics_per_project.html:42 -#: .\metrics\templates\metrics\list_metrics_per_project.html:86 +#: .\metrics\templates\metrics\list_metrics_per_project.html:82 #: .\metrics\templates\metrics\list_metrics_reports.html:32 msgid "Done" msgstr "Feito" -#: .\bug\models.py:13 +#: .\bug\models.py:14 msgid "Canceled" msgstr "Cancelado" -#: .\bug\models.py:16 +#: .\bug\models.py:17 msgid "Error" msgstr "Erro" -#: .\bug\models.py:17 +#: .\bug\models.py:18 msgid "Improvement request" msgstr "Melhoria" -#: .\bug\models.py:18 +#: .\bug\models.py:19 msgid "New feature request" msgstr "Nova funcionalidade" -#: .\bug\models.py:19 +#: .\bug\models.py:20 msgid "Question or clarification" msgstr "Dúvida ou clarificação" -#: .\bug\models.py:21 .\bug\templates\bug\detail_bug.html:15 +#: .\bug\models.py:22 .\bug\templates\bug\detail_bug.html:15 #: .\bug\templates\bug\list_bugs.html:41 .\bug\views.py:50 .\bug\views.py:65 msgid "Title" msgstr "Título" -#: .\bug\models.py:22 .\bug\templates\bug\detail_bug.html:20 .\bug\views.py:50 +#: .\bug\models.py:23 .\bug\templates\bug\detail_bug.html:20 .\bug\views.py:50 #: .\bug\views.py:65 .\report\templates\report\administrative.html:64 #: .\report\templates\report\detail_report.html:60 #: .\report\templates\report\list_reports.html:40 .\report\tests_views.py:779 #: .\report\tests_views.py:865 .\report\tests_views.py:938 -#: .\report\views.py:251 +#: .\report\views.py:255 msgid "Description" msgstr "Descrição" -#: .\bug\models.py:23 .\bug\templates\bug\detail_bug.html:42 +#: .\bug\models.py:24 .\bug\templates\bug\detail_bug.html:42 #: .\bug\templates\bug\list_bugs.html:44 .\bug\views.py:50 .\bug\views.py:65 msgid "Type" msgstr "Tipo" -#: .\bug\models.py:24 .\bug\templates\bug\detail_bug.html:38 +#: .\bug\models.py:25 .\bug\templates\bug\detail_bug.html:38 #: .\bug\templates\bug\list_bugs.html:45 .\bug\views.py:50 .\bug\views.py:65 #: .\metrics\templates\metrics\list_metrics_per_project.html:44 -#: .\metrics\templates\metrics\list_metrics_per_project.html:88 +#: .\metrics\templates\metrics\list_metrics_per_project.html:84 msgid "Status" msgstr "Status" -#: .\bug\models.py:25 .\bug\templates\bug\detail_bug.html:24 +#: .\bug\models.py:26 .\bug\templates\bug\detail_bug.html:24 #: .\bug\templates\bug\list_bugs.html:42 .\bug\views.py:50 .\bug\views.py:65 #: .\bug\views.py:66 msgid "Date of report" msgstr "Data de submissão" -#: .\bug\models.py:27 .\bug\templates\bug\detail_bug.html:29 .\bug\views.py:50 +#: .\bug\models.py:28 .\bug\templates\bug\detail_bug.html:29 .\bug\views.py:50 #: .\bug\views.py:65 .\bug\views.py:67 msgid "Update date" msgstr "Data de atualização" -#: .\bug\models.py:35 .\bug\templates\bug\detail_bug.html:47 .\bug\views.py:50 +#: .\bug\models.py:36 .\bug\templates\bug\detail_bug.html:47 .\bug\views.py:50 #: .\bug\views.py:65 .\report\tests_views.py:1012 .\report\tests_views.py:1069 -#: .\report\views.py:420 +#: .\report\views.py:424 msgid "Observation" msgstr "Observação" @@ -523,7 +527,7 @@ msgstr "Respondido com sucesso!" #: .\metrics\models.py:16 .\report\templates\report\detail_report.html:196 #: .\report\tests_views.py:1441 .\report\tests_views.py:1459 #: .\report\tests_views.py:1478 .\report\tests_views.py:1497 -#: .\report\views.py:491 +#: .\report\views.py:495 msgid "Project" msgstr "Projeto" @@ -556,16 +560,16 @@ msgid "Objectives" msgstr "Objetivos" #: .\metrics\models.py:68 .\report\tests_views.py:1010 -#: .\report\tests_views.py:1067 .\report\views.py:418 +#: .\report\tests_views.py:1067 .\report\views.py:422 msgid "Activity" msgstr "Atividade" #: .\metrics\models.py:139 #: .\metrics\templates\metrics\list_metrics_per_project.html:41 -#: .\metrics\templates\metrics\list_metrics_per_project.html:85 +#: .\metrics\templates\metrics\list_metrics_per_project.html:81 #: .\report\tests_views.py:1010 .\report\tests_views.py:1067 #: .\report\tests_views.py:1350 .\report\tests_views.py:1383 -#: .\report\views.py:388 .\report\views.py:418 +#: .\report\views.py:392 .\report\views.py:422 msgid "Metric" msgstr "Métrica" @@ -649,12 +653,12 @@ msgstr "" "S.A.R.A. é uma aplicação web para registrar e analisar relatórios de " "atividades qualitativas e quantitativas." -#: .\metrics\templates\metrics\home.html:22 .\report\views.py:61 -#: .\report\views.py:71 +#: .\metrics\templates\metrics\home.html:22 .\report\views.py:65 +#: .\report\views.py:75 msgid "Add report" msgstr "Adicionar relatório" -#: .\metrics\templates\metrics\home.html:23 .\report\views.py:157 +#: .\metrics\templates\metrics\home.html:23 .\report\views.py:161 msgid "List reports" msgstr "Lista de relatórios" @@ -835,7 +839,7 @@ msgstr "Número de participantes" #: .\report\templates\report\detail_report.html:170 #: .\report\templates\report\quantitative.html:30 .\report\tests_views.py:781 #: .\report\tests_views.py:867 .\report\tests_views.py:940 -#: .\report\views.py:252 +#: .\report\views.py:256 msgid "Editors" msgstr "Editores" @@ -845,7 +849,7 @@ msgstr "Editores" #: .\report\templates\report\detail_report.html:176 #: .\report\templates\report\quantitative.html:40 .\report\tests_views.py:781 #: .\report\tests_views.py:867 .\report\tests_views.py:940 -#: .\report\views.py:252 +#: .\report\views.py:256 msgid "Organizers" msgstr "Organizadores(as)" @@ -878,7 +882,7 @@ msgstr "Métricas principais e adicionais" #: .\report\templates\report\detail_report.html:182 #: .\report\templates\report\quantitative.html:50 .\report\tests_views.py:781 #: .\report\tests_views.py:867 .\report\tests_views.py:940 -#: .\report\views.py:253 +#: .\report\views.py:257 msgid "Partnerships activated" msgstr "Parcerias ativadas" @@ -959,7 +963,7 @@ msgstr "Número de páginas criadas ou editadas" #: .\report\templates\report\quantitative.html:12 .\report\tests_views.py:780 #: .\report\tests_views.py:866 .\report\tests_views.py:939 #: .\report\tests_views.py:1011 .\report\tests_views.py:1068 -#: .\report\views.py:252 .\report\views.py:419 +#: .\report\views.py:256 .\report\views.py:423 msgid "Number of participants" msgstr "Número de participantes" @@ -969,7 +973,7 @@ msgstr "Número de participantes" #: .\report\templates\report\detail_report.html:115 #: .\report\templates\report\operations.html:61 #: .\report\templates\report\operations.html:144 .\report\tests_views.py:1352 -#: .\report\tests_views.py:1387 .\report\views.py:390 +#: .\report\tests_views.py:1387 .\report\views.py:394 msgid "Number of resources" msgstr "Número de recursos" @@ -980,7 +984,7 @@ msgstr "Número de recursos" #: .\report\templates\report\quantitative.html:21 .\report\tests_views.py:781 #: .\report\tests_views.py:867 .\report\tests_views.py:940 #: .\report\tests_views.py:1012 .\report\tests_views.py:1069 -#: .\report\views.py:252 .\report\views.py:419 +#: .\report\views.py:256 .\report\views.py:423 msgid "Number of feedbacks" msgstr "Número de respostas" @@ -988,7 +992,7 @@ msgstr "Número de respostas" #: .\metrics\templates\metrics\list_metrics.html:281 #: .\metrics\templates\metrics\translations.html:19 #: .\report\tests_views.py:1011 .\report\tests_views.py:1068 -#: .\report\views.py:418 +#: .\report\views.py:422 msgid "Number of editors" msgstr "Número de editores" @@ -1005,7 +1009,7 @@ msgstr "Número de organizadores" #: .\report\templates\report\operations.html:70 #: .\report\templates\report\operations.html:153 .\report\tests_views.py:1011 #: .\report\tests_views.py:1068 .\report\tests_views.py:1352 -#: .\report\tests_views.py:1387 .\report\views.py:390 .\report\views.py:419 +#: .\report\tests_views.py:1387 .\report\views.py:394 .\report\views.py:423 msgid "Number of partnerships activated" msgstr "Número de parcerias ativadas" @@ -1047,25 +1051,25 @@ msgid "Number of pages" msgstr "Número de páginas" #: .\metrics\templates\metrics\list_metrics_per_project.html:39 -#: .\metrics\templates\metrics\list_metrics_per_project.html:83 +#: .\metrics\templates\metrics\list_metrics_per_project.html:79 #: .\report\templates\report\list_reports.html:41 msgid "Actions" msgstr "Ações" #: .\metrics\templates\metrics\list_metrics_per_project.html:43 -#: .\metrics\templates\metrics\list_metrics_per_project.html:87 +#: .\metrics\templates\metrics\list_metrics_per_project.html:83 msgid "Goal" msgstr "Meta" #: .\metrics\templates\metrics\list_metrics_per_project.html:53 -#: .\metrics\templates\metrics\list_metrics_per_project.html:97 +#: .\metrics\templates\metrics\list_metrics_per_project.html:93 #: .\metrics\templates\metrics\list_metrics_reports.html:39 #: .\report\templates\report\list_reports.html:53 msgid "View" msgstr "Visualizar" #: .\metrics\templates\metrics\list_metrics_reports.html:31 -#: .\report\models.py:215 .\report\views.py:213 +#: .\report\models.py:216 .\report\views.py:217 msgid "Report" msgstr "Relatório" @@ -1084,7 +1088,7 @@ msgstr "Metawiki" #: .\report\templates\report\operations.html:52 #: .\report\templates\report\operations.html:135 .\report\tests_views.py:1012 #: .\report\tests_views.py:1069 .\report\tests_views.py:1352 -#: .\report\tests_views.py:1387 .\report\views.py:390 .\report\views.py:420 +#: .\report\tests_views.py:1387 .\report\views.py:394 .\report\views.py:424 msgid "Number of events" msgstr "Número de eventos" @@ -1108,11 +1112,11 @@ msgstr "Outra métrica" msgid "Occurrence" msgstr "Ocorrência" -#: .\metrics\templatetags\metricstags.py:26 .\metrics\tests.py:525 +#: .\metrics\templatetags\metricstags.py:30 .\metrics\tests.py:525 msgid "Yes" msgstr "Sim" -#: .\metrics\templatetags\metricstags.py:26 .\metrics\tests.py:529 +#: .\metrics\templatetags\metricstags.py:30 .\metrics\tests.py:529 msgid "No" msgstr "Não" @@ -1120,21 +1124,21 @@ msgstr "Não" msgid "Test" msgstr "Teste" -#: .\metrics\views.py:42 +#: .\metrics\views.py:43 msgid "Home" msgstr "Página inicial" -#: .\metrics\views.py:47 +#: .\metrics\views.py:48 msgid "About" msgstr "Sobre" -#: .\metrics\views.py:68 .\metrics\views.py:80 +#: .\metrics\views.py:69 .\metrics\views.py:81 msgid "Show metrics per project" msgstr "Acompanhar métricas por projeto" #: .\report\models.py:19 .\report\tests_views.py:1441 #: .\report\tests_views.py:1459 .\report\tests_views.py:1478 -#: .\report\tests_views.py:1497 .\report\views.py:491 +#: .\report\tests_views.py:1497 .\report\views.py:495 msgid "Funding" msgstr "Financiamento" @@ -1153,7 +1157,7 @@ msgstr "Parceiro" #: .\report\models.py:45 .\report\templates\partners\list_partners.html:21 #: .\report\tests_views.py:1298 .\report\tests_views.py:1309 -#: .\report\views.py:604 +#: .\report\views.py:608 msgid "Partners" msgstr "Parceiros" @@ -1162,7 +1166,7 @@ msgid "Organizer" msgstr "Organizador(a)" #: .\report\models.py:68 .\report\tests_views.py:1324 -#: .\report\tests_views.py:1335 .\report\views.py:621 +#: .\report\tests_views.py:1335 .\report\views.py:625 msgid "Technology" msgstr "Tecnologia" @@ -1177,7 +1181,7 @@ msgstr "Nome da gestão ativada" #: .\report\models.py:80 .\report\tests_views.py:779 #: .\report\tests_views.py:865 .\report\tests_views.py:938 #: .\report\tests_views.py:1138 .\report\tests_views.py:1152 -#: .\report\views.py:250 .\report\views.py:518 +#: .\report\views.py:254 .\report\views.py:522 msgid "Area activated" msgstr "Gestão ativada" @@ -1188,7 +1192,7 @@ msgid "Areas activated" msgstr "Gestões ativadas" #: .\report\models.py:102 .\report\tests_views.py:1231 -#: .\report\tests_views.py:1246 .\report\views.py:570 +#: .\report\tests_views.py:1246 .\report\views.py:574 msgid "Learning area" msgstr "Área de aprendizagem" @@ -1212,7 +1216,7 @@ msgstr "Objetivo de avaliação" msgid "Evaluation objectives" msgstr "Objetivos de avaliação" -#: .\report\models.py:216 .\templates\navbar.html:34 +#: .\report\models.py:217 .\templates\navbar.html:34 msgid "Reports" msgstr "Relatórios" @@ -1222,11 +1226,11 @@ msgstr "Adicionar gestão ativada" #: .\report\templates\area_activated\list_areas.html:35 #: .\report\tests_views.py:1138 .\report\tests_views.py:1152 -#: .\report\views.py:518 +#: .\report\views.py:522 msgid "Contact" msgstr "Contato" -#: .\report\templates\funding\add_funding.html:14 .\report\views.py:119 +#: .\report\templates\funding\add_funding.html:14 .\report\views.py:123 msgid "Add funding" msgstr "Adicionar financiamento" @@ -1234,7 +1238,7 @@ msgstr "Adicionar financiamento" #: .\report\templates\technologies\list_technologies.html:34 #: .\report\tests_views.py:1441 .\report\tests_views.py:1459 #: .\report\tests_views.py:1478 .\report\tests_views.py:1497 -#: .\report\views.py:491 +#: .\report\views.py:495 msgid "Value" msgstr "Valor" @@ -1290,14 +1294,14 @@ msgstr "Estratégico" #: .\report\templates\report\update_report.html:24 #: .\report\templates\report\update_report.html:47 .\report\tests_views.py:791 #: .\report\tests_views.py:877 .\report\tests_views.py:950 -#: .\report\views.py:267 +#: .\report\views.py:271 msgid "Learning" msgstr "Aprendizagem" #: .\report\templates\report\administrative.html:5 #: .\report\templates\report\detail_report.html:64 .\report\tests_views.py:778 #: .\report\tests_views.py:864 .\report\tests_views.py:937 -#: .\report\views.py:249 +#: .\report\views.py:253 msgid "Activity associated" msgstr "Atividade associada" @@ -1331,7 +1335,7 @@ msgstr "Título conciso para o relatório" #: .\report\templates\report\administrative.html:71 #: .\report\templates\report\detail_report.html:89 .\report\tests_views.py:780 #: .\report\tests_views.py:866 .\report\tests_views.py:939 -#: .\report\views.py:251 +#: .\report\views.py:255 msgid "Funding associated" msgstr "Financiamento associado" @@ -1342,7 +1346,7 @@ msgstr "Essa atividade está associada com algum financiamento específico?" #: .\report\templates\report\administrative.html:84 #: .\report\templates\report\detail_report.html:96 .\report\tests_views.py:780 #: .\report\tests_views.py:866 .\report\tests_views.py:939 -#: .\report\views.py:251 +#: .\report\views.py:255 msgid "Links" msgstr "Links" @@ -1392,48 +1396,48 @@ msgstr "Relatório nº %(id_)s" #: .\report\templates\report\detail_report.html:123 #: .\report\templates\report\operations.html:79 #: .\report\templates\report\operations.html:162 .\report\tests_views.py:1353 -#: .\report\tests_views.py:1388 .\report\views.py:391 +#: .\report\tests_views.py:1388 .\report\views.py:395 msgid "Number of new partnerships" msgstr "Número de novas parcerias" #: .\report\templates\report\detail_report.html:127 #: .\report\templates\report\operations.html:25 #: .\report\templates\report\operations.html:108 .\report\tests_views.py:1351 -#: .\report\tests_views.py:1385 .\report\views.py:389 +#: .\report\tests_views.py:1385 .\report\views.py:393 msgid "Number of new followers" msgstr "Número de novos seguidores" #: .\report\templates\report\detail_report.html:131 #: .\report\templates\report\operations.html:34 #: .\report\templates\report\operations.html:117 .\report\tests_views.py:1351 -#: .\report\tests_views.py:1385 .\report\views.py:389 +#: .\report\tests_views.py:1385 .\report\views.py:393 msgid "Number of mentions" msgstr "Número de menções" #: .\report\templates\report\detail_report.html:135 #: .\report\templates\report\operations.html:16 #: .\report\templates\report\operations.html:99 .\report\tests_views.py:1350 -#: .\report\tests_views.py:1384 .\report\views.py:388 +#: .\report\tests_views.py:1384 .\report\views.py:392 msgid "Number of people reached through social media" msgstr "Número de pessoas alcançadas pela redes sociais" #: .\report\templates\report\detail_report.html:139 #: .\report\templates\report\operations.html:43 #: .\report\templates\report\operations.html:126 .\report\tests_views.py:1351 -#: .\report\tests_views.py:1386 .\report\views.py:389 +#: .\report\tests_views.py:1386 .\report\views.py:393 msgid "Number of community communications" msgstr "Número de comunicações comunitárias" #: .\report\templates\report\detail_report.html:152 .\report\tests_views.py:792 #: .\report\tests_views.py:878 .\report\tests_views.py:951 -#: .\report\views.py:267 +#: .\report\views.py:271 msgid "Metrics related" msgstr "Métricas associadas" #: .\report\templates\report\detail_report.html:188 #: .\report\templates\report\quantitative.html:63 .\report\tests_views.py:782 #: .\report\tests_views.py:868 .\report\tests_views.py:941 -#: .\report\views.py:253 +#: .\report\views.py:257 msgid "Technologies used" msgstr "Tecnologias usadas" @@ -1670,442 +1674,446 @@ msgstr "Voltar para o relatório quantitativo" msgid "Fill learning report" msgstr "Preencher relatório de aprendizagem" -#: .\report\templates\technologies\add_technology.html:14 .\report\views.py:149 +#: .\report\templates\technologies\add_technology.html:14 .\report\views.py:153 msgid "Add technology" msgstr "Adicionar tecnologia" #: .\report\tests_views.py:777 .\report\tests_views.py:863 -#: .\report\tests_views.py:936 .\report\views.py:249 +#: .\report\tests_views.py:936 .\report\views.py:253 msgid "Created by" msgstr "Criado por" #: .\report\tests_views.py:777 .\report\tests_views.py:863 -#: .\report\tests_views.py:936 .\report\views.py:249 .\report\views.py:382 +#: .\report\tests_views.py:936 .\report\views.py:253 .\report\views.py:386 msgid "Created at" msgstr "Criado em" #: .\report\tests_views.py:777 .\report\tests_views.py:863 -#: .\report\tests_views.py:936 .\report\views.py:249 +#: .\report\tests_views.py:936 .\report\views.py:253 msgid "Modified by" msgstr "Modificado por" #: .\report\tests_views.py:777 .\report\tests_views.py:863 -#: .\report\tests_views.py:936 .\report\views.py:249 .\report\views.py:383 +#: .\report\tests_views.py:936 .\report\views.py:253 .\report\views.py:387 msgid "Modified at" msgstr "Modificado em" #: .\report\tests_views.py:778 .\report\tests_views.py:864 -#: .\report\tests_views.py:937 .\report\views.py:250 +#: .\report\tests_views.py:937 .\report\views.py:254 msgid "Name of the activity" msgstr "Nome da atividade" #: .\report\tests_views.py:780 .\report\tests_views.py:866 -#: .\report\tests_views.py:939 .\report\views.py:251 +#: .\report\tests_views.py:939 .\report\views.py:255 msgid "Public communication" msgstr "Comunicação pública" #: .\report\tests_views.py:782 .\report\tests_views.py:868 #: .\report\tests_views.py:941 .\report\tests_views.py:1013 -#: .\report\tests_views.py:1070 .\report\views.py:254 .\report\views.py:420 +#: .\report\tests_views.py:1070 .\report\views.py:258 .\report\views.py:424 msgid "# Wikipedia created" msgstr "# criados(as) na Wikipédia" #: .\report\tests_views.py:782 .\report\tests_views.py:868 #: .\report\tests_views.py:941 .\report\tests_views.py:1013 -#: .\report\tests_views.py:1070 .\report\views.py:254 .\report\views.py:421 +#: .\report\tests_views.py:1070 .\report\views.py:258 .\report\views.py:425 msgid "# Wikipedia edited" msgstr "# editados(as) na Wikipédia" #: .\report\tests_views.py:783 .\report\tests_views.py:869 #: .\report\tests_views.py:942 .\report\tests_views.py:1013 -#: .\report\tests_views.py:1070 .\report\views.py:255 .\report\views.py:421 +#: .\report\tests_views.py:1070 .\report\views.py:259 .\report\views.py:425 msgid "# Commons created" msgstr "# criados(as) no Commons" #: .\report\tests_views.py:783 .\report\tests_views.py:869 #: .\report\tests_views.py:942 .\report\tests_views.py:1014 -#: .\report\tests_views.py:1071 .\report\views.py:255 .\report\views.py:421 +#: .\report\tests_views.py:1071 .\report\views.py:259 .\report\views.py:425 msgid "# Commons edited" msgstr "# editados(as) no Commons" #: .\report\tests_views.py:783 .\report\tests_views.py:869 #: .\report\tests_views.py:942 .\report\tests_views.py:1014 -#: .\report\tests_views.py:1071 .\report\views.py:256 .\report\views.py:421 +#: .\report\tests_views.py:1071 .\report\views.py:260 .\report\views.py:425 msgid "# Wikidata created" msgstr "# criados(as) no Wikidata" #: .\report\tests_views.py:784 .\report\tests_views.py:870 #: .\report\tests_views.py:943 .\report\tests_views.py:1014 -#: .\report\tests_views.py:1071 .\report\views.py:256 .\report\views.py:422 +#: .\report\tests_views.py:1071 .\report\views.py:260 .\report\views.py:426 msgid "# Wikidata edited" msgstr "# editados(as) no Wikidata" #: .\report\tests_views.py:784 .\report\tests_views.py:870 #: .\report\tests_views.py:943 .\report\tests_views.py:1015 -#: .\report\tests_views.py:1072 .\report\views.py:257 .\report\views.py:422 +#: .\report\tests_views.py:1072 .\report\views.py:261 .\report\views.py:426 msgid "# Wikiversity created" msgstr "# criados(as) na Wikiversidade" #: .\report\tests_views.py:784 .\report\tests_views.py:870 #: .\report\tests_views.py:943 .\report\tests_views.py:1015 -#: .\report\tests_views.py:1072 .\report\views.py:257 .\report\views.py:422 +#: .\report\tests_views.py:1072 .\report\views.py:261 .\report\views.py:426 msgid "# Wikiversity edited" msgstr "# editados(as) na Wikiversidade" #: .\report\tests_views.py:785 .\report\tests_views.py:871 #: .\report\tests_views.py:944 .\report\tests_views.py:1015 -#: .\report\tests_views.py:1072 .\report\views.py:258 .\report\views.py:422 +#: .\report\tests_views.py:1072 .\report\views.py:262 .\report\views.py:426 msgid "# Wikibooks created" msgstr "# criados(as) no Wikilivross" #: .\report\tests_views.py:785 .\report\tests_views.py:871 #: .\report\tests_views.py:944 .\report\tests_views.py:1016 -#: .\report\tests_views.py:1073 .\report\views.py:258 .\report\views.py:423 +#: .\report\tests_views.py:1073 .\report\views.py:262 .\report\views.py:427 msgid "# Wikibooks edited" msgstr "# editados(as) no Wikilivross" #: .\report\tests_views.py:785 .\report\tests_views.py:871 #: .\report\tests_views.py:944 .\report\tests_views.py:1016 -#: .\report\tests_views.py:1073 .\report\views.py:259 .\report\views.py:423 +#: .\report\tests_views.py:1073 .\report\views.py:263 .\report\views.py:427 msgid "# Wikisource created" msgstr "# criados(as) no Wikisource" #: .\report\tests_views.py:786 .\report\tests_views.py:872 #: .\report\tests_views.py:945 .\report\tests_views.py:1016 -#: .\report\tests_views.py:1073 .\report\views.py:259 .\report\views.py:423 +#: .\report\tests_views.py:1073 .\report\views.py:263 .\report\views.py:427 msgid "# Wikisource edited" msgstr "# editados(as) no Wikisource" #: .\report\tests_views.py:786 .\report\tests_views.py:872 #: .\report\tests_views.py:945 .\report\tests_views.py:1017 -#: .\report\tests_views.py:1074 .\report\views.py:260 .\report\views.py:423 +#: .\report\tests_views.py:1074 .\report\views.py:264 .\report\views.py:427 msgid "# Wikinews created" msgstr "# criados(as) no Wikinotícias" #: .\report\tests_views.py:786 .\report\tests_views.py:872 #: .\report\tests_views.py:945 .\report\tests_views.py:1017 -#: .\report\tests_views.py:1074 .\report\views.py:260 .\report\views.py:424 +#: .\report\tests_views.py:1074 .\report\views.py:264 .\report\views.py:428 msgid "# Wikinews edited" msgstr "# editados(as) no Wikinotícias" #: .\report\tests_views.py:787 .\report\tests_views.py:873 #: .\report\tests_views.py:946 .\report\tests_views.py:1017 -#: .\report\tests_views.py:1074 .\report\views.py:261 .\report\views.py:424 +#: .\report\tests_views.py:1074 .\report\views.py:265 .\report\views.py:428 msgid "# Wikiquote created" msgstr "# criados(as) no Wikiquote" #: .\report\tests_views.py:787 .\report\tests_views.py:873 #: .\report\tests_views.py:946 .\report\tests_views.py:1018 -#: .\report\tests_views.py:1075 .\report\views.py:261 .\report\views.py:424 +#: .\report\tests_views.py:1075 .\report\views.py:265 .\report\views.py:428 msgid "# Wikiquote edited" msgstr "# editados(as) no Wikiquote" #: .\report\tests_views.py:787 .\report\tests_views.py:873 #: .\report\tests_views.py:946 .\report\tests_views.py:1018 -#: .\report\tests_views.py:1075 .\report\views.py:262 .\report\views.py:424 +#: .\report\tests_views.py:1075 .\report\views.py:266 .\report\views.py:428 msgid "# Wiktionary created" msgstr "# criados(as) no Wikcionário" #: .\report\tests_views.py:788 .\report\tests_views.py:874 #: .\report\tests_views.py:947 .\report\tests_views.py:1018 -#: .\report\tests_views.py:1075 .\report\views.py:262 .\report\views.py:425 +#: .\report\tests_views.py:1075 .\report\views.py:266 .\report\views.py:429 msgid "# Wiktionary edited" msgstr "# editados(as) no Wikcionário" #: .\report\tests_views.py:788 .\report\tests_views.py:874 #: .\report\tests_views.py:947 .\report\tests_views.py:1019 -#: .\report\tests_views.py:1076 .\report\views.py:263 .\report\views.py:425 +#: .\report\tests_views.py:1076 .\report\views.py:267 .\report\views.py:429 msgid "# Wikivoyage created" msgstr "# criados(as) no Wikivoyage" #: .\report\tests_views.py:788 .\report\tests_views.py:874 #: .\report\tests_views.py:947 .\report\tests_views.py:1019 -#: .\report\tests_views.py:1076 .\report\views.py:263 .\report\views.py:425 +#: .\report\tests_views.py:1076 .\report\views.py:267 .\report\views.py:429 msgid "# Wikivoyage edited" msgstr "# editados(as) no Wikivoyage" #: .\report\tests_views.py:789 .\report\tests_views.py:875 #: .\report\tests_views.py:948 .\report\tests_views.py:1019 -#: .\report\tests_views.py:1076 .\report\views.py:264 .\report\views.py:425 +#: .\report\tests_views.py:1076 .\report\views.py:268 .\report\views.py:429 msgid "# Wikispecies created" msgstr "# criados(as) no Wikispecies" #: .\report\tests_views.py:789 .\report\tests_views.py:875 #: .\report\tests_views.py:948 .\report\tests_views.py:1020 -#: .\report\tests_views.py:1077 .\report\views.py:264 .\report\views.py:426 +#: .\report\tests_views.py:1077 .\report\views.py:268 .\report\views.py:430 msgid "# Wikispecies edited" msgstr "# editados(as) no Wikispecies" #: .\report\tests_views.py:789 .\report\tests_views.py:875 #: .\report\tests_views.py:948 .\report\tests_views.py:1020 -#: .\report\tests_views.py:1077 .\report\views.py:265 .\report\views.py:426 +#: .\report\tests_views.py:1077 .\report\views.py:269 .\report\views.py:430 msgid "# Metawiki created" msgstr "# criados(as) no Metawiki" #: .\report\tests_views.py:790 .\report\tests_views.py:876 #: .\report\tests_views.py:949 .\report\tests_views.py:1020 -#: .\report\tests_views.py:1077 .\report\views.py:265 .\report\views.py:426 +#: .\report\tests_views.py:1077 .\report\views.py:269 .\report\views.py:430 msgid "# Metawiki edited" msgstr "# editados(as) no Metawiki" #: .\report\tests_views.py:790 .\report\tests_views.py:876 #: .\report\tests_views.py:949 .\report\tests_views.py:1021 -#: .\report\tests_views.py:1078 .\report\views.py:266 .\report\views.py:426 +#: .\report\tests_views.py:1078 .\report\views.py:270 .\report\views.py:430 msgid "# MediaWiki created" msgstr "# criados(as) no Mediawiki" #: .\report\tests_views.py:790 .\report\tests_views.py:876 #: .\report\tests_views.py:949 .\report\tests_views.py:1021 -#: .\report\tests_views.py:1078 .\report\views.py:266 .\report\views.py:427 +#: .\report\tests_views.py:1078 .\report\views.py:270 .\report\views.py:431 msgid "# MediaWiki edited" msgstr "# editados(as) no Mediawiki" #: .\report\tests_views.py:791 .\report\tests_views.py:877 -#: .\report\tests_views.py:950 .\report\views.py:267 +#: .\report\tests_views.py:950 .\report\views.py:271 msgid "Directions related" msgstr "Direções relacionadas" #: .\report\tests_views.py:791 .\report\tests_views.py:877 -#: .\report\tests_views.py:950 .\report\views.py:267 +#: .\report\tests_views.py:950 .\report\views.py:271 msgid "Learning questions related" msgstr "Questões de aprendizagem relacionadas" #: .\report\tests_views.py:1010 .\report\tests_views.py:1067 -#: .\report\views.py:418 +#: .\report\views.py:422 msgid "Activity ID" msgstr "ID da atividade" #: .\report\tests_views.py:1010 .\report\tests_views.py:1067 -#: .\report\views.py:418 +#: .\report\views.py:422 msgid "Activity code" msgstr "Código da atividade" #: .\report\tests_views.py:1012 .\report\tests_views.py:1069 -#: .\report\views.py:420 +#: .\report\views.py:424 msgid "Other type? Which?" msgstr "Outro tipo? Qual?" #: .\report\tests_views.py:1090 .\report\tests_views.py:1117 -#: .\report\views.py:457 .\users\templates\users\register.html:30 +#: .\report\views.py:461 .\users\templates\users\register.html:30 msgid "First name" msgstr "Primeiro nome" #: .\report\tests_views.py:1090 .\report\tests_views.py:1117 -#: .\report\views.py:457 +#: .\report\views.py:461 msgid "Last Name" msgstr "Último nome" #: .\report\tests_views.py:1090 .\report\tests_views.py:1117 -#: .\report\views.py:457 +#: .\report\views.py:461 msgid "Username on Wiki (WMB)" msgstr "Nome de usuário Wiki (WMB)" #: .\report\tests_views.py:1090 .\report\tests_views.py:1117 -#: .\report\views.py:457 +#: .\report\views.py:461 msgid "Username on Wiki" msgstr "Nome de usuário na Wiki" #: .\report\tests_views.py:1091 .\report\tests_views.py:1118 -#: .\report\views.py:458 .\users\models.py:56 +#: .\report\views.py:462 .\users\models.py:56 msgid "Photograph" msgstr "Foto no Commons" #: .\report\tests_views.py:1091 .\report\tests_views.py:1118 -#: .\report\views.py:458 .\users\models.py:37 +#: .\report\views.py:462 .\users\models.py:37 #: .\users\templates\users\profile.html:40 msgid "Position" msgstr "Posição" #: .\report\tests_views.py:1091 .\report\tests_views.py:1118 -#: .\report\views.py:458 +#: .\report\views.py:462 msgid "Twitter" msgstr "Twitter" #: .\report\tests_views.py:1091 .\report\tests_views.py:1118 -#: .\report\views.py:458 +#: .\report\views.py:462 msgid "Facebook" msgstr "Facebook" #: .\report\tests_views.py:1091 .\report\tests_views.py:1118 -#: .\report\views.py:458 +#: .\report\views.py:462 msgid "Instagram" msgstr "Instagram" #: .\report\tests_views.py:1091 .\report\tests_views.py:1118 -#: .\report\views.py:458 .\users\templates\users\register.html:24 +#: .\report\views.py:462 .\users\templates\users\register.html:24 msgid "Email" msgstr "E-mail" #: .\report\tests_views.py:1092 .\report\tests_views.py:1119 -#: .\report\views.py:459 +#: .\report\views.py:463 msgid "Wikidata item" msgstr "Item Wikidata" #: .\report\tests_views.py:1092 .\report\tests_views.py:1119 -#: .\report\views.py:459 +#: .\report\views.py:463 msgid "LinkedIn" msgstr "LinkedIn" #: .\report\tests_views.py:1092 .\report\tests_views.py:1119 -#: .\report\views.py:459 +#: .\report\views.py:463 msgid "Lattes" msgstr "Lattes" #: .\report\tests_views.py:1092 .\report\tests_views.py:1119 -#: .\report\views.py:459 +#: .\report\views.py:463 msgid "Orcid" msgstr "Orcid" #: .\report\tests_views.py:1092 .\report\tests_views.py:1119 -#: .\report\views.py:459 +#: .\report\views.py:463 msgid "Google_scholar" msgstr "Google Acadêmico" #: .\report\tests_views.py:1170 .\report\tests_views.py:1186 -#: .\report\views.py:536 +#: .\report\views.py:540 msgid "Direction related" msgstr "Direção relacionada" #: .\report\tests_views.py:1170 .\report\tests_views.py:1186 -#: .\report\views.py:536 +#: .\report\views.py:540 msgid "Strategic axis ID" msgstr "ID do eixo estratégico" #: .\report\tests_views.py:1170 .\report\tests_views.py:1186 -#: .\report\views.py:536 +#: .\report\views.py:540 msgid "Strategic axis text" msgstr "Texto do eixo estratégico" #: .\report\tests_views.py:1203 .\report\tests_views.py:1216 -#: .\report\views.py:553 .\users\templates\users\login.html:17 +#: .\report\views.py:557 .\users\templates\users\login.html:17 #: .\users\templates\users\register.html:18 msgid "Username" msgstr "Nome de usuário(a/e)" #: .\report\tests_views.py:1203 .\report\tests_views.py:1216 -#: .\report\views.py:553 +#: .\report\views.py:557 msgid "Number of reports including this editor" msgstr "Número de relatórios incluindo este editor" #: .\report\tests_views.py:1231 .\report\tests_views.py:1246 -#: .\report\views.py:570 +#: .\report\views.py:574 msgid "Learning question" msgstr "Pergunta de aprendizado" #: .\report\tests_views.py:1231 .\report\tests_views.py:1246 -#: .\report\views.py:570 +#: .\report\views.py:574 msgid "Learning area ID" msgstr "ID da área de aprendizagem" #: .\report\tests_views.py:1263 .\report\tests_views.py:1280 -#: .\report\views.py:587 +#: .\report\views.py:591 msgid "Organizer's name" msgstr "Nome do(a) organizador(a)" #: .\report\tests_views.py:1263 .\report\tests_views.py:1280 -#: .\report\views.py:587 +#: .\report\views.py:591 msgid "Organizer's institution ID" msgstr "ID da instituição do(a) organizador(a)" #: .\report\tests_views.py:1263 .\report\tests_views.py:1280 -#: .\report\views.py:587 +#: .\report\views.py:591 msgid "Organizer institution's name" msgstr "Nome da instituição do(a) organizador(a)" #: .\report\tests_views.py:1263 .\report\tests_views.py:1280 -#: .\report\views.py:587 +#: .\report\views.py:591 msgid "Number of reports including this organizer" msgstr "Número de relatórios incluindo este organizador" #: .\report\tests_views.py:1298 .\report\tests_views.py:1309 -#: .\report\views.py:604 +#: .\report\views.py:608 msgid "Partner's website" msgstr "Site do parceiro" #: .\report\tests_views.py:1298 .\report\tests_views.py:1309 -#: .\report\views.py:604 +#: .\report\views.py:608 msgid "Number of reports including this partner" msgstr "Número de relatórios incluindo este parceiro" #: .\report\tests_views.py:1324 .\report\tests_views.py:1335 -#: .\report\views.py:621 +#: .\report\views.py:625 msgid "Number of reports including this technology" msgstr "Número de relatórios incluindo esta tecnologia" #: .\report\tests_views.py:1350 .\report\tests_views.py:1383 -#: .\report\views.py:388 +#: .\report\views.py:392 msgid "Report ID" msgstr "ID Relatório" #: .\report\tests_views.py:1350 .\report\tests_views.py:1383 -#: .\report\views.py:388 +#: .\report\views.py:392 msgid "Metric ID" msgstr "ID Métrica" #: .\report\tests_views.py:1441 .\report\tests_views.py:1459 #: .\report\tests_views.py:1478 .\report\tests_views.py:1497 -#: .\report\views.py:491 +#: .\report\views.py:495 msgid "Project ID" msgstr "ID Projeto" #: .\report\tests_views.py:1441 .\report\tests_views.py:1459 #: .\report\tests_views.py:1478 .\report\tests_views.py:1497 -#: .\report\views.py:491 +#: .\report\views.py:495 msgid "Active?" msgstr "Ativo?" #: .\report\tests_views.py:1441 .\report\tests_views.py:1459 #: .\report\tests_views.py:1478 .\report\tests_views.py:1497 -#: .\report\views.py:491 +#: .\report\views.py:495 msgid "Type of project" msgstr "Tipo de projeto" #: .\report\tests_views.py:1452 .\report\tests_views.py:1506 -#: .\report\views.py:500 +#: .\report\views.py:504 msgid "Ordinary" msgstr "Ordinário" -#: .\report\tests_views.py:1471 .\report\views.py:502 +#: .\report\tests_views.py:1471 .\report\views.py:506 msgid "Current Plan of Activities" msgstr "Plano de atividades corrente" #: .\report\tests_views.py:1490 .\report\tests_views.py:1513 -#: .\report\views.py:504 +#: .\report\views.py:508 msgid "Main funding" msgstr "Financiamento principal" -#: .\report\views.py:48 +#: .\report\views.py:50 msgid "Report registered successfully!" msgstr "Relatório registrado com sucesso!" -#: .\report\views.py:104 +#: .\report\views.py:57 +msgid "It seems that you already submitted this report!" +msgstr "Parece que você já submeteu este relatório!" + +#: .\report\views.py:108 msgid "Add area" msgstr "Adicionar área" -#: .\report\views.py:134 +#: .\report\views.py:138 msgid "Add partnership" msgstr "Adicionar parceria" -#: .\report\views.py:171 +#: .\report\views.py:175 #, python-format msgid "View report %(report_id)s" msgstr "Visualizar relatório %(report_id)s" -#: .\report\views.py:216 +#: .\report\views.py:220 msgid "SARA - Reports" msgstr "SARA - Relatórios" -#: .\report\views.py:710 +#: .\report\views.py:714 #, python-format msgid "Edit report %(report_id)s" msgstr "Editar relatório %(report_id)s" -#: .\report\views.py:720 +#: .\report\views.py:724 #, python-format msgid "Delete report %(report_id)s" msgstr "Excluir relatório %(report_id)s" -#: .\report\views.py:793 +#: .\report\views.py:797 msgid "Other metrics" msgstr "Outras métricas" @@ -2296,4 +2304,4 @@ msgstr "Registro realizado com sucesso." #: .\users\views.py:41 msgid "Add new user" -msgstr "Registrar novo(a) usuário(a)" +msgstr "Registrar novo(a) usuário(a)" \ No newline at end of file diff --git a/report/views.py b/report/views.py index 4cd66e1..5112764 100644 --- a/report/views.py +++ b/report/views.py @@ -29,38 +29,42 @@ def add_report(request): metrics_set = list(map(int, report_form.data.getlist('metrics_related', []))) operation_formset = get_operation_formset() if request.method == "POST": + report_exists = Report.objects.filter(created_by__user=request.user, description=report_form.data.get("description")).exists() operation_metrics = operation_formset(request.POST, prefix='Operation') - if report_form.is_valid() and operation_metrics.is_valid(): - report = report_form.save(user=request.user, is_update=False) - instances = operation_metrics.save(commit=False) - - operation_metrics_related = [] - for instance in instances: - instance.report = report - instance.save() - numbers = instance.number_of_people_reached_through_social_media + instance.number_of_new_followers + instance.number_of_mentions + instance.number_of_community_communications + instance.number_of_events + instance.number_of_resources + instance.number_of_partnerships_activated + instance.number_of_new_partnerships - if numbers > 0: - operation_metrics_related.append(instance.metric) - - report.metrics_related.add(*operation_metrics_related) - report.save() - - messages.success(request, _("Report registered successfully!")) - return redirect(reverse("report:detail_report", kwargs={"report_id": report.id})) - + if not report_exists: + if report_form.is_valid() and operation_metrics.is_valid(): + report = report_form.save(user=request.user, is_update=False) + instances = operation_metrics.save(commit=False) + + operation_metrics_related = [] + for instance in instances: + instance.report = report + instance.save() + numbers = instance.number_of_people_reached_through_social_media + instance.number_of_new_followers + instance.number_of_mentions + instance.number_of_community_communications + instance.number_of_events + instance.number_of_resources + instance.number_of_partnerships_activated + instance.number_of_new_partnerships + if numbers > 0: + operation_metrics_related.append(instance.metric) + + report.metrics_related.add(*operation_metrics_related) + report.save() + + messages.success(request, _("Report registered successfully!")) + return redirect(reverse("report:detail_report", kwargs={"report_id": report.id})) + else: + messages.error(request, _("Something went wrong!")) + for field, error in report_form.errors.items(): + messages.error(request, field + ": " + error[0]) else: - messages.error(request, _("Something went wrong!")) - for field, error in report_form.errors.items(): - messages.error(request, field + ": " + error[0]) - context = { - "directions_related_set": directions_related_set, - "learning_questions_related_set": learning_questions_related_set, - "metrics_set": metrics_set, - "operation_metrics": operation_metrics, - "report_form": report_form, - "title": _("Add report") - } - return render(request, "report/add_report.html", context) + messages.error(request, _("It seems that you already submitted this report!")) + + context = { + "directions_related_set": directions_related_set, + "learning_questions_related_set": learning_questions_related_set, + "metrics_set": metrics_set, + "operation_metrics": operation_metrics, + "report_form": report_form, + "title": _("Add report") + } + return render(request, "report/add_report.html", context) else: operation_metrics = operation_formset(prefix="Operation", initial=[{"metric": metric_object} for metric_object in Metric.objects.filter(is_operation=True)]) context = {"directions_related_set": directions_related_set,