1
0
Fork 0

shop: configurations -> JSON

This commit is contained in:
Sebastien Bourdeauducq 2020-04-16 10:33:28 +08:00
parent 107bae7da0
commit c98354db63
1 changed files with 4 additions and 4 deletions

View File

@ -330,7 +330,7 @@ class Layout extends React.PureComponent {
<form className="form w-100"> <form className="form w-100">
<div className="form-group"> <div className="form-group">
<p className="small"> <p className="small">
Add your own configuration below. Should be something like: Input the JSON description below. Should be something like:
<br /> <br />
{JSON.stringify({"items":[{"pn":"1123"},{"pn":"2118"},{"pn":"2118"},{"pn":"2128"}],"type":"desktop"})} {JSON.stringify({"items":[{"pn":"1123"},{"pn":"2118"},{"pn":"2118"},{"pn":"2128"}],"type":"desktop"})}
</p> </p>
@ -342,7 +342,7 @@ class Layout extends React.PureComponent {
value={this.state.customconf} value={this.state.customconf}
className="form-control w-100" className="form-control w-100"
rows="5" rows="5"
placeholder="Add your custom configuration here. e.g " /> placeholder="Input JSON description here." />
</div> </div>
{this.state.error ? ( {this.state.error ? (
<div className="form-group"> <div className="form-group">
@ -987,7 +987,7 @@ class OrderPanel extends React.PureComponent {
<input <input
className="btn btn-sm btn-outline-primary m-0 mb-2" className="btn btn-sm btn-outline-primary m-0 mb-2"
style={{'cursor': 'pointer'}} style={{'cursor': 'pointer'}}
value="Import configurations" value="Import JSON"
onClick={onClickOpenImport} /> onClick={onClickOpenImport} />
</div> </div>
@ -1217,7 +1217,7 @@ class OrderForm extends React.PureComponent {
<input <input
className="btn btn-outline-primary w-100 m-0 mb-2 mb-sm-0 mr-sm-2" className="btn btn-outline-primary w-100 m-0 mb-2 mb-sm-0 mr-sm-2"
style={{'cursor': 'pointer', 'fontWeight': '700'}} style={{'cursor': 'pointer', 'fontWeight': '700'}}
value="Show configurations" value="Show JSON"
onClick={onClickShow} /> onClick={onClickShow} />
<input className="btn btn-primary w-100 m-0 ml-sm-2" type="submit" value={`${isProcessing ? 'Processing ...' : 'Request quote'}`} /> <input className="btn btn-primary w-100 m-0 ml-sm-2" type="submit" value={`${isProcessing ? 'Processing ...' : 'Request quote'}`} />