Explorar o código

add template modal

itizawa %!s(int64=5) %!d(string=hai) anos
pai
achega
8981d04ae2

+ 28 - 0
src/client/js/components/CreateTemplateModal.jsx

@@ -0,0 +1,28 @@
+import React from 'react';
+import PropTypes from 'prop-types';
+
+import { Modal, ModalHeader, ModalBody } from 'reactstrap';
+
+import { withTranslation } from 'react-i18next';
+
+const CreateTemplateModal = (props) => {
+  const { t } = props;
+
+  return (
+    <Modal size="lg" isOpen className="grw-create-page">
+      <ModalHeader tag="h4" className="bg-primary text-light">
+        {t('template.modal_label.Create/Edit Template Page')}
+      </ModalHeader>
+      <ModalBody>
+      </ModalBody>
+    </Modal>
+
+  );
+};
+
+
+CreateTemplateModal.propTypes = {
+  t: PropTypes.func.isRequired, //  i18next
+};
+
+export default withTranslation()(CreateTemplateModal);

+ 2 - 0
src/server/views/modal/create_template.html

@@ -1,3 +1,5 @@
+<div id ="create-template-modal"></div>
+
 {% set templateParentPath = parentPath(page.path | preventXss | escape) %}
 {% set templateParentPath = parentPath(page.path | preventXss | escape) %}
 
 
 <div class="modal create-template" id="create-template">
 <div class="modal create-template" id="create-template">