educoreapp2 1.0.47 → 1.0.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -22,6 +22,7 @@ class BaseForm extends _react.Component {
|
|
22
22
|
this.props = props;
|
23
23
|
this.extraButt = props.extraButt;
|
24
24
|
this.className = !_educoreapp.Tools.empty(props.className) ? props.className : "row";
|
25
|
+
this.label = !_educoreapp.Tools.empty(props.label) ? props.label : "";
|
25
26
|
this.module = props.module;
|
26
27
|
this.act = props.act;
|
27
28
|
this.objs = {};
|
@@ -101,6 +102,7 @@ class BaseForm extends _react.Component {
|
|
101
102
|
render() {
|
102
103
|
let error = null;
|
103
104
|
let lab1 = this.props.lab1;
|
105
|
+
let label = this.label;
|
104
106
|
let extraButt = !_educoreapp.Tools.empty(this.extraButt) ? this.extraButt : /*#__PURE__*/_react.default.createElement(_reactstrap.Button, {
|
105
107
|
color: "primary",
|
106
108
|
type: "submit"
|
@@ -111,7 +113,26 @@ class BaseForm extends _react.Component {
|
|
111
113
|
return /*#__PURE__*/_react.default.createElement(_reactstrap.Form, {
|
112
114
|
className: this.className,
|
113
115
|
onSubmit: this.handleSubmit
|
114
|
-
},
|
116
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
117
|
+
className: "row"
|
118
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
119
|
+
className: "col-1 col-sm-2"
|
120
|
+
}), /*#__PURE__*/_react.default.createElement("div", {
|
121
|
+
className: "col-10 col-sm-8"
|
122
|
+
}, /*#__PURE__*/_react.default.createElement(BaseImg, {
|
123
|
+
height: "80px",
|
124
|
+
width: "80px",
|
125
|
+
photo: window.App.Config.logo
|
126
|
+
}), /*#__PURE__*/_react.default.createElement("div", {
|
127
|
+
style: {
|
128
|
+
textAlign: "center",
|
129
|
+
fontSize: "2em"
|
130
|
+
}
|
131
|
+
}, label), /*#__PURE__*/_react.default.createElement(BaseImg, {
|
132
|
+
height: "80px",
|
133
|
+
width: "80px",
|
134
|
+
photo: window.App.Config.logo
|
135
|
+
}))), error && /*#__PURE__*/_react.default.createElement(_reactstrap.Alert, {
|
115
136
|
color: "danger"
|
116
137
|
}, error), this.props.children, extraButt);
|
117
138
|
}
|