Allow appointment status colours to be configured in site.properties

Description

The colours for appointment statuses are hardcoded in default.stylesheet using styles like:

1 2 3 4 5 6 7 8 9 10 11 12 <style name="ScheduleTable.PENDING" type="nextapp.echo2.app.Component"> <properties> <property name="layoutData"> <layout-data type="nextapp.echo2.app.layout.TableLayoutData"> <properties> <property name="background" value="#ffffff"/> <property name="insets" value="${padding.small} ${padding.tiny}"/> </properties> </layout-data> </property> </properties> </style>

To simplify customisation, the background should be defned as a property in default.properties, so it can be overridden as required.
E.g in default.properties:

1 schedule.PENDING.colour = #ffffff

And the corresponding style:

1 2 3 4 5 6 7 8 9 10 11 12 <style name="ScheduleTable.PENDING" type="nextapp.echo2.app.Component"> <properties> <property name="layoutData"> <layout-data type="nextapp.echo2.app.layout.TableLayoutData"> <properties> <property name="background" value="${schedule.PENDING.colour}"/> <property name="insets" value="${padding.small} ${padding.tiny}"/> </properties> </layout-data> </property> </properties> </style>

Environment

None

Status

Assignee

Tim Anderson

Reporter

Tim Anderson

Labels

None

Fix versions

Priority

Minor