From 86a369f801e0ae63fa3ba7b42332c9a3f516e09b Mon Sep 17 00:00:00 2001 From: Tom Russell Date: Thu, 4 Apr 2019 13:05:58 +0100 Subject: [PATCH] Sketch structure for year estimate --- app/src/frontend/building-edit.js | 18 ++++++++++++++++++ app/src/frontend/fields-config.json | 10 +++++----- 2 files changed, 23 insertions(+), 5 deletions(-) diff --git a/app/src/frontend/building-edit.js b/app/src/frontend/building-edit.js index 15a3524e..f3805c95 100644 --- a/app/src/frontend/building-edit.js +++ b/app/src/frontend/building-edit.js @@ -224,6 +224,9 @@ class EditForm extends Component { case "number": return + case "year_estimator": + return case "text_multi": return @@ -383,6 +386,21 @@ const NumberInput = (props) => ( ); +class YearEstimator extends Component { + constructor(props) { + super(props); + } + // TODO add dropdown for decade, century + // TODO roll in first/last year estimate + // TODO handle changes internally, reporting out date_year, date_upper, date_lower + render() { + return ( + + ) + } +} + const CheckboxInput = (props) => (