- {siteSetup && (
- <div className="form-group row">
- <h5 className="col-12">{i18n.t("taglines")}</h5>
- <div className="table-responsive col-12">
- <table
- id="taglines_table"
- className="table table-sm table-hover"
- >
- <thead className="pointer"></thead>
- <tbody>
- {this.state.siteForm.taglines
- .unwrapOr([])
- .map((cv, index) => (
- <tr key={index}>
- <td>
- <MarkdownTextArea
- initialContent={Some(cv)}
- initialLanguageId={None}
- placeholder={None}
- buttonTitle={None}
- maxLength={None}
- onContentChange={s =>
- this.handleTaglineChange(this, index, s)
- }
- hideNavigationWarnings
- allLanguages={this.props.siteRes.all_languages}
+ <div className="form-group row">
+ <h5 className="col-12">{i18n.t("taglines")}</h5>
+ <div className="table-responsive col-12">
+ <table id="taglines_table" className="table table-sm table-hover">
+ <thead className="pointer"></thead>
+ <tbody>
+ {this.state.siteForm.taglines
+ .unwrapOr([])
+ .map((cv, index) => (
+ <tr key={index}>
+ <td>
+ <MarkdownTextArea
+ initialContent={Some(cv)}
+ initialLanguageId={None}
+ placeholder={None}
+ buttonTitle={None}
+ maxLength={None}
+ onContentChange={s =>
+ this.handleTaglineChange(this, index, s)
+ }
+ hideNavigationWarnings
+ allLanguages={this.props.siteRes.all_languages}
+ siteLanguages={
+ this.props.siteRes.discussion_languages
+ }
+ />
+ </td>
+ <td className="text-right">
+ <button
+ className="btn btn-link btn-animate text-muted"
+ onClick={e =>
+ this.handleDeleteTaglineClick(this, index, e)
+ }
+ data-tippy-content={i18n.t("delete")}
+ aria-label={i18n.t("delete")}
+ >
+ <Icon
+ icon="trash"
+ classes={`icon-inline text-danger`}