From cb88a15ee96db5759026cc7ea9e3b0a56e6151ae Mon Sep 17 00:00:00 2001 From: andsandv Date: Thu, 23 Oct 2014 14:30:02 +0200 Subject: [PATCH] #12 Add FeatureForm for new Features --- unleash-server/public/index.html | 39 ---------------------- unleash-server/public/js/unleash.jsx | 50 ++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+), 39 deletions(-) diff --git a/unleash-server/public/index.html b/unleash-server/public/index.html index d14dfbb049..fec195fd71 100644 --- a/unleash-server/public/index.html +++ b/unleash-server/public/index.html @@ -25,45 +25,6 @@
Loading...
- - \ No newline at end of file diff --git a/unleash-server/public/js/unleash.jsx b/unleash-server/public/js/unleash.jsx index 94498ebb87..eadc60c70a 100644 --- a/unleash-server/public/js/unleash.jsx +++ b/unleash-server/public/js/unleash.jsx @@ -16,6 +16,55 @@ // Meny // NewFeatureForm +var FeatureForm = React.createClass({ + + render: function () { + return ( +
+
+ + Add a new feature + +
+ +
+ +

Give the feature a name

+
+
+ +
+ +
+ +

Describe the feature

+
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+
+ ); + } +}); + var Feature = React.createClass({ // TODO: validate props? handleEnableChange: function(event) { @@ -131,6 +180,7 @@ var FeatureList = React.createClass({
{featureNodes} +
);