Skip to content

Commit 365259a

Browse files
author
Olivier Giulieri
committed
More colorful test object.
1 parent d50a31c commit 365259a

File tree

3 files changed

+7
-23
lines changed

3 files changed

+7
-23
lines changed

demo/pix/color_wheel.png

892 Bytes
Loading

demo/test.html

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -54,30 +54,13 @@ <h1 id="title">Demo</h1>
5454

5555
<div id="evol" class="">
5656

57-
<p><br/>These sample applications are not anything you haven't seen before.
58-
The interesting thing is that these different apps are in fact the same code with different UI-models
59-
and it did not require any hand coded Javascript or CSS to build them.
60-
</p>
61-
6257
<ul class="">
58+
<li><a href="#test/list" data-id="test"><img src="pix/color_wheel.png" class="evo-icon-16">Test object</a></li>
6359
<li><a href="#todo/list" data-id="todo"><img src="pix/todo.gif" class="evo-icon-16">To Do</a></li>
6460
<li><a href="#contact/list" data-id="contact"><img src="pix/contact.gif" class="evo-icon-16">AddressBook</a></li>
6561
<li><a href="#winecellar/list" data-id="wine"><img src="pix/wine.gif" class="evo-icon-16">Wine cellar</a></li>
6662
</ul>
6763

68-
<p>For each Backbone model, a single UI-model defines all views.
69-
See the UI model for the sample apps: <a href="javascript:showUIdef2(todo_ui)">To Do</a>,
70-
<a href="javascript:showUIdef2(contacts_ui)">Addressbook</a>,
71-
<a href="javascript:showUIdef2(winecellar_ui)">Wine Cellar</a>.
72-
<small id="hide_def" style="display:none;"><a href="javascript:showUIdef2no(winecellar_ui)">[Hide]</a></small></p>
73-
</p>
74-
<div style="display:none;" id="uimodel"></div>
75-
76-
<p>The data for these demos is stored in your browser local storage
77-
(using <a href="https://github.com/jeromegn/Backbone.localStorage" target="bbls">Backbone.localStorage</a>).</p>
78-
79-
<p>Evolutility.js is still a work in progress. Only Chrome is fully supported for now.</p>
80-
8164

8265
</div>
8366

js/ui-models/apps/test.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,12 @@ uiModels.test = {
7777
entities: 'tests',
7878
title: 'Test Object',
7979
leadfield:'name',
80+
icon:'color_wheel.png',
8081
elements: [
8182
{
8283
type: 'panel',
8384
css: 'panel-primary',
84-
label: 'Testing Evolutility',
85+
label: 'Test object',
8586
width: 100,
8687
elements: [
8788
{
@@ -102,17 +103,17 @@ uiModels.test = {
102103
fieldTypePanel('text', 'Text', 'Text', 'panel-success'),
103104
fieldTypePanel('lov', 'List', 'List (value)', 'panel-warning'),
104105
fieldTypePanel('list', 'List mv', 'List (multiple values)', 'panel-warning'),
105-
fieldTypePanel('textmultiline', 'Large Text', 'Large Text', 'panel-success'),
106+
fieldTypePanel('textmultiline', 'Large Text', '', 'panel-success'),
106107
fieldTypePanel('html', 'HTML')
107108
]
108109
},
109110
{
110111
type: 'tab',
111112
label: 'Date & Time',
112113
elements: [
113-
fieldTypePanel('date', 'Date'),
114-
fieldTypePanel('time', 'Time'),
115-
fieldTypePanel('datetime', 'Date and Time')
114+
fieldTypePanel('date', 'Date', '', 'panel-default'),
115+
fieldTypePanel('time', 'Time', '', 'panel-info'),
116+
fieldTypePanel('datetime', 'Date and Time', '', 'panel-primary')
116117
]
117118
},
118119
{

0 commit comments

Comments
 (0)