diff --git a/react-web/src/components/JiraLogin.js b/react-web/src/components/JiraLogin.js new file mode 100644 index 0000000..299c9a4 --- /dev/null +++ b/react-web/src/components/JiraLogin.js @@ -0,0 +1,23 @@ +import React from 'react'; +import { Alert } from 'patternfly-react'; +import { JiraLoginForm } from './JiraLoginForm' + +export class JiraLogin extends React.Component { + + render() { + return( +
+
+

Link to Jira

+
+
+ + Username and password are never stored. They are only used to generate a session token. + + + +
+
+ ); + } +} diff --git a/react-web/src/components/JiraLoginForm.js b/react-web/src/components/JiraLoginForm.js new file mode 100644 index 0000000..666e58e --- /dev/null +++ b/react-web/src/components/JiraLoginForm.js @@ -0,0 +1,51 @@ +import React from 'react'; +import { Form, FormGroup, ControlLabel, FormControl, Button } from 'patternfly-react'; + +export class JiraLoginForm extends React.Component { + + constructor(props) { + super(props); + + this.state = { + 'jira-host': '', + 'jira-username': '', + 'jira-password': '' + }; + + this.handleControlChange = this.handleControlChange.bind(this); + } + + handleControlChange(evt) { + this.setState({[evt.target.id]: evt.target.value.trim()}); + } + + render() { + return ( +
+
+ + + Jira Host: + + + + + + Jira Username: + + + + + + Jira Password: + + + + +
+
+ ); + } +} diff --git a/react-web/src/components/Session.js b/react-web/src/components/Session.js index c8c6537..31f646d 100644 --- a/react-web/src/components/Session.js +++ b/react-web/src/components/Session.js @@ -2,6 +2,7 @@ import React from 'react'; import { Nav, NavItem, TabContent, TabPane, Tabs } from 'patternfly-react'; import { StoryPointer } from './StoryPointer'; +import { JiraLogin } from './JiraLogin'; export class Session extends React.Component { render() { @@ -24,7 +25,7 @@ export class Session extends React.Component { - {/* JIRA Content */} + {/* Issues Content */} diff --git a/react-web/src/components/_createSession.scss b/react-web/src/components/_createSession.scss deleted file mode 100644 index 6c4149c..0000000 --- a/react-web/src/components/_createSession.scss +++ /dev/null @@ -1,5 +0,0 @@ -Form { - padding-top: 20px; - padding-left: 10%; - padding-right:10%; -} \ No newline at end of file