diff --git a/amt/locale/base.pot b/amt/locale/base.pot index 3be6b69d..40600934 100644 --- a/amt/locale/base.pot +++ b/amt/locale/base.pot @@ -267,17 +267,18 @@ msgstr "" msgid "Algorithmic Management Toolkit (AMT)" msgstr "" -#: amt/site/templates/macros/editable.html.j2:21 +#: amt/site/templates/macros/editable.html.j2:23 +#: amt/site/templates/macros/editable.html.j2:26 #: amt/site/templates/projects/details_requirements.html.j2:55 msgid "Edit" msgstr "" -#: amt/site/templates/macros/editable.html.j2:58 +#: amt/site/templates/macros/editable.html.j2:62 #: amt/site/templates/projects/details_measure_modal.html.j2:84 msgid "Save" msgstr "" -#: amt/site/templates/macros/editable.html.j2:63 +#: amt/site/templates/macros/editable.html.j2:67 #: amt/site/templates/projects/details_measure_modal.html.j2:88 msgid "Cancel" msgstr "" @@ -295,10 +296,10 @@ msgid "Reviewing" msgstr "" #: amt/site/templates/macros/tasks.html.j2:32 -#: amt/site/templates/projects/details_base.html.j2:28 -#: amt/site/templates/projects/details_base.html.j2:54 -#: amt/site/templates/projects/details_base.html.j2:83 -#: amt/site/templates/projects/details_base.html.j2:106 +#: amt/site/templates/projects/details_base.html.j2:29 +#: amt/site/templates/projects/details_base.html.j2:55 +#: amt/site/templates/projects/details_base.html.j2:84 +#: amt/site/templates/projects/details_base.html.j2:107 msgid "Done" msgstr "" @@ -448,28 +449,28 @@ msgstr "" msgid "Select publication category" msgstr "" -#: amt/site/templates/projects/details_base.html.j2:25 +#: amt/site/templates/projects/details_base.html.j2:26 msgid "Does the algorithm meet the requirements?" msgstr "" -#: amt/site/templates/projects/details_base.html.j2:50 -#: amt/site/templates/projects/details_base.html.j2:104 +#: amt/site/templates/projects/details_base.html.j2:51 +#: amt/site/templates/projects/details_base.html.j2:105 msgid "To do" msgstr "" -#: amt/site/templates/projects/details_base.html.j2:52 +#: amt/site/templates/projects/details_base.html.j2:53 msgid "In progress" msgstr "" -#: amt/site/templates/projects/details_base.html.j2:69 +#: amt/site/templates/projects/details_base.html.j2:70 msgid "Go to all requirements" msgstr "" -#: amt/site/templates/projects/details_base.html.j2:80 +#: amt/site/templates/projects/details_base.html.j2:81 msgid "Which instruments are executed?" msgstr "" -#: amt/site/templates/projects/details_base.html.j2:121 +#: amt/site/templates/projects/details_base.html.j2:122 msgid "Go to all instruments" msgstr "" @@ -601,7 +602,7 @@ msgid "Algorithm System name" msgstr "" #: amt/site/templates/projects/new.html.j2:26 -msgid "Your algorithm system name here" +msgid "Name of the algorithm system" msgstr "" #: amt/site/templates/projects/new.html.j2:39 diff --git a/amt/locale/en_US/LC_MESSAGES/messages.mo b/amt/locale/en_US/LC_MESSAGES/messages.mo index e81e8679..96833d06 100644 Binary files a/amt/locale/en_US/LC_MESSAGES/messages.mo and b/amt/locale/en_US/LC_MESSAGES/messages.mo differ diff --git a/amt/locale/en_US/LC_MESSAGES/messages.po b/amt/locale/en_US/LC_MESSAGES/messages.po index 7545cfd8..d1371da5 100644 --- a/amt/locale/en_US/LC_MESSAGES/messages.po +++ b/amt/locale/en_US/LC_MESSAGES/messages.po @@ -268,17 +268,18 @@ msgstr "" msgid "Algorithmic Management Toolkit (AMT)" msgstr "" -#: amt/site/templates/macros/editable.html.j2:21 +#: amt/site/templates/macros/editable.html.j2:23 +#: amt/site/templates/macros/editable.html.j2:26 #: amt/site/templates/projects/details_requirements.html.j2:55 msgid "Edit" msgstr "" -#: amt/site/templates/macros/editable.html.j2:58 +#: amt/site/templates/macros/editable.html.j2:62 #: amt/site/templates/projects/details_measure_modal.html.j2:84 msgid "Save" msgstr "" -#: amt/site/templates/macros/editable.html.j2:63 +#: amt/site/templates/macros/editable.html.j2:67 #: amt/site/templates/projects/details_measure_modal.html.j2:88 msgid "Cancel" msgstr "" @@ -296,10 +297,10 @@ msgid "Reviewing" msgstr "" #: amt/site/templates/macros/tasks.html.j2:32 -#: amt/site/templates/projects/details_base.html.j2:28 -#: amt/site/templates/projects/details_base.html.j2:54 -#: amt/site/templates/projects/details_base.html.j2:83 -#: amt/site/templates/projects/details_base.html.j2:106 +#: amt/site/templates/projects/details_base.html.j2:29 +#: amt/site/templates/projects/details_base.html.j2:55 +#: amt/site/templates/projects/details_base.html.j2:84 +#: amt/site/templates/projects/details_base.html.j2:107 msgid "Done" msgstr "" @@ -449,28 +450,28 @@ msgstr "" msgid "Select publication category" msgstr "" -#: amt/site/templates/projects/details_base.html.j2:25 +#: amt/site/templates/projects/details_base.html.j2:26 msgid "Does the algorithm meet the requirements?" msgstr "" -#: amt/site/templates/projects/details_base.html.j2:50 -#: amt/site/templates/projects/details_base.html.j2:104 +#: amt/site/templates/projects/details_base.html.j2:51 +#: amt/site/templates/projects/details_base.html.j2:105 msgid "To do" msgstr "" -#: amt/site/templates/projects/details_base.html.j2:52 +#: amt/site/templates/projects/details_base.html.j2:53 msgid "In progress" msgstr "" -#: amt/site/templates/projects/details_base.html.j2:69 +#: amt/site/templates/projects/details_base.html.j2:70 msgid "Go to all requirements" msgstr "" -#: amt/site/templates/projects/details_base.html.j2:80 +#: amt/site/templates/projects/details_base.html.j2:81 msgid "Which instruments are executed?" msgstr "" -#: amt/site/templates/projects/details_base.html.j2:121 +#: amt/site/templates/projects/details_base.html.j2:122 msgid "Go to all instruments" msgstr "" @@ -602,7 +603,7 @@ msgid "Algorithm System name" msgstr "" #: amt/site/templates/projects/new.html.j2:26 -msgid "Your algorithm system name here" +msgid "Name of the algorithm system" msgstr "" #: amt/site/templates/projects/new.html.j2:39 diff --git a/amt/locale/nl_NL/LC_MESSAGES/messages.mo b/amt/locale/nl_NL/LC_MESSAGES/messages.mo index 58dfd39e..0a6bd489 100644 Binary files a/amt/locale/nl_NL/LC_MESSAGES/messages.mo and b/amt/locale/nl_NL/LC_MESSAGES/messages.mo differ diff --git a/amt/locale/nl_NL/LC_MESSAGES/messages.po b/amt/locale/nl_NL/LC_MESSAGES/messages.po index 23b10d08..7cd30964 100644 --- a/amt/locale/nl_NL/LC_MESSAGES/messages.po +++ b/amt/locale/nl_NL/LC_MESSAGES/messages.po @@ -276,17 +276,18 @@ msgstr "Er is een fout opgetreden. Probeer het later opnieuw." msgid "Algorithmic Management Toolkit (AMT)" msgstr "Algoritme Management Toolkit (AMT)" -#: amt/site/templates/macros/editable.html.j2:21 +#: amt/site/templates/macros/editable.html.j2:23 +#: amt/site/templates/macros/editable.html.j2:26 #: amt/site/templates/projects/details_requirements.html.j2:55 msgid "Edit" -msgstr "Bewerken" +msgstr "Bewerk" -#: amt/site/templates/macros/editable.html.j2:58 +#: amt/site/templates/macros/editable.html.j2:62 #: amt/site/templates/projects/details_measure_modal.html.j2:84 msgid "Save" msgstr "Opslaan" -#: amt/site/templates/macros/editable.html.j2:63 +#: amt/site/templates/macros/editable.html.j2:67 #: amt/site/templates/projects/details_measure_modal.html.j2:88 msgid "Cancel" msgstr "Annuleren" @@ -304,10 +305,10 @@ msgid "Reviewing" msgstr "Beoordelen" #: amt/site/templates/macros/tasks.html.j2:32 -#: amt/site/templates/projects/details_base.html.j2:28 -#: amt/site/templates/projects/details_base.html.j2:54 -#: amt/site/templates/projects/details_base.html.j2:83 -#: amt/site/templates/projects/details_base.html.j2:106 +#: amt/site/templates/projects/details_base.html.j2:29 +#: amt/site/templates/projects/details_base.html.j2:55 +#: amt/site/templates/projects/details_base.html.j2:84 +#: amt/site/templates/projects/details_base.html.j2:107 msgid "Done" msgstr "Afgerond" @@ -467,28 +468,28 @@ msgstr "Selecteer levenscyclus" msgid "Select publication category" msgstr "Selecteer publicatiecategorie" -#: amt/site/templates/projects/details_base.html.j2:25 +#: amt/site/templates/projects/details_base.html.j2:26 msgid "Does the algorithm meet the requirements?" msgstr "Voldoet het algoritme aan de vereisten?" -#: amt/site/templates/projects/details_base.html.j2:50 -#: amt/site/templates/projects/details_base.html.j2:104 +#: amt/site/templates/projects/details_base.html.j2:51 +#: amt/site/templates/projects/details_base.html.j2:105 msgid "To do" msgstr "Te doen" -#: amt/site/templates/projects/details_base.html.j2:52 +#: amt/site/templates/projects/details_base.html.j2:53 msgid "In progress" msgstr "Onderhanden" -#: amt/site/templates/projects/details_base.html.j2:69 +#: amt/site/templates/projects/details_base.html.j2:70 msgid "Go to all requirements" msgstr "Ga naar alle Vereisten" -#: amt/site/templates/projects/details_base.html.j2:80 +#: amt/site/templates/projects/details_base.html.j2:81 msgid "Which instruments are executed?" msgstr "Welke instrumenten zijn uitgevoerd?" -#: amt/site/templates/projects/details_base.html.j2:121 +#: amt/site/templates/projects/details_base.html.j2:122 msgid "Go to all instruments" msgstr "Ga naar all instrumenten" @@ -619,11 +620,11 @@ msgstr "Creƫer een Algoritme Systeem" #: amt/site/templates/projects/new.html.j2:23 msgid "Algorithm System name" -msgstr "Algoritmekader" +msgstr "Naam algoritme systeem" #: amt/site/templates/projects/new.html.j2:26 -msgid "Your algorithm system name here" -msgstr "Jouw algoritme systeem naam hier" +msgid "Name of the algorithm system" +msgstr "Naam van het algoritme systeem" #: amt/site/templates/projects/new.html.j2:39 msgid "Select the lifecycle your algorithm system is currently in." diff --git a/amt/site/templates/macros/editable.html.j2 b/amt/site/templates/macros/editable.html.j2 index aa3353d4..bfcc5640 100644 --- a/amt/site/templates/macros/editable.html.j2 +++ b/amt/site/templates/macros/editable.html.j2 @@ -14,57 +14,62 @@ {{ value }} {% endif %} {% endif %} - - -{% endmacro %} -{% macro edit(obj, field_path) %} - -
-
-
-
- {% set value = nested_value(obj, field_path) %} - {% if is_nested_enum(obj, field_path) %} -
- -
- {% else %} - - {% endif %} -
-
- - + style="cursor: pointer; + float:right"> + {% trans %}Edit{% endtrans %} + + {% endmacro %} + {% macro edit(obj, field_path) %} + + +
+
+
+ {% set value = nested_value(obj, field_path) %} + {% if is_nested_enum(obj, field_path) %} +
+ +
+ {% else %} + + {% endif %} +
+
+ + +
-
- - -{% endmacro %} + + + {% endmacro %} diff --git a/amt/site/templates/projects/details_base.html.j2 b/amt/site/templates/projects/details_base.html.j2 index 0aac5194..c3eb6d80 100644 --- a/amt/site/templates/projects/details_base.html.j2 +++ b/amt/site/templates/projects/details_base.html.j2 @@ -1,4 +1,5 @@ {% extends 'layouts/base.html.j2' %} +{% from "macros/editable.html.j2" import editable with context %} {% block title %}{{ project.name }} | AMT{% endblock %} {% block content %}
-

{{ project.name }}

+

{{ editable(project, "name") }}

diff --git a/amt/site/templates/projects/new.html.j2 b/amt/site/templates/projects/new.html.j2 index cbf11a0e..d6cf3037 100644 --- a/amt/site/templates/projects/new.html.j2 +++ b/amt/site/templates/projects/new.html.j2 @@ -23,7 +23,7 @@