diff --git a/frontend/src/component/feature/form/strategies-list.jsx b/frontend/src/component/feature/form/strategies-list.jsx
index 5357f878f6..d62e049dab 100644
--- a/frontend/src/component/feature/form/strategies-list.jsx
+++ b/frontend/src/component/feature/form/strategies-list.jsx
@@ -31,7 +31,7 @@ class StrategiesList extends React.Component {
strategyDefinition={strategies.find(s => s.name === strat.name)} />
));
return (
-
+
{blocks}
);
diff --git a/frontend/src/component/feature/form/strategy-configure.jsx b/frontend/src/component/feature/form/strategy-configure.jsx
index d3111c9719..e76dace88c 100644
--- a/frontend/src/component/feature/form/strategy-configure.jsx
+++ b/frontend/src/component/feature/form/strategy-configure.jsx
@@ -1,5 +1,5 @@
import React, { PropTypes } from 'react';
-import { Textfield, Button } from 'react-mdl';
+import { Textfield, Button, Card, CardTitle, CardText, CardActions, CardMenu, IconButton } from 'react-mdl';
class StrategyConfigure extends React.Component {
@@ -28,9 +28,14 @@ class StrategyConfigure extends React.Component {
renderInputFields (strategyDefinition) {
if (strategyDefinition.parametersTemplate) {
- return Object.keys(strategyDefinition.parametersTemplate).map(field => (
+ const keys = Object.keys(strategyDefinition.parametersTemplate);
+ if (keys.length === 0) {
+ return null;
+ }
+ return keys.map(field => (
));
}
+ return null;
}
render () {
@@ -52,19 +58,34 @@ class StrategyConfigure extends React.Component {
);
}
- const inputFields = this.renderInputFields(this.props.strategyDefinition) || [];
+ const inputFields = this.renderInputFields(this.props.strategyDefinition);
+
+ const { name } = this.props.strategy;
return (
-
-
- {this.props.strategy.name}
- (remove)
-
-
{this.props.strategyDefinition.description}
-
- {inputFields}
-
-
+
+
+ { name }
+
+
+ {this.props.strategyDefinition.description}
+
+ {
+ inputFields &&
+ {inputFields}
+
+ }
+
+
+
+
+
);
}
}