diff --git a/client/src/app/main/dashboard/dashboard-create-ticket/create-ticket-form.js b/client/src/app/main/dashboard/dashboard-create-ticket/create-ticket-form.js index 27ddc0bf..c57f2bcb 100644 --- a/client/src/app/main/dashboard/dashboard-create-ticket/create-ticket-form.js +++ b/client/src/app/main/dashboard/dashboard-create-ticket/create-ticket-form.js @@ -12,6 +12,14 @@ import FormField from 'core-components/form-field'; class CreateTicketForm extends React.Component { + static propTypes = { + userLogged: React.PropTypes.boolean + }; + + static defaultProps ={ + userLogged: true + }; + constructor(props) { super(props); @@ -26,6 +34,7 @@ class CreateTicketForm extends React.Component {

Create Ticket

+ {(!this.props.userLogged) ? this.renderEmailAndName() : null}
+ {(!this.props.userLogged) ? this.renderCaptcha() : null} Create Ticket {this.renderMessage()} @@ -45,6 +55,23 @@ class CreateTicketForm extends React.Component { ); } + renderEmailAndName() { + return ( +
+ + +
+ ); + } + + renderCaptcha() { + return ( +
+ +
+ ); + } + renderMessage() { switch (this.state.message) { case 'success': diff --git a/client/src/app/main/dashboard/dashboard-create-ticket/create-ticket-form.scss b/client/src/app/main/dashboard/dashboard-create-ticket/create-ticket-form.scss index 82aebdc9..045c290c 100644 --- a/client/src/app/main/dashboard/dashboard-create-ticket/create-ticket-form.scss +++ b/client/src/app/main/dashboard/dashboard-create-ticket/create-ticket-form.scss @@ -3,4 +3,10 @@ &__message { margin-top: 20px; } + + &__captcha { + margin: 0 auto 20px; + height: 78px; + width: 304px; + } } \ No newline at end of file