use more beautiful close mark
This commit is contained in:
parent
a501fac76f
commit
6c65799025
9 changed files with 9 additions and 9 deletions
|
@ -152,7 +152,7 @@ module ApplicationHelper
|
||||||
type = :success if type == :notice
|
type = :success if type == :notice
|
||||||
type = :error if type == :alert
|
type = :error if type == :alert
|
||||||
text = content_tag(:div,
|
text = content_tag(:div,
|
||||||
content_tag(:button, I18n.t('ui.marks.close'), :class => "close", "data-dismiss" => "alert") +
|
content_tag(:button, I18n.t('ui.marks.close').html_safe, :class => "close", "data-dismiss" => "alert") +
|
||||||
message, :class => "alert fade in alert-#{type}")
|
message, :class => "alert fade in alert-#{type}")
|
||||||
flash_messages << text if message
|
flash_messages << text if message
|
||||||
end
|
end
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
= f.hidden_field :shared_updated_on
|
= f.hidden_field :shared_updated_on
|
||||||
= f.hidden_field :supplier_id
|
= f.hidden_field :supplier_id
|
||||||
.modal-header
|
.modal-header
|
||||||
= button_tag t('ui.marks.close'), class: 'close', data: {dismiss: 'modal'}
|
= button_tag t('ui.marks.close').html_safe, class: 'close', data: {dismiss: 'modal'}
|
||||||
%h3= t '.title'
|
%h3= t '.title'
|
||||||
.modal-body
|
.modal-body
|
||||||
= f.input :availability
|
= f.input :availability
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
= simple_form_for @order, url: update_note_finance_order_path(@order), remote: true, method: :put do |f|
|
= simple_form_for @order, url: update_note_finance_order_path(@order), remote: true, method: :put do |f|
|
||||||
.modal-header
|
.modal-header
|
||||||
= button_tag t('ui.marks.close'), class: 'close', data: {dismiss: 'modal'}
|
= button_tag t('ui.marks.close').html_safe, class: 'close', data: {dismiss: 'modal'}
|
||||||
%h3 Notiz bearbeiten
|
%h3 Notiz bearbeiten
|
||||||
.modal-body
|
.modal-body
|
||||||
= f.input :note, input_html: {class: 'input-xlarge'}
|
= f.input :note, input_html: {class: 'input-xlarge'}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
= simple_form_for [:finance, @order, @order_article], remote: true do |form|
|
= simple_form_for [:finance, @order, @order_article], remote: true do |form|
|
||||||
.modal-header
|
.modal-header
|
||||||
= button_tag t('ui.marks.close'), class: 'close', data: {dismiss: 'modal'}
|
= button_tag t('ui.marks.close').html_safe, class: 'close', data: {dismiss: 'modal'}
|
||||||
%h3= t '.title'
|
%h3= t '.title'
|
||||||
.modal-body
|
.modal-body
|
||||||
= form.input :units_to_order
|
= form.input :units_to_order
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
= simple_form_for [:finance, @order, @order_article], remote: true do |form|
|
= simple_form_for [:finance, @order, @order_article], remote: true do |form|
|
||||||
.modal-header
|
.modal-header
|
||||||
= button_tag t('ui.marks.close'), class: 'close', data: {dismiss: 'modal'}
|
= button_tag t('ui.marks.close').html_safe, class: 'close', data: {dismiss: 'modal'}
|
||||||
%h3= t '.title'
|
%h3= t '.title'
|
||||||
.modal-body
|
.modal-body
|
||||||
= form.input :article_id, as: :select, collection: new_order_articles_collection
|
= form.input :article_id, as: :select, collection: new_order_articles_collection
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
= simple_form_for @invite, remote: true do |form|
|
= simple_form_for @invite, remote: true do |form|
|
||||||
.modal-header
|
.modal-header
|
||||||
= button_tag t('ui.marks.close'), class: 'close', data: {dismiss: 'modal'}
|
= button_tag t('ui.marks.close').html_safe, class: 'close', data: {dismiss: 'modal'}
|
||||||
%h3= t '.title'
|
%h3= t '.title'
|
||||||
.modal-body
|
.modal-body
|
||||||
= t('.body', group: @invite.group.name).html_safe
|
= t('.body', group: @invite.group.name).html_safe
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
-# please polish the following line if you know how, same in view destroy
|
-# please polish the following line if you know how, same in view destroy
|
||||||
var errorDiv = $('<div class="alert fade in alert-error"><a class="close" data-dismiss="alert" href="#">#{t('ui.marks.close')}</a></div>');
|
var errorDiv = $('<div class="alert fade in alert-error"><a class="close" data-dismiss="alert" href="#">#{t('ui.marks.close').html_safe}</a></div>');
|
||||||
|
|
||||||
errorDiv.append(document.createTextNode('#{j(fail_msg)}'));
|
errorDiv.append(document.createTextNode('#{j(fail_msg)}'));
|
||||||
$('div.container-fluid').prepend(errorDiv);
|
$('div.container-fluid').prepend(errorDiv);
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
-# please polish the following line if you know how, same in partial _destroy_fail
|
-# please polish the following line if you know how, same in partial _destroy_fail
|
||||||
var successDiv = $('<div class="alert fade in alert-success"><a class="close" data-dismiss="alert" href="#">#{escape_javascript(t('ui.marks.close'))}</a></div>');
|
var successDiv = $('<div class="alert fade in alert-success"><a class="close" data-dismiss="alert" href="#">#{escape_javascript(t('ui.marks.close').html_safe)}</a></div>');
|
||||||
|
|
||||||
successDiv.append(document.createTextNode('#{escape_javascript(t('.notice', name: @article.name))}'));
|
successDiv.append(document.createTextNode('#{escape_javascript(t('.notice', name: @article.name))}'));
|
||||||
$('div.container-fluid').prepend(successDiv);
|
$('div.container-fluid').prepend(successDiv);
|
||||||
|
|
|
@ -312,5 +312,5 @@ de:
|
||||||
save: 'Speichern'
|
save: 'Speichern'
|
||||||
or_cancel: 'oder abbrechen'
|
or_cancel: 'oder abbrechen'
|
||||||
marks:
|
marks:
|
||||||
close: 'x'
|
close: '×'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue