Added signature model.

This commit is contained in:
Martin Edenhofer 2012-10-01 21:09:51 +02:00
parent 0d20c7d413
commit abe409ad94

View file

@ -0,0 +1,15 @@
class App.Signature extends App.Model
@configure 'Signature', 'name', 'body', 'note', 'active'
@extend Spine.Model.Ajax
@url: '/api/signatures'
@configure_attributes = [
{ name: 'name', display: 'Name', tag: 'input', type: 'text', limit: 100, 'null': false, 'class': 'span4' },
{ name: 'body', display: 'Text', tag: 'textarea', limit: 250, 'null': true, 'class': 'span4' },
{ name: 'note', display: 'Note', tag: 'textarea', note: 'Notes are visible to agents only, never to customers.', limit: 250, 'null': true, 'class': 'span4' },
{ name: 'updated_at', display: 'Updated', type: 'time', readonly: 1 },
{ name: 'active', display: 'Active', tag: 'boolean', type: 'boolean', 'default': true, 'null': false, 'class': 'span4' },
]
@configure_overview = [
'name',
]