First iteration navbar tableau de bord

This commit is contained in:
Xavier J 2016-11-23 15:21:42 +01:00
parent 37b5e3fc48
commit d09a47ae23
17 changed files with 94 additions and 34 deletions

View file

@ -1,6 +1,5 @@
source 'https://rubygems.org' source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '5.0.0.1' gem 'rails', '5.0.0.1'
@ -104,9 +103,9 @@ group :test do
gem 'simplecov', require: false gem 'simplecov', require: false
gem 'poltergeist' gem 'poltergeist'
gem 'timecop' gem 'timecop'
# gem 'guard' gem 'guard'
# gem 'guard-rspec', require: false # gem 'guard-rspec', require: false
# gem 'guard-livereload', '~> 2.4', require: false gem 'guard-livereload', '~> 2.4', require: false
gem 'vcr' gem 'vcr'
gem 'rails-controller-testing' gem 'rails-controller-testing'
end end

View file

@ -139,7 +139,11 @@ GEM
activemodel-serializers-xml (~> 1.0) activemodel-serializers-xml (~> 1.0)
activesupport (~> 5.0) activesupport (~> 5.0)
request_store (~> 1.0) request_store (~> 1.0)
em-websocket (0.5.1)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0.6.0)
erubis (2.7.0) erubis (2.7.0)
eventmachine (1.2.0.1)
excon (0.54.0) excon (0.54.0)
execjs (2.7.0) execjs (2.7.0)
factory_girl (4.7.0) factory_girl (4.7.0)
@ -279,6 +283,21 @@ GEM
formatador (0.2.5) formatador (0.2.5)
globalid (0.3.7) globalid (0.3.7)
activesupport (>= 4.1.0) activesupport (>= 4.1.0)
guard (2.14.0)
formatador (>= 0.2.4)
listen (>= 2.7, < 4.0)
lumberjack (~> 1.0)
nenv (~> 0.1)
notiffany (~> 0.0)
pry (>= 0.9.12)
shellany (~> 0.0)
thor (>= 0.18.1)
guard-compat (1.2.1)
guard-livereload (2.5.2)
em-websocket (~> 0.5)
guard (~> 2.8)
guard-compat (~> 1.0)
multi_json (~> 1.8)
haml (4.0.7) haml (4.0.7)
tilt tilt
haml-rails (0.9.0) haml-rails (0.9.0)
@ -297,6 +316,7 @@ GEM
htmlentities (4.3.4) htmlentities (4.3.4)
http-cookie (1.0.3) http-cookie (1.0.3)
domain_name (~> 0.5) domain_name (~> 0.5)
http_parser.rb (0.6.0)
httpclient (2.8.2.4) httpclient (2.8.2.4)
i18n (0.7.0) i18n (0.7.0)
inflecto (0.0.2) inflecto (0.0.2)
@ -329,6 +349,9 @@ GEM
railties (>= 3.1) railties (>= 3.1)
leaflet-rails (0.7.7) leaflet-rails (0.7.7)
libv8 (3.16.14.15) libv8 (3.16.14.15)
listen (3.0.8)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
logstash-event (1.2.02) logstash-event (1.2.02)
logstasher (1.0.1) logstasher (1.0.1)
activerecord (>= 4.0) activerecord (>= 4.0)
@ -337,6 +360,7 @@ GEM
request_store request_store
loofah (2.0.3) loofah (2.0.3)
nokogiri (>= 1.5.9) nokogiri (>= 1.5.9)
lumberjack (1.0.10)
mail (2.6.4) mail (2.6.4)
mime-types (>= 1.16, < 4) mime-types (>= 1.16, < 4)
mailjet (1.4.10) mailjet (1.4.10)
@ -353,10 +377,14 @@ GEM
minitest (5.9.1) minitest (5.9.1)
multi_json (1.12.1) multi_json (1.12.1)
multipart-post (2.0.0) multipart-post (2.0.0)
nenv (0.3.0)
netrc (0.11.0) netrc (0.11.0)
nio4r (1.2.1) nio4r (1.2.1)
nokogiri (1.6.8.1) nokogiri (1.6.8.1)
mini_portile2 (~> 2.1.0) mini_portile2 (~> 2.1.0)
notiffany (0.1.0)
nenv (~> 0.1)
shellany (~> 0.0)
open4 (1.3.4) open4 (1.3.4)
openid_connect (0.12.0) openid_connect (0.12.0)
activemodel activemodel
@ -431,6 +459,9 @@ GEM
rainbow (2.1.0) rainbow (2.1.0)
raindrops (0.17.0) raindrops (0.17.0)
rake (11.3.0) rake (11.3.0)
rb-fsevent (0.9.7)
rb-inotify (0.9.7)
ffi (>= 0.5.0)
rbvmomi (1.9.4) rbvmomi (1.9.4)
builder (~> 3.2) builder (~> 3.2)
json (>= 1.8) json (>= 1.8)
@ -505,6 +536,7 @@ GEM
sentry-raven (2.1.2) sentry-raven (2.1.2)
faraday (>= 0.7.6, < 0.10.x) faraday (>= 0.7.6, < 0.10.x)
sexp_processor (4.7.0) sexp_processor (4.7.0)
shellany (0.0.1)
shoulda-matchers (3.1.1) shoulda-matchers (3.1.1)
activesupport (>= 4.0.0) activesupport (>= 4.0.0)
simplecov (0.12.0) simplecov (0.12.0)
@ -618,6 +650,8 @@ DEPENDENCIES
fog fog
fog-openstack fog-openstack
font-awesome-rails font-awesome-rails
guard
guard-livereload (~> 2.4)
haml-rails haml-rails
hashie hashie
jbuilder (~> 2.0) jbuilder (~> 2.0)

View file

@ -43,7 +43,7 @@ guard 'livereload' do
rails_view_exts = %w(erb haml slim) rails_view_exts = %w(erb haml slim)
# file types LiveReload may optimize refresh for # file types LiveReload may optimize refresh for
compiled_exts = extensions.values.distinct compiled_exts = extensions.values
watch(%r{public/.+\.(#{compiled_exts * '|'})}) watch(%r{public/.+\.(#{compiled_exts * '|'})})
extensions.each do |ext, type| extensions.each do |ext, type|
@ -64,24 +64,24 @@ guard 'livereload' do
watch(%r{config/locales/.+\.yml}) watch(%r{config/locales/.+\.yml})
end end
guard :rspec, cmd: 'bin/rspec' do # guard :rspec, cmd: 'bin/rspec' do
watch(%r{^spec/.+_spec\.rb$}) # watch(%r{^spec/.+_spec\.rb$})
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" } # watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
watch('spec/spec_helper.rb') { "spec" } # watch('spec/spec_helper.rb') { "spec" }
#
# Rails example # # Rails example
watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" } # watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
watch(%r{^app/(.*)(\.erb|\.haml|\.slim)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" } # watch(%r{^app/(.*)(\.erb|\.haml|\.slim)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] } # watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] }
watch(%r{^spec/support/(.+)\.rb$}) { "spec" } # watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
watch('config/routes.rb') { "spec/routing" } # watch('config/routes.rb') { "spec/routing" }
watch('app/controllers/application_controller.rb') { "spec/controllers" } # watch('app/controllers/application_controller.rb') { "spec/controllers" }
watch('spec/rails_helper.rb') { "spec" } # watch('spec/rails_helper.rb') { "spec" }
#
# Capybara features specs # # Capybara features specs
watch(%r{^app/views/(.+)/.*\.(erb|haml|slim)$}) { |m| "spec/features/#{m[1]}_spec.rb" } # watch(%r{^app/views/(.+)/.*\.(erb|haml|slim)$}) { |m| "spec/features/#{m[1]}_spec.rb" }
#
# Turnip features and steps # # Turnip features and steps
watch(%r{^spec/acceptance/(.+)\.feature$}) # watch(%r{^spec/acceptance/(.+)\.feature$})
watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'spec/acceptance' } # watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'spec/acceptance' }
end # end

View file

@ -35,6 +35,10 @@ body {
padding-top: 50px; padding-top: 50px;
} }
form {
margin-bottom: 0.3em;
}
.wysihtml5-sandbox { .wysihtml5-sandbox {
resize: vertical; resize: vertical;
} }

View file

@ -124,3 +124,12 @@
font-weight: 700; font-weight: 700;
z-index: 10; z-index: 10;
} }
.button_navbar{
color: #666666;
cursor: pointer;
}
.button_navbar:hover{
text-decoration: none;
}

View file

@ -5,6 +5,8 @@ class Backoffice::Dossiers::ProcedureController < Backoffice::DossiersListContro
dossiers_list_facade.service.filter_procedure! params[:id] dossiers_list_facade.service.filter_procedure! params[:id]
@facade_data_view = dossiers_list_facade
render 'backoffice/dossiers/index' render 'backoffice/dossiers/index'
rescue ActiveRecord::RecordNotFound rescue ActiveRecord::RecordNotFound
flash[:alert] = "Cette procédure n'existe pas ou vous n'y avez pas accès." flash[:alert] = "Cette procédure n'existe pas ou vous n'y avez pas accès."

View file

@ -63,9 +63,4 @@
%button.btn.btn-default{ id:'search_button' } %button.btn.btn-default{ id:'search_button' }
%i.fa.fa-search %i.fa.fa-search
- if @dossiers_search.nil?
%li#pref_list
%a.btn#pref_list_dossier_open_action{href: '#'}
%i.fa.fa-columns
%br %br

View file

@ -1,4 +1,10 @@
#backoffice_search #backoffice_search
= render partial: 'onglets' #pref_list_menu
= render partial: 'backoffice/dossiers/pref_list'
%h1
=t('dynamics.backoffice.title')
= render partial: 'backoffice/dossiers/onglets'
= smart_listing_render :dossiers = smart_listing_render :dossiers

View file

@ -4,10 +4,10 @@
%span{'data-toggle' => :tooltip, "data-placement" => :left, title: 'Pour réduire le nombre de dossiers et ne pas dépasser la limite autorisée de 400, merci de bien vouloir appliquer des filtres.'} %span{'data-toggle' => :tooltip, "data-placement" => :left, title: 'Pour réduire le nombre de dossiers et ne pas dépasser la limite autorisée de 400, merci de bien vouloir appliquer des filtres.'}
= t('dynamics.backoffice.limit_excess_download_all_dossiers') = t('dynamics.backoffice.limit_excess_download_all_dossiers')
- else - else
%button.btn.btn-success.dropdown-toggle#dropdownDownloadMenu{ type: :button, 'data-toggle' => 'dropdown', 'aria-haspopup' => true, 'aria-expanded' => false } %a.dropdown-toggle#dropdownDownloadMenu.button_navbar{ type: :button, 'data-toggle' => 'dropdown', 'aria-haspopup' => true, 'aria-expanded' => false }
%i.fa.fa-download %i.fa.fa-download
= t('dynamics.backoffice.download_all_dossiers') = t('dynamics.backoffice.download_all_dossiers')
%span.caret -#%span.caret
%ul.dropdown-menu.dropdown-menu-right %ul.dropdown-menu.dropdown-menu-right
%li %li
= link_to backoffice_download_dossiers_tps_path(format: :csv, procedure_id: params[:id]), { class: 'btn btn-sm' } do = link_to backoffice_download_dossiers_tps_path(format: :csv, procedure_id: params[:id]), { class: 'btn btn-sm' } do

View file

@ -0,0 +1 @@
= render partial: 'layouts/navbars/navbar_backoffice_dossierscontroller_index'

View file

@ -1,6 +1,11 @@
%div.col-lg-7.col-md-7.main-info %div.col-lg-7.col-md-7.main-info
Start UP region ile de france (8 dossiers en cours) Start UP region ile de france (8 dossiers en cours)
%div.col-lg-3.col-md-3.options %div.col-lg-3.col-md-3.options
%div.row
%div.col-lg-12.col-md-12
%a.button_navbar#pref_list_dossier_open_action{href: '#', type: :button, 'data-toggle' => 'dropdown', 'aria-haspopup' => true, 'aria-expanded' => false }
%i.fa.fa-pencil
Modifier le tableau
%div.row %div.row
%div.col-lg-12.col-md-12 %div.col-lg-12.col-md-12
= render partial: "dossiers/download_dossiers" = render partial: "dossiers/download_dossiers"

View file

@ -0,0 +1 @@
= render partial: 'layouts/navbars/navbar_backoffice_dossierscontroller_index'

View file

@ -13,7 +13,7 @@ fr:
title: 'Gestion de colonnes affichées' title: 'Gestion de colonnes affichées'
description: 'Ce menu vous permet de choisir les différentes colonnes que vous souhaitez voir apparaître dans votre interface de suivi des dossiers.' description: 'Ce menu vous permet de choisir les différentes colonnes que vous souhaitez voir apparaître dans votre interface de suivi des dossiers.'
download_all_dossiers: 'Télécharger mes dossiers' download_all_dossiers: 'Télécharger mes dossiers'
limit_excess_download_all_dossiers: 'Limite de dossiers fixée à 200 pour le téléchargement' limit_excess_download_all_dossiers: 'Limite de dossiers fixée à 400 pour le téléchargement'
format_csv: 'Au format CSV' format_csv: 'Au format CSV'
format_xlsx: 'Au format XLSX' format_xlsx: 'Au format XLSX'
format_ods: 'Au format ODS' format_ods: 'Au format ODS'