diff --git a/app/models/circuit_region.rb b/app/models/circuit_region.rb index fff946a..53d3fa6 100644 --- a/app/models/circuit_region.rb +++ b/app/models/circuit_region.rb @@ -1,5 +1,10 @@ class CircuitRegion < ApplicationRecord acts_as_csv_import :fields => [:name] + + acts_as_sorting :fields => { + :name => {:name => "Nom",:reorder => true}, + :actions => {:name => "Actions"} + } has_many :circuits diff --git a/app/views/public/menu_items/index.html.haml b/app/views/public/menu_items/index.html.haml index b342e19..b8b7280 100644 --- a/app/views/public/menu_items/index.html.haml +++ b/app/views/public/menu_items/index.html.haml @@ -26,12 +26,34 @@ %br de la communauté %p - Et recevez gratuitement 1 planche de stickers. - %br + Recevez gratuitement %br + 1 planche de stickers + %a{:href => public_my_account_path} S'inscrire - %br + +#paragraphe339.paragraphe{:style => "padding:0;margin:0;"} + %a{:name => "paragraphe339"} + .num_programme + .center_programme + .block_num + %span.chiffre + =PCustomer.where(:enabled => true).count + %span.label-chiffre Membres + .block_num + %span.chiffre + =MEvent.count + %span.label-chiffre Dates + .block_num + %span.chiffre + =Circuit.count + %span.label-chiffre Circuits + .block_num + %span.chiffre + =Organisateur.count + %span.label-chiffre Organisateurs + .avantage .center_home %h4 Les 4 avantages du programme @@ -64,24 +86,3 @@ %img.img_av_hover{:src => "https://www.mamotosurcircuit.com/images/interface/infosexclu_left_white.png"}/ %h5 Des informations exclusives %p Les coulisses de l'exploit - -#paragraphe339.paragraphe{:style => "padding:0;margin:0;"} - %a{:name => "paragraphe339"} - .num_programme - .center_programme - .block_num - %span.chiffre - =PCustomer.where(:enabled => true).count - %span.label-chiffre Membres - .block_num - %span.chiffre - =MEvent.count - %span.label-chiffre Dates - .block_num - %span.chiffre - =Circuit.count - %span.label-chiffre Circuits - .block_num - %span.chiffre - =Organisateur.count - %span.label-chiffre Organisateurs \ No newline at end of file