5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 16:01:41 +00:00

fix: usar siempre el componente

This commit is contained in:
f 2023-03-28 18:52:42 -03:00
parent 706d829613
commit d48231e725
8 changed files with 20 additions and 14 deletions

View file

@ -1,4 +1,4 @@
.row.align-items-center.justify-content-center.full-height .row.align-items-center.justify-content-center.full-height
.col-md-6.align-self-center .col-md-6.align-self-center
.alert{role: 'alert', class: "alert-success"} = render 'bootstrap/alert' do
= t('.confirmation_sent') = t('.confirmation_sent')

View file

@ -1,3 +1,4 @@
- flash.each do |type, message| - flash.each do |type, message|
- unless type == 'js' - unless type == 'js'
.alert{ role: 'alert', class: "alert-#{type}" }= message = render 'bootstrap/alert' do
= message

View file

@ -1,3 +1,4 @@
-# DEPRECADO
.alert.alert-info.alert-dismissible.fade.show{role: 'alert'} .alert.alert-info.alert-dismissible.fade.show{role: 'alert'}
- if help.respond_to? :each - if help.respond_to? :each
%ul %ul

View file

@ -1,7 +1,9 @@
- unless post.errors.empty? - unless post.errors.empty?
.alert.alert-danger - title = t('.errors.title')
%h4= t('.errors.title') - help = t('.errors.help')
%p= t('.errors.help') = render 'boostrap/alert' do
%h4= title
%p= help
%ul %ul
- post.errors.each do |attribute, errors| - post.errors.each do |attribute, errors|

View file

@ -1,6 +1,6 @@
.form-group .form-group
= submit_tag t('.save'), class: 'btn submit-post' = submit_tag t('.save'), class: 'btn submit-post'
.invalid-help.alert.alert-danger.d-none = render 'boostrap/alert', class: 'invalid-help d-none' do
= site.config.fetch('invalid_help', t('.invalid_help')) = site.config.fetch('invalid_help', t('.invalid_help'))
.sending-help.alert.alert-success.d-none = render 'boostrap/alert', class: 'sending-help d-none' do
= site.config.fetch('sending_help', t('.sending_help')) = site.config.fetch('sending_help', t('.sending_help'))

View file

@ -6,7 +6,7 @@
.editor{ id: attribute, data: { editor: '' } } .editor{ id: attribute, data: { editor: '' } }
-# Esto es para luego decirle al navegador que se olvide estas cosas. -# Esto es para luego decirle al navegador que se olvide estas cosas.
= hidden_field_tag 'storage_keys[]', "#{request.original_url}##{attribute}", data: { target: 'storage-key' } = hidden_field_tag 'storage_keys[]', "#{request.original_url}##{attribute}", data: { target: 'storage-key' }
.alert.alert-info = render 'bootstrap/alert' do
:markdown :markdown
#{t('editor.alert')} #{t('editor.alert')}
= text_area_tag "#{base}[#{attribute}]", '', = text_area_tag "#{base}[#{attribute}]", '',
@ -123,7 +123,7 @@
%label{ for: 'link-url' }= t('editor.url') %label{ for: 'link-url' }= t('editor.url')
%input.form-control{ type: 'url', id: 'link-url', name: 'link-url' }/ %input.form-control{ type: 'url', id: 'link-url', name: 'link-url' }/
.editor-aviso-word.alert.alert-info = render 'bootstrap/alert', class: 'editor-aviso-word' do
%p= t('editor.word') %p= t('editor.word')
.editor-content.form-control.h-auto.mt-1{ contenteditable: 'true' } .editor-content.form-control.h-auto.mt-1{ contenteditable: 'true' }

View file

@ -34,7 +34,7 @@
= render 'sites/build', site: @site = render 'sites/build', site: @site
- if @site.design.credits - if @site.design.credits
.alert.alert-primary{ role: 'alert' } = render 'bootstrap/alert' do
= sanitize_markdown @site.design.credits = sanitize_markdown @site.design.credits
= link_to t('sites.donations.text'), t('sites.donations.url'), class: 'btn' = link_to t('sites.donations.text'), t('sites.donations.url'), class: 'btn'
- if @site.design.designer_url - if @site.design.designer_url

View file

@ -1,7 +1,9 @@
- unless site.errors.empty? - unless site.errors.empty?
.alert.alert-info - title = t('.errors.title')
%h4= t('.errors.title') - help = t('.errors.help')
%p.lead= t('.errors.help') = render 'bootstrap/alert' do
%h4= title
%p.lead= help
%ul %ul
- site.errors.messages.each_pair do |attr, error| - site.errors.messages.each_pair do |attr, error|
- attr = attr.to_s - attr = attr.to_s
@ -48,7 +50,7 @@
%h2= t('.design.title') %h2= t('.design.title')
%p.lead= t('.help.design') %p.lead= t('.help.design')
- if invalid? site, :design_id - if invalid? site, :design_id
.alert.alert-info = render 'bootstrap/alert' do
= t('activerecord.errors.models.site.attributes.design_id.layout_incompatible.help', = t('activerecord.errors.models.site.attributes.design_id.layout_incompatible.help',
layouts: site.incompatible_layouts.to_sentence) layouts: site.incompatible_layouts.to_sentence)
.row.designs .row.designs