mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-24 15:48:55 +01:00
41787c36f3
- Added system for readonlys: Readonly is passed in constructor as third parameter. If a widget class is registerd with "[type]_ro" (see et2_textbox for example) this one is created - Added new 'valueWidget' base class which introduces the 'value' attribute and implements auto loading from the content array - Implemented readonly attribute for buttons and textboxes
77 lines
2.0 KiB
JSON
77 lines
2.0 KiB
JSON
var timesheet_data = {
|
|
"content":{
|
|
"ts_id":"1",
|
|
"ts_project":null,
|
|
"ts_title":"Test geschrieben",
|
|
"ts_description":"This is just a test description",
|
|
"ts_start":1307030400,
|
|
"ts_duration":"150",
|
|
"ts_quantity":"2.5",
|
|
"ts_unitprice":null,
|
|
"cat_id":null,
|
|
"ts_owner":"5",
|
|
"ts_modified":1307039479,
|
|
"ts_modifier":"5",
|
|
"pl_id":null,
|
|
"ts_status":null,
|
|
"user_timezone_read":"Europe/Berlin",
|
|
"msg":null,
|
|
"view":false,
|
|
"tabs":null,
|
|
"link_to":{
|
|
"to_id":"1",
|
|
"to_app":"timesheet"
|
|
},
|
|
"js":"<script>\u000a\u000a</script>\u000a",
|
|
"ts_quantity_blur":2.5,
|
|
"start_time":"18:00",
|
|
"pm_integration":null,
|
|
"no_ts_status":true,
|
|
"all_pm_ids":[],
|
|
"history":{
|
|
"id":"1",
|
|
"app":"timesheet",
|
|
"status-widgets":{
|
|
"ts_status":[],
|
|
"ts_modifier":"select-account",
|
|
"cat_id":"select-cat"
|
|
}
|
|
},
|
|
"ts_title_blur":null
|
|
},
|
|
"sel_options":{
|
|
"status":{
|
|
"ts_project":"Project",
|
|
"ts_title":"Title",
|
|
"cat_id":"Category",
|
|
"ts_description":"Description",
|
|
"ts_start":"Start",
|
|
"ts_duration":"Duration",
|
|
"ts_quantity":"Quantity",
|
|
"ts_unitprice":"Unitprice",
|
|
"ts_owner":"Owner",
|
|
"ts_modifier":"Modifier",
|
|
"ts_status":"Status",
|
|
"pm_id":"Projectid",
|
|
"customfields":"Custom fields"
|
|
},
|
|
"ts_owner":{
|
|
"5":"User, admin"
|
|
},
|
|
"ts_status":[]
|
|
},
|
|
"readonlys":{
|
|
"button[delete]":false,
|
|
"button[edit]":true,
|
|
"button[save]":false,
|
|
"button[save_new]":false,
|
|
"button[apply]":false,
|
|
"ts_owner":true,
|
|
"tabs":{
|
|
"customfields":true
|
|
},
|
|
"ts_description": true
|
|
}
|
|
}
|
|
|