Retrospring/app/views/modal/_ask.html.haml

23 lines
1.5 KiB
Plaintext

.modal.fade#modal-ask-followers{ aria: { hidden: true, labelledby: "modal-ask-followers-label" }, role: :dialog, tabindex: -1 }
.modal-dialog
.modal-content{ data: { controller: "character-count-warning", "character-count-warning-warn-value": Question::SHORT_QUESTION_MAX_LENGTH }}
.modal-header
%h5.modal-title#modal-ask-followers-label= t(".title")
%button.btn-close{ data: { bs_dismiss: :modal }, type: :button }
%span.visually-hidden= t("voc.close")
.modal-body
- if @user
.alert.alert-info.d-sm-none= t(".user_note_html", user: @user.profile.safe_name)
- if current_user.followers.count.zero?
.alert.alert-warning= t(".follower_note_html")
.form-group.has-feedback
%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')
.modal-footer
.flex-grow-1
%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')
.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")