Kaynağa Gözat

add buttons

utsushiiro 7 yıl önce
ebeveyn
işleme
6343738080

+ 4 - 0
src/client/js/components/PageEditor/HandsontableModal.jsx

@@ -130,6 +130,10 @@ export default class HandsontableModal extends React.Component {
                   <ControlLabel>Import Data</ControlLabel>
                   <FormControl componentClass="textarea" placeholder="Paste table data" style={{ height: 200 }}  />
                 </FormGroup>
+                <div className="d-flex justify-content-end">
+                  <Button bsStyle="default" onClick={() => this.setState({ open: !this.state.open })}>Cancel</Button>
+                  <Button bsStyle="primary">Import</Button>
+                </div>
               </form>
             </div>
           </Collapse>

+ 4 - 0
src/client/styles/scss/_handsontable.scss

@@ -19,6 +19,10 @@
 
   .data-import-form {
     background-color: #f8f8f8;
+
+    .btn + .btn {
+      margin-left: 5px;
+    }
   }
 
   .data-import-button {