Un peu de travail pour les labels de formulaire
This commit is contained in:
parent
75f165804b
commit
9585441487
@ -174,8 +174,8 @@ sidebar#lug-list
|
|||||||
margin-left: 6.75em
|
margin-left: 6.75em
|
||||||
margin-bottom: 10px
|
margin-bottom: 10px
|
||||||
|
|
||||||
.mce-tinymce *
|
.mce-tinymce
|
||||||
@include transition-duration(0)
|
display: inline-block
|
||||||
|
|
||||||
.description
|
.description
|
||||||
text-align: left
|
text-align: left
|
||||||
|
@ -23,44 +23,44 @@
|
|||||||
= f.label :title
|
= f.label :title
|
||||||
= f.text_field :title, required: true ,size: 70
|
= f.text_field :title, required: true ,size: 70
|
||||||
.field
|
.field
|
||||||
= f.label Event.human_attribute_name :start_time
|
= f.label :start_time
|
||||||
= f.datetime_select :start_time, required: true
|
%span#event_start_time= f.datetime_select :start_time, required: true
|
||||||
.field
|
.field
|
||||||
= f.label Event.human_attribute_name :end_time
|
= f.label :end_time
|
||||||
= f.datetime_select :end_time, required: true
|
%span#event_end_time= f.datetime_select :end_time, required: true
|
||||||
.field
|
.field
|
||||||
.helper
|
.helper
|
||||||
:markdown
|
:markdown
|
||||||
#{t '.description_helper'}
|
#{t '.description_helper'}
|
||||||
= f.label Event.human_attribute_name :description
|
= f.label :description
|
||||||
= f.text_area :description, required: true, class: 'tinymce', rows: 29, cols: 80
|
= f.text_area :description, required: true, class: 'tinymce', rows: 29, cols: 80
|
||||||
= tinymce language: 'fr_FR'
|
= tinymce language: 'fr_FR'
|
||||||
|
|
||||||
.field
|
.field
|
||||||
= f.label Event.human_attribute_name :city
|
= f.label :city
|
||||||
= f.text_field :city, required: true, size: 70, list: :cities
|
= f.text_field :city, required: true, size: 70, list: :cities
|
||||||
%datalist#cities
|
%datalist#cities
|
||||||
- City.connection.select_values('select distinct name from cities join events on name=city group by city order by count(*) desc').each do |name|
|
- City.connection.select_values('select distinct name from cities join events on name=city group by city order by count(*) desc').each do |name|
|
||||||
%option= name
|
%option= name
|
||||||
.field
|
.field
|
||||||
= f.label Event.human_attribute_name :related_region
|
= f.label :region
|
||||||
= f.select :region,
|
= f.select :region,
|
||||||
options_from_collection_for_select(Region.all, 'id', 'name', @event.region)
|
options_from_collection_for_select(Region.all, 'id', 'name', @event.region)
|
||||||
.field
|
.field
|
||||||
= f.label Event.human_attribute_name :locality
|
= f.label :locality
|
||||||
= f.select :locality,
|
= f.select :locality,
|
||||||
options_for_select([[t('attributes.locality_0'), 0], [t('attributes.locality_1'), 1]], @event.locality)
|
options_for_select([[t('attributes.locality_0'), 0], [t('attributes.locality_1'), 1]], @event.locality)
|
||||||
.field
|
.field
|
||||||
.helper
|
.helper
|
||||||
:markdown
|
:markdown
|
||||||
#{t '.url_helper'}
|
#{t '.url_helper'}
|
||||||
= f.label Event.human_attribute_name :url
|
= f.label :url
|
||||||
= f.text_field :url, required: true, size: 70, placeholder: 'Ex: http://april.org'
|
= f.text_field :url, required: true, size: 70, placeholder: 'Ex: http://april.org'
|
||||||
.field
|
.field
|
||||||
.helper
|
.helper
|
||||||
:markdown
|
:markdown
|
||||||
#{t '.contact_helper'}
|
#{t '.contact_helper'}
|
||||||
= f.label Event.human_attribute_name :contact
|
= f.label :contact
|
||||||
= f.text_field :contact, required: true, size: 70
|
= f.text_field :contact, required: true, size: 70
|
||||||
.field
|
.field
|
||||||
.helper
|
.helper
|
||||||
|
Loading…
Reference in New Issue
Block a user