|
|
@@ -37,37 +37,43 @@ class CustomizeHeaderSetting extends React.Component {
|
|
|
|
|
|
return (
|
|
|
<React.Fragment>
|
|
|
- <h2 className="admin-setting-header">{t('admin:customize_setting.custom_header')}</h2>
|
|
|
-
|
|
|
- <Card className="card well my-3">
|
|
|
- <CardBody className="px-0 py-2">
|
|
|
- <span
|
|
|
- // eslint-disable-next-line react/no-danger
|
|
|
- dangerouslySetInnerHTML={{ __html: t('admin:customize_setting.custom_header_detail') }}
|
|
|
+ <div className="row">
|
|
|
+ <div className="col-12">
|
|
|
+ <h2 className="admin-setting-header">{t('admin:customize_setting.custom_header')}</h2>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div className="col-12">
|
|
|
+ <Card className="card well my-3">
|
|
|
+ <CardBody className="px-0 py-2">
|
|
|
+ <span
|
|
|
+ // eslint-disable-next-line react/no-danger
|
|
|
+ dangerouslySetInnerHTML={{ __html: t('admin:customize_setting.custom_header_detail') }}
|
|
|
+ />
|
|
|
+ </CardBody>
|
|
|
+ </Card>
|
|
|
+ </div>
|
|
|
+ <div className="form-text text-muted col-12">
|
|
|
+ { t('Example') }:
|
|
|
+ <pre className="hljs">
|
|
|
+ {/* eslint-disable-next-line react/no-unescaped-entities */}
|
|
|
+ <code><script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@9.13.0/build/languages/yaml.min.js" defer></script></code>
|
|
|
+ </pre>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div className="form-group col-12">
|
|
|
+ <CustomHeaderEditor
|
|
|
+ value={adminCustomizeContainer.state.currentCustomizeHeader || ''}
|
|
|
+ onChange={(inputValue) => { adminCustomizeContainer.changeCustomizeHeader(inputValue) }}
|
|
|
/>
|
|
|
- </CardBody>
|
|
|
- </Card>
|
|
|
-
|
|
|
- <div className="form-text text-muted">
|
|
|
- { t('Example') }:
|
|
|
- <pre className="hljs">
|
|
|
- {/* eslint-disable-next-line react/no-unescaped-entities */}
|
|
|
- <code><script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@9.13.0/build/languages/yaml.min.js" defer></script></code>
|
|
|
- </pre>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div className="form-group">
|
|
|
- <CustomHeaderEditor
|
|
|
- value={adminCustomizeContainer.state.currentCustomizeHeader || ''}
|
|
|
- onChange={(inputValue) => { adminCustomizeContainer.changeCustomizeHeader(inputValue) }}
|
|
|
- />
|
|
|
- <p className="form-text text-muted text-right">
|
|
|
- <i className="fa fa-fw fa-keyboard-o" aria-hidden="true"></i>
|
|
|
- {t('admin:customize_setting.ctrl_space')}
|
|
|
- </p>
|
|
|
+ <p className="form-text text-muted text-right">
|
|
|
+ <i className="fa fa-fw fa-keyboard-o" aria-hidden="true"></i>
|
|
|
+ {t('admin:customize_setting.ctrl_space')}
|
|
|
+ </p>
|
|
|
+ </div>
|
|
|
+ <div className="col-12">
|
|
|
+ <AdminUpdateButtonRow onClick={this.onClickSubmit} disabled={adminCustomizeContainer.state.retrieveError != null} />
|
|
|
+ </div>
|
|
|
</div>
|
|
|
-
|
|
|
- <AdminUpdateButtonRow onClick={this.onClickSubmit} disabled={adminCustomizeContainer.state.retrieveError != null} />
|
|
|
</React.Fragment>
|
|
|
);
|
|
|
}
|