Skip to content

Commit

Permalink
support for oper only objects (#26)
Browse files Browse the repository at this point in the history
* merge contract groups change

* rebase to latest

* add versioning in api, other fixes

* add network oper proerties

* avoid generating operlinks

* avoid operlinks for client code gen

* global oper state

* add version to external contracts object

* support for oper only objects
  • Loading branch information
Vipin Jain authored and shaleman committed Jun 14, 2016
1 parent 2016e09 commit 6feafe4
Show file tree
Hide file tree
Showing 5 changed files with 759 additions and 432 deletions.
53 changes: 53 additions & 0 deletions client/contivModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,59 @@ var BgpModalView = React.createClass({

module.exports.BgpSummaryView = BgpSummaryView
module.exports.BgpModalView = BgpModalView
var EndpointSummaryView = React.createClass({
render: function() {
var self = this

// Walk thru all objects
var endpointListView = self.props.endpoints.map(function(endpoint){
return (
<ModalTrigger modal={<EndpointModalView endpoint={ endpoint }/>}>
<tr key={ endpoint.key } className="info">


</tr>
</ModalTrigger>
);
});

return (
<div>
<Table hover>
<thead>
<tr>


</tr>
</thead>
<tbody>
{ endpointListView }
</tbody>
</Table>
</div>
);
}
});

var EndpointModalView = React.createClass({
render() {
var obj = this.props.endpoint
return (
<Modal {...this.props} bsStyle='primary' bsSize='large' title='Endpoint' animation={false}>
<div className='modal-body' style={ {margin: '5%',} }>


</div>
<div className='modal-footer'>
<Button onClick={this.props.onRequestHide}>Close</Button>
</div>
</Modal>
);
}
});

module.exports.EndpointSummaryView = EndpointSummaryView
module.exports.EndpointModalView = EndpointModalView
var EndpointGroupSummaryView = React.createClass({
render: function() {
var self = this
Expand Down
Loading

0 comments on commit 6feafe4

Please sign in to comment.