mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-11 03:53:13 +00:00
Add field application
Add asset dependencies Add field model Add field tests Add field app Add JS build Add end file blank line Adjust asset dependencies version Remove assets test libraries from build Remove unecessary comments Add end file blank line Fix indent
This commit is contained in:

committed by
Romain Neutron

parent
d0431248ce
commit
1ff4e4060b
21
www/scripts/apps/admin/fields/views/edit.js
Normal file
21
www/scripts/apps/admin/fields/views/edit.js
Normal file
@@ -0,0 +1,21 @@
|
||||
define([
|
||||
'jquery',
|
||||
'underscore',
|
||||
'backbone',
|
||||
'i18n'
|
||||
], function($, _, Backbone, i18n) {
|
||||
var FieldEditView = Backbone.View.extend({
|
||||
tagName: "div",
|
||||
className: "field-edit",
|
||||
render: function() {
|
||||
this.el.innerHTML = '';
|
||||
this.el.innerHTML = Twig.render(fieldsEdit, {
|
||||
field: this.model.attributes
|
||||
});
|
||||
|
||||
return this;
|
||||
}
|
||||
});
|
||||
|
||||
return FieldEditView;
|
||||
});
|
Reference in New Issue
Block a user