5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-23 01:56:21 +00:00
panel/app/views/posts/_submit.haml

12 lines
611 B
Text
Raw Normal View History

- invalid_help = site.config.fetch('invalid_help', t('.invalid_help'))
- submitting_help = site.config.fetch('submitting_help', t('.submitting_help'))
.d-flex.flex-column.flex-md-row.align-items-start.mb-3
%div
= submit_tag t('.save'), class: 'btn btn-secondary submit-post'
.d-flex.flex-column.position-relative
= render 'bootstrap/alert', class: 'm-0 d-none fade', data: { target: 'form-validation.invalid' } do
= invalid_help
= render 'bootstrap/alert', class: 'm-0 d-none fade position-absolute top-0 left-0', data: { target: 'form-validation.submitting' } do
= submitting_help