|
|
@ -19,6 +19,7 @@
|
|
|
|
import React, {Component} from 'react';
|
|
|
|
import React, {Component} from 'react';
|
|
|
|
import {Badge, Button, FormGroup, Input, Label, Row} from 'reactstrap';
|
|
|
|
import {Badge, Button, FormGroup, Input, Label, Row} from 'reactstrap';
|
|
|
|
import Dropzone from 'react-dropzone';
|
|
|
|
import Dropzone from 'react-dropzone';
|
|
|
|
|
|
|
|
import {FormattedMessage} from 'react-intl';
|
|
|
|
|
|
|
|
|
|
|
|
class GeneralInfo extends Component {
|
|
|
|
class GeneralInfo extends Component {
|
|
|
|
|
|
|
|
|
|
|
@ -40,7 +41,9 @@ class GeneralInfo extends Component {
|
|
|
|
<Row>
|
|
|
|
<Row>
|
|
|
|
<form>
|
|
|
|
<form>
|
|
|
|
<FormGroup>
|
|
|
|
<FormGroup>
|
|
|
|
<Label for="app-title">Title*</Label>
|
|
|
|
<Label for="app-title">
|
|
|
|
|
|
|
|
<FormattedMessage id="Title" defaultMessage="Title"/>*
|
|
|
|
|
|
|
|
</Label>
|
|
|
|
<Input
|
|
|
|
<Input
|
|
|
|
required
|
|
|
|
required
|
|
|
|
type="text"
|
|
|
|
type="text"
|
|
|
@ -49,46 +52,34 @@ class GeneralInfo extends Component {
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</FormGroup>
|
|
|
|
</FormGroup>
|
|
|
|
<FormGroup>
|
|
|
|
<FormGroup>
|
|
|
|
<Label for="app-title">Description*</Label>
|
|
|
|
<Label for="app-title">
|
|
|
|
<Input
|
|
|
|
<FormattedMessage id="Description" defaultMessage="Description"/>*
|
|
|
|
required
|
|
|
|
</Label>
|
|
|
|
type="textarea"
|
|
|
|
<Input required type="textarea" multiline name="appName" id="app-title"/>
|
|
|
|
multiline
|
|
|
|
|
|
|
|
name="appName"
|
|
|
|
|
|
|
|
id="app-title"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</FormGroup>
|
|
|
|
</FormGroup>
|
|
|
|
<FormGroup>
|
|
|
|
<FormGroup>
|
|
|
|
<Label for="app-category">Category</Label>
|
|
|
|
<Label for="app-category">
|
|
|
|
<Input
|
|
|
|
<FormattedMessage id="Category" defaultMessage="Category"/>
|
|
|
|
type="select"
|
|
|
|
</Label>
|
|
|
|
name="category"
|
|
|
|
<Input type="select" name="category" id="app-category">
|
|
|
|
id="app-category"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<option>Business</option>
|
|
|
|
<option>Business</option>
|
|
|
|
</Input>
|
|
|
|
</Input>
|
|
|
|
</FormGroup>
|
|
|
|
</FormGroup>
|
|
|
|
<FormGroup>
|
|
|
|
<FormGroup>
|
|
|
|
<Label for="app-visibility">Visibility</Label>
|
|
|
|
<Label for="app-visibility">
|
|
|
|
<Input
|
|
|
|
<FormattedMessage id="Visibility" defaultMessage="Visibility"/>
|
|
|
|
type="select"
|
|
|
|
</Label>
|
|
|
|
name="visibility"
|
|
|
|
<Input type="select" name="visibility" id="app-visibility">
|
|
|
|
id="app-visibility"
|
|
|
|
<option><FormattedMessage id="Devices" defaultMessage="Devices"/></option>
|
|
|
|
>
|
|
|
|
<option><FormattedMessage id="Roles" defaultMessage="Roles"/></option>
|
|
|
|
<option>Devices</option>
|
|
|
|
<option><FormattedMessage id="Groups" defaultMessage="Groups"/></option>
|
|
|
|
<option>Roles</option>
|
|
|
|
|
|
|
|
<option>Groups</option>
|
|
|
|
|
|
|
|
</Input>
|
|
|
|
</Input>
|
|
|
|
</FormGroup>
|
|
|
|
</FormGroup>
|
|
|
|
<FormGroup>
|
|
|
|
<FormGroup>
|
|
|
|
<Label for="app-tags">Tags*</Label>
|
|
|
|
<Label for="app-tags">
|
|
|
|
<Input
|
|
|
|
<FormattedMessage id="Tags" defaultMessage="Tags"/>*
|
|
|
|
required
|
|
|
|
</Label>
|
|
|
|
type="text"
|
|
|
|
<Input required type="text" value={this.state.defValue} name="app-tags" id="app-tags"/>
|
|
|
|
value={this.state.defValue}
|
|
|
|
|
|
|
|
name="app-tags"
|
|
|
|
|
|
|
|
id="app-tags"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
<div id="batch-content">
|
|
|
|
<div id="batch-content">
|
|
|
|
{this.state.tags.map(tag => {
|
|
|
|
{this.state.tags.map(tag => {
|
|
|
|
return (
|
|
|
|
return (
|
|
|
@ -105,7 +96,9 @@ class GeneralInfo extends Component {
|
|
|
|
</FormGroup>
|
|
|
|
</FormGroup>
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<FormGroup>
|
|
|
|
<FormGroup>
|
|
|
|
<Label for="app-screenshots">Screenshots*</Label>
|
|
|
|
<Label for="app-screenshots">
|
|
|
|
|
|
|
|
<FormattedMessage id="Screenshots" defaultMessage="Screenshots"/>*
|
|
|
|
|
|
|
|
</Label>
|
|
|
|
<span className="image-sub-title"> (600 X 800 32 bit PNG)</span>
|
|
|
|
<span className="image-sub-title"> (600 X 800 32 bit PNG)</span>
|
|
|
|
<div id="screenshot-container">
|
|
|
|
<div id="screenshot-container">
|
|
|
|
{this.state.screenshots.map((tile) => (
|
|
|
|
{this.state.screenshots.map((tile) => (
|
|
|
@ -138,7 +131,9 @@ class GeneralInfo extends Component {
|
|
|
|
<div style={{display: 'flex'}}>
|
|
|
|
<div style={{display: 'flex'}}>
|
|
|
|
<div style={{float: 'left', marginRight: '15px'}}>
|
|
|
|
<div style={{float: 'left', marginRight: '15px'}}>
|
|
|
|
<FormGroup>
|
|
|
|
<FormGroup>
|
|
|
|
<Label for="app-icon">Icon*</Label>
|
|
|
|
<Label for="app-icon">
|
|
|
|
|
|
|
|
<FormattedMessage id="Icon" defaultMessage="Icon"/>*
|
|
|
|
|
|
|
|
</Label>
|
|
|
|
<span className="image-sub-title"> (512 X 512 32 bit PNG)</span>
|
|
|
|
<span className="image-sub-title"> (512 X 512 32 bit PNG)</span>
|
|
|
|
<div id="app-icon-container">
|
|
|
|
<div id="app-icon-container">
|
|
|
|
{this.state.icon.map((tile) => (
|
|
|
|
{this.state.icon.map((tile) => (
|
|
|
@ -163,7 +158,9 @@ class GeneralInfo extends Component {
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div style={{marginLeft: '15px'}}>
|
|
|
|
<div style={{marginLeft: '15px'}}>
|
|
|
|
<FormGroup>
|
|
|
|
<FormGroup>
|
|
|
|
<Label for="app-banner">Banner*</Label>
|
|
|
|
<Label for="app-banner">
|
|
|
|
|
|
|
|
<FormattedMessage id="Banner" defaultMessage="Banner"/>*
|
|
|
|
|
|
|
|
</Label>
|
|
|
|
<span className="image-sub-title"> (1000 X 400 32 bit PNG)</span>
|
|
|
|
<span className="image-sub-title"> (1000 X 400 32 bit PNG)</span>
|
|
|
|
<div id="app-banner-container">
|
|
|
|
<div id="app-banner-container">
|
|
|
|
{this.state.banner.map((tile) => (
|
|
|
|
{this.state.banner.map((tile) => (
|
|
|
@ -189,7 +186,9 @@ class GeneralInfo extends Component {
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div className="save-info">
|
|
|
|
<div className="save-info">
|
|
|
|
<Button>Save</Button>
|
|
|
|
<Button>
|
|
|
|
|
|
|
|
<FormattedMessage id="Save" defaultMessage="Save"/>
|
|
|
|
|
|
|
|
</Button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</form>
|
|
|
|
</Row>
|
|
|
|
</Row>
|
|
|
|