diff --git a/templates/web/admin/fields/templates.html.twig b/templates/web/admin/fields/templates.html.twig
index c785a9a701..191f3f18b8 100644
--- a/templates/web/admin/fields/templates.html.twig
+++ b/templates/web/admin/fields/templates.html.twig
@@ -189,6 +189,14 @@
+
+
+
+ |
+
|
+
+ {% trans %}generate_cterms{% endtrans %} |
+ /> |
+
diff --git a/tests/Alchemy/Tests/Phrasea/Controller/Admin/FieldsTest.php b/tests/Alchemy/Tests/Phrasea/Controller/Admin/FieldsTest.php
index e13f9e4e9a..dde4d2f9c6 100644
--- a/tests/Alchemy/Tests/Phrasea/Controller/Admin/FieldsTest.php
+++ b/tests/Alchemy/Tests/Phrasea/Controller/Admin/FieldsTest.php
@@ -229,6 +229,8 @@ class FieldsTest extends \PhraseanetAuthenticatedWebTestCase
'dces-element' => null,
'vocabulary-type' => 'User',
'vocabulary-restricted' => true,
+ 'gui_editable' => true,
+ 'generate_cterms' => true,
]);
$response = $this->request("POST", sprintf("/admin/fields/%d/fields", $databox->get_sbas_id()), [], [], $body);
diff --git a/www/scripts/models/field.js b/www/scripts/models/field.js
index e4b603ee75..cf895456c1 100644
--- a/www/scripts/models/field.js
+++ b/www/scripts/models/field.js
@@ -26,6 +26,8 @@ define([
"type": "string",
"thumbtitle": "0",
"tbranch": "",
+ "generate_cterms": false,
+ "gui_editable": true,
"separator": "",
"required": false,
"report": true,
diff --git a/www/scripts/tests/specs/models.js b/www/scripts/tests/specs/models.js
index bf4c240779..aaa15c61c4 100644
--- a/www/scripts/tests/specs/models.js
+++ b/www/scripts/tests/specs/models.js
@@ -44,6 +44,14 @@ define([
this.field.get('tbranch').should.equal("");
});
+ it("should default generate_cterms property to '1'", function () {
+ this.field.get('generate_cterms').should.equal("1");
+ });
+
+ it("should default gui_editable property to '1'", function () {
+ this.field.get('gui_editable').should.equal("1");
+ });
+
it("should default separator property to 'empty'", function () {
this.field.get('separator').should.equal("");
});