/*global Module*/ "use strict"; import React from 'react'; import Select from 'react-select'; const genders = [ { value: 'empty', label: ' ' }, { value: 'man', label: 'Mężczyzna' }, { value: 'woman', label: 'Kobieta' } ]; const hands = [ { value: 'empty', label: ' ' }, { value: 'left', label: 'Lewa' }, { value: 'right', label: 'Prawa' }, { value: 'both', label: 'Obie' } ]; const currentYear = new Date().getFullYear(); const years = []; years.push({value: 'empty', label: ' '}) for (let i = 0; i < 50; i += 1) { years.push({ value: currentYear - i, label: currentYear - i }); } const hours = []; hours.push({value: 'empty', label: ' '}) for (let i = 0; i < 16.5; i += 0.5) { hours.push({ value: i, label: i }); } const hours_week = []; hours_week.push({value: 'empty', label: ' '}) for (let i = 0; i < 26; i += 1) { hours_week.push({ value: i, label: i }); } const years_num = []; years_num.push({value: 'empty', label: ' '}) for (let i = 0; i < 31; i += 1) { years_num.push({ value: i, label: i }); } const language_num = []; language_num.push({value: 'empty', label: ' '}) for (let i = 0; i < 11; i += 1) { language_num.push({ value: i, label: i }); } const percent_num = []; percent_num.push({value: 'empty', label: ' '}) for (let i = 0; i < 101; i += 10) { percent_num.push({ value: i, label: i }); } const likert = []; likert.push({value: 'empty', label: ' '}) likert.push({value: 'definetely_not', label: 'zdecydowanie się nie zgadzam'}) likert.push({value: 'rather_not', label: 'raczej się nie zgadzam'}) likert.push({value: 'undecided', label: 'trudno powiedzieć'}) likert.push({value: 'rather_yes', label: 'raczej się zgadzam'}) likert.push({value: 'definetely_yes', label: 'zdecydowanie się zgadzam'}) const yes_no = []; yes_no.push({value: 'empty', label: ' '}); yes_no.push({value: 'yes', label: 'tak'}); yes_no.push({value: 'no', label: 'nie'}); const musical_level = []; musical_level.push({value: 'empty', label: ' '}); musical_level.push({value: 'amateur', label: 'amatorsko'}); musical_level.push({value: 'proffesional', label: 'profesjonalnie'}); musical_level.push({value: 'none', label: 'wcale'}); const sports = []; sports.push({value: 'empty', label: ' '}); sports.push({value: 'none', label: 'nie uprawiam sportu'}); sports.push({value: 'cardio', label: 'wytrzymałościowy'}); sports.push({value: 'strength', label: 'siłowy'}); sports.push({value: 'intellectual', label: 'intelektualny'}); sports.push({value: 'combination', label: 'jakaś kombinacja powyższych'}); const styles = { header: { display: 'table', width: '100%', height: '20px' }, row: { display: 'table', width: '100%', tableLayout: 'fixed' }, desc: { display: 'table-cell', textAlign: 'right', fontFamily: "'Fira Mono', Monaco, 'Andale Mono', 'Lucida Console', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace", webkitUserSelect : 'none', mozUserSelect: 'none', msUserSelect: 'none', userSelect: 'none' }, ind: { display: 'table-cell', width: '20px', webkitUserSelect : 'none', mozUserSelect: 'none', msUserSelect: 'none', userSelect: 'none' }, select: { fontFamily: "'Fira Mono', Monaco, 'Andale Mono', 'Lucida Console', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace" } } /** * Component for adding user parameters */ class ParmViewer extends React.Component { /** * Basic constructor. * @param {any} props properties of Component */ constructor(props) { super(props); this.props = props; this.state = {}; } render() { return (