2022-07-26 17:05:29 -07:00
|
|
|
.modal.fade#modal-ask-followers{ aria: { hidden: true, labelledby: "modal-ask-followers-label" }, role: :dialog, tabindex: -1 }
|
2014-12-07 11:18:53 -08:00
|
|
|
.modal-dialog
|
2023-01-08 08:12:46 -08:00
|
|
|
.modal-content{ data: { controller: "character-count-warning", "character-count-warning-warn-value": Question::SHORT_QUESTION_MAX_LENGTH }}
|
2014-12-07 11:18:53 -08:00
|
|
|
.modal-header
|
2022-07-26 17:05:29 -07:00
|
|
|
%h5.modal-title#modal-ask-followers-label= t(".title")
|
2023-01-04 04:26:27 -08:00
|
|
|
%button.btn-close{ data: { bs_dismiss: :modal }, type: :button }
|
2023-01-04 02:12:40 -08:00
|
|
|
%span.visually-hidden= t("voc.close")
|
2014-12-07 11:18:53 -08:00
|
|
|
.modal-body
|
2023-12-10 15:02:04 -08:00
|
|
|
- if @user
|
|
|
|
.alert.alert-info.d-sm-none= t(".user_note_html", user: @user.profile.safe_name)
|
2023-12-10 15:42:26 -08:00
|
|
|
- if current_user.followers.count.zero?
|
|
|
|
.alert.alert-warning= t(".follower_note_html")
|
2022-10-02 13:10:04 -07:00
|
|
|
.form-group.has-feedback
|
2023-01-08 08:12:46 -08:00
|
|
|
%textarea.form-control{ name: "qb-all-question", placeholder: t(".placeholder"), data: { "character-count-warning-target": "input" } }
|
|
|
|
.alert.alert-warning.mt-3.d-none{ data: { "character-count-warning-target": "warning" } }= t('.long_question_warning')
|
2014-12-07 11:18:53 -08:00
|
|
|
.modal-footer
|
2023-12-17 13:33:54 -08:00
|
|
|
.flex-grow-1
|
2023-12-11 14:14:58 -08:00
|
|
|
%input.form-check-input#qb-send-to-own-inbox{ type: :checkbox }
|
|
|
|
%label.form-check-label{ for: 'qb-send-to-own-inbox' }= t('.send_to_own_inbox')
|
2023-12-17 13:33:54 -08:00
|
|
|
.flex-grow-1.d-flex
|
|
|
|
%button.btn.btn-default.ms-auto{ type: :button, data: { bs_dismiss: :modal } }= t("voc.cancel")
|
|
|
|
%button.btn.btn-primary{ name: "qb-all-ask", type: :button, data: { loading_text: t(".loading") } }= t(".action")
|