1
0
mirror of https://github.com/aclindsa/moneygo.git synced 2025-07-02 04:18:38 -04:00

Initial JavaScript UI commit

Definitely still a work in progress
This commit is contained in:
2015-07-03 09:33:45 -04:00
parent 524d82ecf7
commit 084ada7e6f
16 changed files with 1035 additions and 0 deletions

26
static/accounts.js Normal file
View File

@ -0,0 +1,26 @@
// Import all the objects we want to use from ReactBootstrap
var ListGroup = ReactBootstrap.ListGroup;
var ListGroupItem = ReactBootstrap.ListGroupItem;
var AccountList = React.createClass({
getInitialState: function() {
return {
};
},
render: function() {
var accounts = this.props.accounts;
var account_map = this.props.account_map;
var listGroupItems;
for (var i = 0; i < accounts.length; i++) {
listGroupItems += <ListGroupItem>{accounts[i].Name}</ListGroupItem>;
}
return (
<ListGroup>
{listGroupItems}
</ListGroup>
);
}
});