Implemented edit and update for entries.

- Added ts_entry:delete/1 to delete an entry from the database.
- Implemented ts_api:delete_entry/3.
- Added a form to facilitate editing individual entries.
- Moved the small show/hide functions directly into the HTML.
- Wired up the update timeline form.
- Wired up the edit and update entry form.
This commit is contained in:
Jonathan Bernard
2011-03-08 18:02:33 -06:00
parent 1b1e31059b
commit 39c3b83d3f
12 changed files with 150 additions and 47 deletions

View File

@ -211,7 +211,7 @@ body {
background: #b34c2b;
color: #c5c5b9;
font-weight: bold;
min-width: 2em;
width: 2em;
text-align: right; }
.entry-bar .details {
float: left; }
@ -223,6 +223,13 @@ body {
.entry-bar .details .entry-notes {
display: none;
padding-left: 1.5em; }
.entry-bar .entry-edit {
display: none; }
.entry-bar .entry-edit .id {
width: 2em;
padding: 0.2em 0.5em 0.2em 0.5em; }
.entry-bar .entry-edit .entry-notes {
padding: 0; }
.top-entry {
-moz-border-radius-topleft: 0.5em;

View File

@ -264,7 +264,7 @@ body {
background: $obor;
color: lighten($greyTxt, 40%);
font-weight: bold;
min-width: 2em;
width: 2em;
text-align: right;
}
@ -283,6 +283,19 @@ body {
padding-left: 1.5em;
}
}
.entry-edit {
display: none;
.id {
width: 2em;
padding: 0.2em 0.5em 0.2em 0.5em;
}
.entry-notes {
padding: 0;
}
}
}
.top-entry {