Просмотр исходного кода

json.template: add field for flag

Maximilian Ronniger 10 лет назад
Родитель
Сommit
bd957656d1
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      src/templates/data.json

+ 2 - 1
src/templates/data.json

@@ -3,6 +3,7 @@
 	{"name": "Date2","datatype": "string","editable": true },
 	{"name": "Titel","datatype": "string","editable": true },
 	{"name": "Languages","datatype": "string","editable": true },
+	{"name": "Flag","label":"Flag","datatype":"string","editable":false},
 	{"name": "Country","label":"Country","datatype":"string","editable":true},
 	{"name": "City","datatype": "string","editable": true },
 	{"name": "Place","datatype": "string","editable": true },
@@ -15,6 +16,6 @@
 	{"name":"action","label":"","datatype":"html","bar":true,"editable":false,"values":null}
 ],
 "data":[{% for result in results %}
-{"id":"{{result._id}}","values":{"Date":"{{result.Date}}","Date2":"{{result.Date2}}","Titel":"{{result.Titel}}","Languages":"{{result.Languages}}","Country":"{{result.Country}}","City":"{{result.City}}","Place":"{{result.Place}}","Category":"{{result.Category}}","Duration":"{{result.Duration}}","Location":"{{result.Location}}","Format":"{{result.Format}}","Note":"{{result.Note}}","Status":"{{result.Status}}","action":""}},{% endfor %}
+{"id":"{{result._id}}","values":{"Date":"{{result.Date}}","Date2":"{{result.Date2}}","Titel":"{{result.Titel}}","Languages":"{{result.Languages}}","Flag":"{{result.Country}}","Country":"{{result.Country}}","City":"{{result.City}}","Place":"{{result.Place}}","Category":"{{result.Category}}","Duration":"{{result.Duration}}","Location":"{{result.Location}}","Format":"{{result.Format}}","Note":"{{result.Note}}","Status":"{{result.Status}}","action":""}},{% endfor %}
 {}
 ]}