From 8b03422d5cf4b6d6052c5c10edbbc76db990d9ac Mon Sep 17 00:00:00 2001 From: Gard Rimestad Date: Thu, 13 Nov 2014 10:46:45 +0100 Subject: [PATCH] admin - convert feature list into table --- public/js/components/feature/Feature.jsx | 37 +++++++++++--------- public/js/components/feature/FeatureList.jsx | 18 +++++++++- 2 files changed, 38 insertions(+), 17 deletions(-) diff --git a/public/js/components/feature/Feature.jsx b/public/js/components/feature/Feature.jsx index 26b5e7cee8..7bc568c9b0 100644 --- a/public/js/components/feature/Feature.jsx +++ b/public/js/components/feature/Feature.jsx @@ -22,36 +22,41 @@ var Feature = React.createClass({ }, render: function() { - return (
- {this.state.editMode ? this.renderEditMode() : this.renderViewMode()} -
); + return this.state.editMode ? this.renderEditMode() : this.renderViewMode(); }, renderEditMode: function() { - return (); + return ( + + + + + + ); }, renderViewMode: function() { var strikeThrough = this.props.feature.enabled ? '' : 'strikethrough'; + return ( -
-
- {this.props.feature.name} -
+ + + {this.props.feature.name} + -
- {this.props.feature.description || '\u00a0'} -
+ + {this.props.feature.description || '\u00a0'} + -
+ {this.props.feature.strategy} -
+ -
+ -
-
+ + ); } }); diff --git a/public/js/components/feature/FeatureList.jsx b/public/js/components/feature/FeatureList.jsx index ccda9aa0a9..7fbf6c7bf1 100644 --- a/public/js/components/feature/FeatureList.jsx +++ b/public/js/components/feature/FeatureList.jsx @@ -12,7 +12,23 @@ var FeatureList = React.createClass({ ); }.bind(this)); - return
{featureNodes}
; + return ( +
+ + + + + + + + + + + {featureNodes} + +
NameDescriptionStrategy
+
+ ); } });