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:
parent
706d829613
commit
d48231e725
8 changed files with 20 additions and 14 deletions
|
@ -1,4 +1,4 @@
|
|||
.row.align-items-center.justify-content-center.full-height
|
||||
.col-md-6.align-self-center
|
||||
.alert{role: 'alert', class: "alert-success"}
|
||||
= render 'bootstrap/alert' do
|
||||
= t('.confirmation_sent')
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
- flash.each do |type, message|
|
||||
- unless type == 'js'
|
||||
.alert{ role: 'alert', class: "alert-#{type}" }= message
|
||||
= render 'bootstrap/alert' do
|
||||
= message
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
-# DEPRECADO
|
||||
.alert.alert-info.alert-dismissible.fade.show{role: 'alert'}
|
||||
- if help.respond_to? :each
|
||||
%ul
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
- unless post.errors.empty?
|
||||
.alert.alert-danger
|
||||
%h4= t('.errors.title')
|
||||
%p= t('.errors.help')
|
||||
- title = t('.errors.title')
|
||||
- help = t('.errors.help')
|
||||
= render 'boostrap/alert' do
|
||||
%h4= title
|
||||
%p= help
|
||||
|
||||
%ul
|
||||
- post.errors.each do |attribute, errors|
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
.form-group
|
||||
= 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'))
|
||||
.sending-help.alert.alert-success.d-none
|
||||
= render 'boostrap/alert', class: 'sending-help d-none' do
|
||||
= site.config.fetch('sending_help', t('.sending_help'))
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
.editor{ id: attribute, data: { editor: '' } }
|
||||
-# 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' }
|
||||
.alert.alert-info
|
||||
= render 'bootstrap/alert' do
|
||||
:markdown
|
||||
#{t('editor.alert')}
|
||||
= text_area_tag "#{base}[#{attribute}]", '',
|
||||
|
@ -123,7 +123,7 @@
|
|||
%label{ for: 'link-url' }= t('editor.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')
|
||||
|
||||
.editor-content.form-control.h-auto.mt-1{ contenteditable: 'true' }
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
= render 'sites/build', site: @site
|
||||
|
||||
- if @site.design.credits
|
||||
.alert.alert-primary{ role: 'alert' }
|
||||
= render 'bootstrap/alert' do
|
||||
= sanitize_markdown @site.design.credits
|
||||
= link_to t('sites.donations.text'), t('sites.donations.url'), class: 'btn'
|
||||
- if @site.design.designer_url
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
- unless site.errors.empty?
|
||||
.alert.alert-info
|
||||
%h4= t('.errors.title')
|
||||
%p.lead= t('.errors.help')
|
||||
- title = t('.errors.title')
|
||||
- help = t('.errors.help')
|
||||
= render 'bootstrap/alert' do
|
||||
%h4= title
|
||||
%p.lead= help
|
||||
%ul
|
||||
- site.errors.messages.each_pair do |attr, error|
|
||||
- attr = attr.to_s
|
||||
|
@ -48,7 +50,7 @@
|
|||
%h2= t('.design.title')
|
||||
%p.lead= t('.help.design')
|
||||
- if invalid? site, :design_id
|
||||
.alert.alert-info
|
||||
= render 'bootstrap/alert' do
|
||||
= t('activerecord.errors.models.site.attributes.design_id.layout_incompatible.help',
|
||||
layouts: site.incompatible_layouts.to_sentence)
|
||||
.row.designs
|
||||
|
|
Loading…
Reference in a new issue