Thursday, June 25, 2009

June 25th Flex GUI framework brainstorm

The GUI interface is almost up.

Here are some pages of it.
Built by Flex3 and it's pretty nice looking, very easy theme management.



Login Window:



Registration:



User Homepage:

Thursday, June 18, 2009

June 18th Brief Summary for these days

Up to now, everything goes fine. I already finished the connections between donations and the donor account.

After the user logged in, there's a 'make a donation' link in the user homepage which will enable the donor to make a donation.

And also, I fixed the register problem by Matt's suggestion.( after a user register, it cannot go back to user homepage because the donor create after the account create, so it can't capture the donor_id). I redirect the page back to login page to let the user login again right after they finish registration which might slightly trouble the user.

----------------------

And below are things need to do in next week,

1. make the new donation page has more functions. such as: ways to donate, billing address, personal info from donor table, and bunch of check boxes.

2. think about how to make a better looking GUI. either by Flex or Css, but not sure yet.

Thursday, June 11, 2009

June 11th Relations between tables Draft

I created a draft for the donor account system.

donor has_one address, phone_number, email, account
and
donor has_many donations

To accomplish these connection between tables,
I use " accepts_nested_attributes_for ".

For example,

in donor.rb
has_one :address
accepts_nested_attributes_for :address

in donor controller
add these to new and edit functions:
@donor.build_address unless @donor.address

in view:
<% f.fields_for :address do |a| %>
... ...
<% end %>

------
Preview:



login GUI: