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:
26
static/accounts.js
Normal file
26
static/accounts.js
Normal 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>
|
||||
);
|
||||
}
|
||||
});
|
Reference in New Issue
Block a user