From 8febc823cc4048735469e58c574bcb4d92c3cfc7 Mon Sep 17 00:00:00 2001 From: einhverfr Date: Tue, 19 Aug 2008 22:49:39 +0000 Subject: Enhancements to notes and entity management: * Default workflow only allows addresses connected to entity_credit_accounts * Default workflow only allows contact info conntected to entity_credit_accounts * Notes now display the Pgsql user that created them * Notes are now displayed with linebreaks properly showing up. git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@2282 4979c152-3d1c-0410-bac9-87ea11338e46 --- UI/Contact/contact.css | 4 ++++ UI/Contact/contact.html | 21 ++++++++++++--------- sql/Pg-database.sql | 1 + 3 files changed, 17 insertions(+), 9 deletions(-) diff --git a/UI/Contact/contact.css b/UI/Contact/contact.css index b1c41d42..9971f111 100644 --- a/UI/Contact/contact.css +++ b/UI/Contact/contact.css @@ -19,6 +19,10 @@ ul.navigation li { margin-bottom: 0em; } +div.note_contents { + white-space:pre +} + div label { margin-left: 1em; } diff --git a/UI/Contact/contact.html b/UI/Contact/contact.html index 78f39c9f..f406bd3f 100644 --- a/UI/Contact/contact.html +++ b/UI/Contact/contact.html @@ -211,12 +211,12 @@ problems with multi-word single-quoted constructs in PI tags. -CT --> } ?> -
+
-
Accounts +
Accounts
@@ -226,7 +226,7 @@ problems with multi-word single-quoted constructs in PI tags. -CT --> - + class="active">
@@ -375,15 +375,17 @@ problems with multi-word single-quoted constructs in PI tags. -CT --> } ?>
- + }; + END ?>
- +
- + class="active" > @@ -723,7 +725,8 @@ problems with multi-word single-quoted constructs in PI tags. -CT -->
-
+
+
diff --git a/sql/Pg-database.sql b/sql/Pg-database.sql index 3d2d3f75..102b9255 100644 --- a/sql/Pg-database.sql +++ b/sql/Pg-database.sql @@ -364,6 +364,7 @@ CREATE UNIQUE INDEX note_class_idx ON note_class(lower(class)); CREATE TABLE note (id serial primary key, note_class integer not null references note_class(id), note text not null, vector tsvector not null, created timestamp not null default now(), + created_by text DEFAULT SESSION_USER; ref_key integer not null); CREATE TABLE entity_note(entity_id int references entity(id)) INHERITS (note); -- cgit v1.2.3