Skip to content

Commit

Permalink
Forgot to commit important file for the new project report :(
Browse files Browse the repository at this point in the history
  • Loading branch information
Felicitus committed Jan 4, 2012
1 parent af40987 commit 956aa64
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/frontend/js/Models/ProjectReportList.js
@@ -0,0 +1,21 @@
/**
* Represents a project report list
*/
Ext.define("PartKeepr.ProjectReportList", {
extend: "Ext.data.Model",
fields: [
{ id: 'id', name: 'id', type: 'int' },
{ name: 'name', type: 'string'},
{ name: 'description', type: 'string'},
{ name: 'user_id', type: 'int'},
{ name: 'amount', type: 'int', defaultValue: 1 }
],
hasMany: [
{ model: 'PartKeepr.ProjectPart', name: 'parts'},
{ model: 'PartKeepr.ProjectAttachment', name: 'attachments' }
],
proxy: PartKeepr.getRESTProxy("Project"),
getRecordName: function () {
return this.get("name");
}
});

0 comments on commit 956aa64

Please sign in to comment.