summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
14a6944)
Instead, there is now a 'Delete' button on the 'edit' page for
individual expenditures and transfers.
width: 90px;
text-align: right;
}
width: 90px;
text-align: right;
}
+table.list td.editlink {
+ width: 30px;
+}
#totals {
margin-bottom: 10px;
}
#totals {
margin-bottom: 10px;
}
<th class="amount">Amount</th>
<th class="share">My Share</th>
<th class="editlink"></th>
<th class="amount">Amount</th>
<th class="share">My Share</th>
<th class="editlink"></th>
- <th class="deletelink"></th>
<td class="amount">${e.amount}</td>
<td class="share">${e.share(request.environ['user'])}</td>
<td class="editlink">${h.link_to('Edit', h.url_for(controller='spend', action='edit', id=e.id))}</td>
<td class="amount">${e.amount}</td>
<td class="share">${e.share(request.environ['user'])}</td>
<td class="editlink">${h.link_to('Edit', h.url_for(controller='spend', action='edit', id=e.id))}</td>
- <td class="deletelink">${h.link_to('Delete', h.url_for(controller='spend', action='delete', id=e.id))}</td>
<th class="description">Description</th>
<th class="amount">Amount</th>
<th class="editlink"></th>
<th class="description">Description</th>
<th class="amount">Amount</th>
<th class="editlink"></th>
- <th class="deletelink"></th>
<td class="description">${t.description}</td>
<td class="amount">${t.amount}</td>
<td class="editlink">${h.link_to('Edit', h.url_for(controller='transfer', action='edit', id=t.id))}</td>
<td class="description">${t.description}</td>
<td class="amount">${t.amount}</td>
<td class="editlink">${h.link_to('Edit', h.url_for(controller='transfer', action='edit', id=t.id))}</td>
- <td class="deletelink">${h.link_to('Delete', h.url_for(controller='transfer', action='delete', id=t.id))}</td>
<td colspan="2">
${h.submit(None, 'Submit', class_="submitbutton")}
<td colspan="2">
${h.submit(None, 'Submit', class_="submitbutton")}
+ %if c.expenditure.id:
+ <input type="button" value="Delete" onClick="window.location.href='${h.url_for(controller='spend', action='delete', id=c.expenditure.id)}'">
+ %endif
<td>${h.text('description', c.transfer.description, size=64)}</td>
</tr>
<tr>
<td>${h.text('description', c.transfer.description, size=64)}</td>
</tr>
<tr>
<td colspan="2">
<input type="submit" value="Submit" />
<td colspan="2">
<input type="submit" value="Submit" />
+ %if c.transfer.id:
+ <input type="button" value="Delete" onClick="window.location.href='${h.url_for(controller='transfer', action='delete', id=c.transfer.id)}'">
+ %endif