Ticket #83 (assigned enhancement)

Opened 8 months ago

Last modified 7 months ago

improvement for add_bill interface

Reported by: richcowan Owned by: florian
Priority: minor Milestone: 0.5
Component: other Version:
Keywords: Cc:

Description

The add_bill interface would be cleaner if there were fewer buttons... the way this could be implented intuitively is to borrow from Gmail and change the 'add line item' button to a link and put it on a separate line. And, similar to the interface for airline flight searches at beta.itasoftware.com, add a link to remove line items as well if there are too many.

Here is the change to the template add_bill.tpl.html starting with line 174:

<div class="linelinks">
  <a href="javascript:void(0)" name="add" onclick="addLastLineItem();">{t}Add line item{/t}</a> |
  <a href="javascript:void(0)" name="remove" onclick="removeLineItem();">{t}Remove last line item{/t}</a>
</div>

<div class="buttons">

Also the line 278 is incorrect grammatically in english, it should read:

{t}The following tasks are associated with this invoice{/t}

This wording change might require a change in the potext files.

Finally we need a javascript function delLastLine in the file billing.js to take care of our row deletion. Here it is:

function delLastLineItem() {
    var row=document.getElementById('tbllineitems').rows.length-1
    if (row>0){document.getElementById('tbllineitems').deleteRow(row)}
    }

Attachments

Change History

Changed 8 months ago by florian

  • status changed from new to assigned

I have corrected the grammar and have changed the "add line item" button to a link. The changes have been committed as revision r941. Does that look ok?

Currently each line item that is not tied to a task/operation does already have its own "delete" icon. Do you think the "Remove last line item" is necessary?

Changed 7 months ago by richcowan

Florian -

I think that "remove last line item" is more intuitive... just look at the beta.itasoftware.com guest page for adding legs to an airline trip. It is clean. It is not necessary however to have 2 different ways of doing things so implement whichever one you prefer.

-rich

Add/Change #83 (improvement for add_bill interface)

Author



Change Properties
<Author field>
Action
as assigned
as The resolution will be set. Next status will be 'closed'
to The owner will change. Next status will be 'new'
 
Note: See TracTickets for help on using tickets.