Skip to content

Commit 2d49653

Browse files
committed
Demo - Improved demo data.
1 parent 6ddbdaf commit 2d49653

5 files changed

Lines changed: 32 additions & 15 deletions

File tree

js/ui-models/apps/comics.data.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ uiModels.comics_data = [{
275275
{
276276
"title": "The Shaolin Cowboy",
277277
"genre": "fantasy",
278-
"authors": "",
278+
"authors": "Geof Darrow and Lana and Andy Wachowski",
279279
"complete": true,
280280
"finished": true,
281281
"have": "1",

js/ui-models/apps/comics.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ uiModels.comics = {
5656
formula:function(m){
5757
var link=m.get('language')=='FR' ?
5858
'http://www.amazon.fr/s/ref=sr_nr_n_1?keywords='
59-
:'http://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Dstripbooks&field-keywords=';
59+
:'http://www.amazon.com/s/ref=nb_sb_noss?field-keywords=';
6060
link+=encodeURI(m.get('title')+' '+m.get('authors'));
6161
return '<a target="a" href="'+link+'">'+link+'</a>';
6262
}

js/ui-models/apps/contacts.data.js

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,15 @@ uiModels.contact_data = [{
8484
country: 'FR',
8585
category: '1'
8686
}, {
87-
id: '12',
87+
id: '7',
8888
lastname: 'Giulieri',
8989
firstname: 'Olivier',
9090
company: 'Evolutility',
9191
city: 'San Mateo',
9292
email: 'olivier@evolutility.org',
9393
url: 'http://www.evol-utility.org'
9494
}, {
95-
id: '14',
95+
id: '8',
9696
lastname: 'Martin',
9797
firstname: 'Mary',
9898
jobtitle: 'President',
@@ -107,7 +107,7 @@ uiModels.contact_data = [{
107107
zip: '03434',
108108
category: '1'
109109
}, {
110-
id: '15',
110+
id: '9',
111111
lastname: 'Munar',
112112
firstname: 'Roman',
113113
jobtitle: 'Mr',
@@ -126,7 +126,7 @@ uiModels.contact_data = [{
126126
country: 'PH',
127127
category: '3'
128128
}, {
129-
id: '16',
129+
id: '10',
130130
lastname: 'Smith',
131131
firstname: 'George',
132132
company: 'Blabla',
@@ -141,7 +141,7 @@ uiModels.contact_data = [{
141141
country: 'US',
142142
category: '1'
143143
}, {
144-
id: '17',
144+
id: '11',
145145
lastname: 'Kumar',
146146
firstname: 'Madhukar',
147147
jobtitle: 'CEO',
@@ -154,4 +154,15 @@ uiModels.contact_data = [{
154154
city: 'Bengaluru',
155155
country: 'IN',
156156
category: '4'
157+
}, {
158+
id: '12',
159+
lastname: 'Cheng',
160+
firstname: 'Chris',
161+
jobtitle: 'CTO',
162+
company: 'MyGreatCorporation',
163+
email: 'ccheng@MyGreatCorporation.com',
164+
phonecell: '650 234 8245',
165+
city: 'Sunnyvalle',
166+
country: 'CA',
167+
category: '4'
157168
}];

js/ui-models/apps/todo.data.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
var uiModels = uiModels || {};
22
uiModels.todo_data = [
3-
{id: '1', title: 'Add routing to Evolutility', priority: '2', category: 'others', complete: false, notes: 'Use Backbone router.'},
4-
{id: '2', title: 'Fix open bugs', duedate: '2014-07-25', priority: '3', category: 'work', complete: false, notes: 'bla bla'},
5-
{id: '3', title: 'Testing App', duedate: '2014-06-11', priority: '3', category: 'work', complete: false, notes: 'test'},
6-
{id: '4', title: 'Prepare demo', duedate: '2014-05-12', priority: '1', category: 'work', complete: false, notes: 'Check this out'},
7-
{id: '5', title: 'Test latest code', priority: '5', category: 'misc', complete: true, notes: 'notes for my test todo task.'},
3+
{id: '1', title: 'Add routing to Evolutility', priority: '2', category: 'others', complete: false, description: 'Use Backbone router.'},
4+
{id: '2', title: 'Fix open bugs', duedate: '2014-07-25', priority: '3', category: 'work', complete: false, description: 'bla bla'},
5+
{id: '3', title: 'Testing App', duedate: '2014-06-11', priority: '3', category: 'work', complete: false, description: 'test'},
6+
{id: '4', title: 'Prepare demo', duedate: '2014-05-12', priority: '1', category: 'work', complete: false, description: 'Check this out'},
7+
{id: '5', title: 'Test latest code', priority: '5', category: 'misc', complete: true, description: 'notes for my test todo task.'},
88
{id: '6', title: 'Car wash', priority: '4', category: 'work', complete: false},
99
{id: '7', title: 'Watch Inception', duedate: '2014-01-10', priority: '5', category: 'fun', complete: true},
10-
{id: '8', title: 'Test TODO', duedate: '2015-01-01', priority: '1', category: 'work', complete: true, notes: 'Test TODO '},
10+
{id: '8', title: 'Test TODO', duedate: '2015-01-01', priority: '1', category: 'work', complete: true, description: 'Test TODO '},
1111
{id: '9', title: 'Car wash', priority: '4', category: 'work', complete: false},
1212
{id: '10', title: 'French translation', priority: '4', category: 'work'},
1313
{id: '11', title: 'Italian translation', priority: '4', category: 'work'},

js/ui-models/apps/todo.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,17 @@ uiModels.todo = {
5656
]
5757
},
5858
{
59-
type: 'panel', label: 'Notes', width: 100,
59+
type: 'panel', label: 'Task Description', label2:'and Notes', width: 100,
6060
elements: [
61+
{
62+
id: 'description', attribute: 'description', type: 'textmultiline',
63+
label: 'Description',
64+
maxlength: 1000,
65+
width: 62, height: 5, viewmany: false
66+
},
6167
{
6268
id: 'notes', attribute: 'notes', type: 'textmultiline', label: 'Notes', maxlength: 1000,
63-
width: 100, height: 6, viewmany: false
69+
width: 38, height: 5, viewmany: false
6470
}
6571
]
6672
}

0 commit comments

Comments
 (0)