Un peu plus de couleurs sur les boutons de formulaires
This commit is contained in:
parent
8f1d374eb5
commit
d70978d726
|
@ -33,3 +33,9 @@ h2.warning
|
||||||
padding: 0.2em
|
padding: 0.2em
|
||||||
font-weight: normal
|
font-weight: normal
|
||||||
+inline-block()
|
+inline-block()
|
||||||
|
|
||||||
|
.fa.fa-check, .fa.fa-thumbs-up
|
||||||
|
color: green
|
||||||
|
|
||||||
|
.fa.fa-thumbs-down
|
||||||
|
color: red
|
||||||
|
|
|
@ -15,7 +15,7 @@ class TagsController < InheritedResources::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def show
|
def show
|
||||||
@events_future = Event.future.tag params[:id]
|
@events_future = Event.moderated.future.tag params[:id]
|
||||||
@events_past = Event.past.tag params[:id]
|
@events_past = Event.moderated.past.tag params[:id]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -81,6 +81,6 @@ class Event < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def full_address
|
def full_address
|
||||||
[address, city, related_region.name].compact.join(', ')
|
[address, city, related_region.name].compact.join ', '
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -35,7 +35,8 @@
|
||||||
%p= display_date
|
%p= display_date
|
||||||
|
|
||||||
%p.full_address
|
%p.full_address
|
||||||
%span= @event.address
|
- if @event.address.present?
|
||||||
|
%span= @event.address
|
||||||
%span= link_to @event.city, "http://fr.wikipedia.org/wiki/#{url_encode @event.city}"
|
%span= link_to @event.city, "http://fr.wikipedia.org/wiki/#{url_encode @event.city}"
|
||||||
%span= link_to @event.related_region.try(:name),
|
%span= link_to @event.related_region.try(:name),
|
||||||
"http://fr.wikipedia.org/wiki/#{url_encode @event.related_region.name}"
|
"http://fr.wikipedia.org/wiki/#{url_encode @event.related_region.name}"
|
||||||
|
|
|
@ -26,8 +26,13 @@
|
||||||
= label_tag :reason_text, t('.reason')
|
= label_tag :reason_text, t('.reason')
|
||||||
= text_area_tag :reason_text, nil, cols: 40, rows: 5
|
= text_area_tag :reason_text, nil, cols: 40, rows: 5
|
||||||
|
|
||||||
= submit_tag t '.ok'
|
= link_to moderations_url do
|
||||||
= link_to t('.ko'), moderations_url, class: :button
|
%em.fa.fa-arrow-left
|
||||||
|
=t '.ko'
|
||||||
|
|
||||||
|
= button_tag do
|
||||||
|
%em.fa.fa-thumbs-down
|
||||||
|
=t '.ok'
|
||||||
|
|
||||||
%fieldset
|
%fieldset
|
||||||
%legend=Event.model_name.human
|
%legend=Event.model_name.human
|
||||||
|
|
|
@ -5,11 +5,17 @@
|
||||||
%fieldset
|
%fieldset
|
||||||
- if @event.locality?
|
- if @event.locality?
|
||||||
%h2.warning=t '.warning'
|
%h2.warning=t '.warning'
|
||||||
%h2=t '.question'
|
|
||||||
|
|
||||||
= form_for @moderation, url: { action: :accept }, html: { method: :put } do |f|
|
= form_for @moderation, url: { action: :accept }, html: { method: :put } do |f|
|
||||||
= f.submit t('.ok'), name: :yes
|
%h2=t '.question'
|
||||||
= link_to t('.ko'), moderations_url, class: :button
|
|
||||||
|
= link_to moderations_url do
|
||||||
|
%em.fa.fa-arrow-left
|
||||||
|
=t '.ko'
|
||||||
|
|
||||||
|
= f.button name: :yes do
|
||||||
|
%em.fa.fa-thumbs-up
|
||||||
|
=t '.ok'
|
||||||
|
|
||||||
%fieldset
|
%fieldset
|
||||||
%legend=Event.model_name.human
|
%legend=Event.model_name.human
|
||||||
|
|
|
@ -145,7 +145,7 @@ Exemple: `%{daylimit}`"
|
||||||
warning: Attention, cet événement est à portée nationale!
|
warning: Attention, cet événement est à portée nationale!
|
||||||
question: Confirmez-vous la validation de cet événement?
|
question: Confirmez-vous la validation de cet événement?
|
||||||
ok: Oui
|
ok: Oui
|
||||||
ko: Non
|
ko: Modération
|
||||||
accept:
|
accept:
|
||||||
ok: Événement accepté
|
ok: Événement accepté
|
||||||
refuse:
|
refuse:
|
||||||
|
@ -153,7 +153,7 @@ Exemple: `%{daylimit}`"
|
||||||
motif: Motif
|
motif: Motif
|
||||||
question: Quel motif souhaitez-vous associer au rejet de cet événement?
|
question: Quel motif souhaitez-vous associer au rejet de cet événement?
|
||||||
ok: Rejeter
|
ok: Rejeter
|
||||||
ko: Annuler
|
ko: Modération
|
||||||
reason_r_1: Hors sujet
|
reason_r_1: Hors sujet
|
||||||
reason_r_2: Pas assez d'informations
|
reason_r_2: Pas assez d'informations
|
||||||
reason_r_3: Événement déjà enregistré
|
reason_r_3: Événement déjà enregistré
|
||||||
|
|
Loading…
Reference in New Issue