|
|
@@ -10,8 +10,22 @@ const OfficialBotSettingsAccordion = () => {
|
|
|
<Accordion
|
|
|
title={<><span className="mr-2">①</span>{t('admin:slack_integration.accordion.install_bot_to_slack')}</>}
|
|
|
>
|
|
|
- {/* TODO: GW-5824 add accordion contents */}
|
|
|
- hoge
|
|
|
+ <div className="my-5 d-flex flex-column align-items-center">
|
|
|
+ {/* TODO: Insert install link */}
|
|
|
+ <button type="button" className="btn btn-primary text-nowrap" onClick={() => window.open('https://api.slack.com/apps', '_blank', 'noreferrer')}>
|
|
|
+ {t('admin:slack_integration.accordion.install_now')}
|
|
|
+ <i className="fa fa-external-link ml-2" aria-hidden="true" />
|
|
|
+ </button>
|
|
|
+ {/* TODO: Insert DOCS link */}
|
|
|
+ <a href="#">
|
|
|
+ <p className="text-center mt-1">
|
|
|
+ <small>
|
|
|
+ {t('admin:slack_integration.accordion.how_to_install')}
|
|
|
+ <i className="fa fa-external-link ml-2" aria-hidden="true" />
|
|
|
+ </small>
|
|
|
+ </p>
|
|
|
+ </a>
|
|
|
+ </div>
|
|
|
</Accordion>
|
|
|
<Accordion
|
|
|
title={<><span className="mr-2">②</span>{t('admin:slack_integration.accordion.register_official_bot_proxy_service')}</>}
|
|
|
@@ -28,8 +42,37 @@ const OfficialBotSettingsAccordion = () => {
|
|
|
<Accordion
|
|
|
title={<><span className="mr-2">④</span>{t('admin:slack_integration.accordion.test_connection')}</>}
|
|
|
>
|
|
|
- {/* TODO: GW-5824 add accordion contents */}
|
|
|
- hoge
|
|
|
+ <p className="text-center m-4">{t('admin:slack_integration.accordion.test_connection_by_pressing_button')}</p>
|
|
|
+ <div className="d-flex justify-content-center">
|
|
|
+ <form className="form-row align-items-center w-25">
|
|
|
+ <div className="col-8 input-group-prepend">
|
|
|
+ <span className="input-group-text" id="slack-channel-addon"><i className="fa fa-hashtag" /></span>
|
|
|
+ <input
|
|
|
+ className="form-control w-100"
|
|
|
+ type="text"
|
|
|
+ placeholder="Slack Channel"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ <div className="col-4">
|
|
|
+ <button
|
|
|
+ type="submit"
|
|
|
+ className="btn btn-info mx-3 font-weight-bold"
|
|
|
+ >Test
|
|
|
+ </button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ <form>
|
|
|
+ <div className="row my-3 justify-content-center">
|
|
|
+ <div className="form-group slack-connection-log w-25">
|
|
|
+ <label className="mb-1"><p className="border-info slack-connection-log-title pl-2">Logs</p></label>
|
|
|
+ <textarea
|
|
|
+ className="form-control card border-info slack-connection-log-body rounded-lg"
|
|
|
+ readOnly
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
</Accordion>
|
|
|
</div>
|
|
|
);
|