Commit 4650bd83 by alexandre

Not editable lists

parent fe5eef8b
......@@ -61,27 +61,32 @@ window.W = window.W || {};
{
name: "created_at",
label: "Créée le",
editable: false, // By default every cell in a column is editable, but *ID* shouldn't be
cell: MyDatetimeCell
},
{
name: "updated_at",
label: "Mise à jour le",
editable: false, // By default every cell in a column is editable, but *ID* shouldn't be
cell: MyDatetimeCell
},
{
name: "language",
label: "Language",
editable: false, // By default every cell in a column is editable, but *ID* shouldn't be
cell: "string",
},
{
name: "tags",
label: "Tags",
editable: false, // By default every cell in a column is editable, but *ID* shouldn't be
cell: "string",
},
{
name: "score_type",
label: "Type",
cell: "string",
editable: false, // By default every cell in a column is editable, but *ID* shouldn't be
formatter: _.extend({}, Backgrid.CellFormatter.prototype, {
fromRaw: function (rawValue, model) {
return ["transcription", "prescription", "traduction"][parseInt(rawValue)]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment