From 50cf7dda0d12cb8a656f6a7264200e39717ec3f5 Mon Sep 17 00:00:00 2001 From: Martin Krulis Date: Thu, 7 Dec 2017 17:34:18 +0100 Subject: [PATCH] Fixing bug and adding reset button to test edit form. --- .../forms/EditTestsForm/EditTestsForm.js | 20 ++++ .../forms/EditTestsForm/EditTestsTest.js | 2 +- src/locales/cs.json | 107 +----------------- src/locales/en.json | 105 +---------------- 4 files changed, 24 insertions(+), 210 deletions(-) diff --git a/src/components/forms/EditTestsForm/EditTestsForm.js b/src/components/forms/EditTestsForm/EditTestsForm.js index 4e3c6c122..b231d02ea 100644 --- a/src/components/forms/EditTestsForm/EditTestsForm.js +++ b/src/components/forms/EditTestsForm/EditTestsForm.js @@ -8,6 +8,8 @@ import { Alert } from 'react-bootstrap'; import EditTestsTest from './EditTestsTest'; import { CheckboxField } from '../Fields'; import SubmitButton from '../SubmitButton'; +import Button from '../../widgets/FlatButton'; +import { RefreshIcon } from '../../icons'; class EditTestsForm extends Component { render() { @@ -15,6 +17,7 @@ class EditTestsForm extends Component { dirty, submitting, handleSubmit, + reset, hasFailed = false, hasSucceeded = false, invalid, @@ -50,6 +53,22 @@ class EditTestsForm extends Component { />
+ {dirty && + + {' '} + } + {