Files should end with a new line

This commit is contained in:
gregoirenovel 2017-04-04 15:27:04 +02:00
parent 15802b18ea
commit d5e7bbd80d
198 changed files with 198 additions and 198 deletions

View file

@ -19,4 +19,4 @@ function address_type_init() {
source: bloodhound, source: bloodhound,
limit: 5 limit: 5
}); });
} }

View file

@ -57,4 +57,4 @@ function new_cadastreLayer() {
cadastreItems = new L.GeoJSON(); cadastreItems = new L.GeoJSON();
cadastreItems.addTo(map); cadastreItems.addTo(map);
} }

View file

@ -57,4 +57,4 @@ function new_qpLayer() {
qpItems = new L.GeoJSON(); qpItems = new L.GeoJSON();
qpItems.addTo(map); qpItems.addTo(map);
} }

View file

@ -20,4 +20,4 @@ function slideOut_notification_alert (){
$("#notification_alert").animate({ $("#notification_alert").animate({
right: '-250px' right: '-250px'
}, 200); }, 200);
} }

View file

@ -1,3 +1,3 @@
function show_dossier_id_input (){ function show_dossier_id_input (){
$("#btn_show_dossier_id_input").hide() $("#btn_show_dossier_id_input").hide()
} }

View file

@ -3,4 +3,4 @@
padding: 15px; padding: 15px;
box-shadow: 0 1px 3px rgba(0, 0, 0, .15); box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
border-radius: 2px; border-radius: 2px;
} }

View file

@ -18,4 +18,4 @@ $default-spacer: 15px;
.ml-1 { .ml-1 {
margin-left: $default-spacer; margin-left: $default-spacer;
} }

View file

@ -15,4 +15,4 @@
.tt-menu { .tt-menu {
width: 300px; width: 300px;
} }
} }

View file

@ -1,4 +1,4 @@
#cgu { #cgu {
margin-left: 2em; margin-left: 2em;
margin-right: 2em; margin-right: 2em;
} }

View file

@ -2,4 +2,4 @@
width: 300px; width: 300px;
margin-left:auto; margin-left:auto;
margin-right:auto; margin-right:auto;
} }

View file

@ -30,4 +30,4 @@
h4 { h4 {
text-align: left; text-align: left;
} }
} }

View file

@ -9,4 +9,4 @@
height: 80px; height: 80px;
border: solid black 1px; border: solid black 1px;
} }

View file

@ -6,4 +6,4 @@
} }
} }
} }
} }

View file

@ -17,4 +17,4 @@
.open_pref_list { .open_pref_list {
right: 0 !important; right: 0 !important;
display: block !important; display: block !important;
} }

View file

@ -9,4 +9,4 @@
#titre_procedure { #titre_procedure {
margin-top: 3%; margin-top: 3%;
margin-bottom: 2%; margin-bottom: 2%;
} }

View file

@ -12,4 +12,4 @@
a{ a{
color: #c3d9ff; color: #c3d9ff;
} }
} }

View file

@ -3,4 +3,4 @@
left: 10px; left: 10px;
bottom: 10px; bottom: 10px;
z-index: 300; z-index: 300;
} }

View file

@ -31,4 +31,4 @@
color: #fff; color: #fff;
background-color: #0097cf; background-color: #0097cf;
} }

View file

@ -11,4 +11,4 @@
li:last-child { li:last-child {
border: none; border: none;
} }
} }

View file

@ -2,4 +2,4 @@ class NotificationsChannel < ApplicationCable::Channel
def subscribed def subscribed
stream_from 'notifications' stream_from 'notifications'
end end
end end

View file

@ -35,4 +35,4 @@ class Admin::AccompagnateursController < AdminController
flash.notice = "Assignement effectué" flash.notice = "Assignement effectué"
redirect_to admin_procedure_accompagnateurs_path, procedure_id: params[:procedure_id] redirect_to admin_procedure_accompagnateurs_path, procedure_id: params[:procedure_id]
end end
end end

View file

@ -16,4 +16,4 @@ class Admin::ChangeDossierStateController < AdminController
return redirect_to admin_change_dossier_state_path return redirect_to admin_change_dossier_state_path
end end
end end
end end

View file

@ -15,4 +15,4 @@ class Admin::PrevisualisationsController < AdminController
acc acc
end end
end end
end end

View file

@ -46,4 +46,4 @@ class Admin::TypesDeChampPrivateController < AdminController
def create_facade def create_facade
@types_de_champ_facade = AdminTypesDeChampFacades.new true, @procedure @types_de_champ_facade = AdminTypesDeChampFacades.new true, @procedure
end end
end end

View file

@ -56,4 +56,4 @@ class API::V1::DossiersController < APIController
nombre_de_page: dossiers.total_pages nombre_de_page: dossiers.total_pages
} }
end end
end end

View file

@ -19,4 +19,4 @@ class APIController < ApplicationController
def default_format_json def default_format_json
request.format = "json" unless request.params[:format] request.format = "json" unless request.params[:format]
end end
end end

View file

@ -4,4 +4,4 @@ class Backoffice::CommentairesController < CommentairesController
def is_gestionnaire? def is_gestionnaire?
true true
end end
end end

View file

@ -16,4 +16,4 @@ class Backoffice::PrivateFormulairesController < ApplicationController
render 'backoffice/dossiers/formulaire_private', formats: :js render 'backoffice/dossiers/formulaire_private', formats: :js
end end
end end

View file

@ -7,4 +7,4 @@ class BackofficeController < ApplicationController
redirect_to(:backoffice_dossiers) redirect_to(:backoffice_dossiers)
end end
end end
end end

View file

@ -17,4 +17,4 @@ class Ban::SearchController < ApplicationController
render json: {lon: lon, lat: lat, zoom: '14', dossier_id: params[:dossier_id]} render json: {lon: lon, lat: lat, zoom: '14', dossier_id: params[:dossier_id]}
end end
end end

View file

@ -2,4 +2,4 @@ class CguController < ApplicationController
def index def index
end end
end end

View file

@ -117,4 +117,4 @@ class FranceConnect::ParticulierController < ApplicationController
france_connect_information = FranceConnectInformation.find(params[:fci_id]) france_connect_information = FranceConnectInformation.find(params[:fci_id])
FranceConnectSaltService.new(france_connect_information).valid? params[:salt] FranceConnectSaltService.new(france_connect_information).valid? params[:salt]
end end
end end

View file

@ -1,3 +1,3 @@
class Users::CommentairesController < CommentairesController class Users::CommentairesController < CommentairesController
before_action :authenticate_user! before_action :authenticate_user!
end end

View file

@ -10,4 +10,4 @@ class Users::Dossiers::AddSiretController < ApplicationController
flash.alert = t('errors.messages.dossier_not_found') flash.alert = t('errors.messages.dossier_not_found')
redirect_to url_for users_dossiers_path redirect_to url_for users_dossiers_path
end end
end end

View file

@ -1,3 +1,3 @@
class Users::Dossiers::CommentairesController < CommentairesController class Users::Dossiers::CommentairesController < CommentairesController
before_action :authenticate_user! before_action :authenticate_user!
end end

View file

@ -15,4 +15,4 @@ class Users::Dossiers::InvitesController < UsersController
flash.alert = t('errors.messages.dossier_not_found') flash.alert = t('errors.messages.dossier_not_found')
redirect_to url_for users_dossiers_path redirect_to url_for users_dossiers_path
end end
end end

View file

@ -29,4 +29,4 @@ class UsersController < ApplicationController
flash.alert = message flash.alert = message
redirect_to url_for root_path redirect_to url_for root_path
end end
end end

View file

@ -1,3 +1,3 @@
class TypeDeChampPrivateDecorator < TypeDeChampDecorator class TypeDeChampPrivateDecorator < TypeDeChampDecorator
end end

View file

@ -33,4 +33,4 @@ class TypeDePieceJustificativeDecorator < Draper::Decorator
def count_type_de_piece_justificative def count_type_de_piece_justificative
@count_type_de_piece_justificative ||= procedure.types_de_piece_justificative.count @count_type_de_piece_justificative ||= procedure.types_de_piece_justificative.count
end end
end end

View file

@ -43,4 +43,4 @@ class AdminProceduresShowFacades
def dossiers_termine_total def dossiers_termine_total
dossiers.where(state: :termine).size dossiers.where(state: :termine).size
end end
end end

View file

@ -45,4 +45,4 @@ class AdminTypesDeChampFacades
def add_button_id def add_button_id
@private ? :add_type_de_champ_private : :add_type_de_champ @private ? :add_type_de_champ_private : :add_type_de_champ
end end
end end

View file

@ -4,4 +4,4 @@ class InviteDossierFacades < DossierFacades
def initialize id, email def initialize id, email
@dossier = Invite.where(email: email, id: id).first!.dossier @dossier = Invite.where(email: email, id: id).first!.dossier
end end
end end

View file

@ -71,4 +71,4 @@ class FileSizeValidator < ActiveModel::EachValidator
include Singleton include Singleton
include ActionView::Helpers::NumberHelper include ActionView::Helpers::NumberHelper
end end
end end

View file

@ -20,4 +20,4 @@ class SIADE::ExercicesAdapter
:dateFinExercice, :dateFinExercice,
:date_fin_exercice_timestamp] :date_fin_exercice_timestamp]
end end
end end

View file

@ -1,4 +1,4 @@
class AssignTo < ActiveRecord::Base class AssignTo < ActiveRecord::Base
belongs_to :procedure belongs_to :procedure
belongs_to :gestionnaire belongs_to :gestionnaire
end end

View file

@ -28,4 +28,4 @@ class Cerfa < ActiveRecord::Base
NotificationService.new('cerfa', self.dossier.id).notify NotificationService.new('cerfa', self.dossier.id).notify
end end
end end
end end

View file

@ -3,4 +3,4 @@ class Follow < ActiveRecord::Base
belongs_to :dossier belongs_to :dossier
validates_uniqueness_of :gestionnaire_id, :scope => :dossier_id validates_uniqueness_of :gestionnaire_id, :scope => :dossier_id
end end

View file

@ -6,4 +6,4 @@ class FranceConnectInformation < ActiveRecord::Base
def self.find_by_france_connect_particulier user_info def self.find_by_france_connect_particulier user_info
FranceConnectInformation.find_by(france_connect_particulier_id: user_info[:france_connect_particulier_id]) FranceConnectInformation.find_by(france_connect_particulier_id: user_info[:france_connect_particulier_id])
end end
end end

View file

@ -5,4 +5,4 @@ class ProcedurePath < ActiveRecord::Base
belongs_to :procedure belongs_to :procedure
belongs_to :administrateur belongs_to :administrateur
end end

View file

@ -1,3 +1,3 @@
class TypeDeChampPrivate < TypeDeChamp class TypeDeChampPrivate < TypeDeChamp
end end

View file

@ -1,3 +1,3 @@
class TypeDeChampPublic < TypeDeChamp class TypeDeChampPublic < TypeDeChamp
end end

View file

@ -3,4 +3,4 @@ class CerfaSerializer < ActiveModel::Serializer
:content_url :content_url
has_one :user has_one :user
end end

View file

@ -2,4 +2,4 @@ class ChampPrivateSerializer < ActiveModel::Serializer
attributes :value attributes :value
has_one :type_de_champ has_one :type_de_champ
end end

View file

@ -2,4 +2,4 @@ class ChampPublicSerializer < ActiveModel::Serializer
attributes :value attributes :value
has_one :type_de_champ has_one :type_de_champ
end end

View file

@ -2,4 +2,4 @@ class CommentaireSerializer < ActiveModel::Serializer
attributes :email, attributes :email,
:body, :body,
:created_at :created_at
end end

View file

@ -1,4 +1,4 @@
class DossiersSerializer < ActiveModel::Serializer class DossiersSerializer < ActiveModel::Serializer
attributes :id, attributes :id,
:updated_at :updated_at
end end

View file

@ -11,4 +11,4 @@ class EntrepriseSerializer < ActiveModel::Serializer
:date_creation, :date_creation,
:nom, :nom,
:prenom :prenom
end end

View file

@ -2,4 +2,4 @@ class EtablissementCsvSerializer < EtablissementSerializer
def adresse def adresse
object.adresse.chomp.gsub("\r\n", ' ').gsub("\r", '') object.adresse.chomp.gsub("\r\n", ' ').gsub("\r", '')
end end
end end

View file

@ -12,4 +12,4 @@ class EtablissementSerializer < ActiveModel::Serializer
:localite, :localite,
:code_insee_localite :code_insee_localite
end end

View file

@ -4,4 +4,4 @@ class ModuleApiCartoSerializer < ActiveModel::Serializer
:cadastre :cadastre
end end

View file

@ -4,4 +4,4 @@ class PieceJustificativeSerializer < ActiveModel::Serializer
:content_url :content_url
has_one :user has_one :user
end end

View file

@ -4,4 +4,4 @@ class TypeDeChampSerializer < ActiveModel::Serializer
:type_champ, :type_champ,
:order_place, :order_place,
:description :description
end end

View file

@ -1,3 +1,3 @@
class UserSerializer < ActiveModel::Serializer class UserSerializer < ActiveModel::Serializer
attributes :email attributes :email
end end

View file

@ -22,4 +22,4 @@ class AccompagnateurService
@accompagnateur.build_default_preferences_list_dossier @procedure.id @accompagnateur.build_default_preferences_list_dossier @procedure.id
end end
end end

View file

@ -16,4 +16,4 @@ class BrowserService
true true
end end
end end

View file

@ -13,4 +13,4 @@ class ClamavService
return false if response.first.class == ClamAV::VirusResponse return false if response.first.class == ClamAV::VirusResponse
true true
end end
end end

View file

@ -53,4 +53,4 @@ class DossierService
false false
end end
end end

View file

@ -40,4 +40,4 @@ class DossiersListUserService
def termine def termine
@termine ||= @current_devise_profil.dossiers.termine @termine ||= @current_devise_profil.dossiers.termine
end end
end end

View file

@ -14,4 +14,4 @@ class FranceConnectSaltService
def salt def salt
Digest::MD5.hexdigest(model.france_connect_particulier_id + model.given_name + model.family_name + FRANCE_CONNECT.particulier_secret + DateTime.now.to_date.to_s) Digest::MD5.hexdigest(model.france_connect_particulier_id + model.given_name + model.family_name + FRANCE_CONNECT.particulier_secret + DateTime.now.to_date.to_s)
end end
end end

View file

@ -26,4 +26,4 @@ class GeojsonService
polygon.to_json polygon.to_json
end end
end end

View file

@ -2,4 +2,4 @@ class NumberService
def self.to_number string def self.to_number string
string.to_s if Float(string) rescue nil string.to_s if Float(string) rescue nil
end end
end end

View file

@ -37,4 +37,4 @@ class PiecesJustificativesService
piece_justificative piece_justificative
end end
end end

View file

@ -2,4 +2,4 @@ class PrevisualisationService
def self.destroy_all_champs dossier def self.destroy_all_champs dossier
Champ.where(dossier_id: dossier.id, type_de_champ_id: dossier.procedure.types_de_champ.ids).destroy_all Champ.where(dossier_id: dossier.id, type_de_champ_id: dossier.procedure.types_de_champ.ids).destroy_all
end end
end end

View file

@ -22,4 +22,4 @@ class SwitchDeviseProfileService
def administrateur_signed_in? def administrateur_signed_in?
!@warden.authenticate(:scope => :administrateur).nil? !@warden.authenticate(:scope => :administrateur).nil?
end end
end end

View file

@ -6,4 +6,4 @@ class UserRoutesAuthorizationService
auth[:states].include?(dossier.state.to_sym) && auth[:states].include?(dossier.state.to_sym) &&
(auth[:api_carto].nil? ? true : auth[:api_carto] == dossier.procedure.use_api_carto) (auth[:api_carto].nil? ? true : auth[:api_carto] == dossier.procedure.use_api_carto)
end end
end end

View file

@ -8,4 +8,4 @@ class BaseUploader < CarrierWave::Uploader::Base
'/tmp/tps-dev-cache' '/tmp/tps-dev-cache'
end end
end end
end end

View file

@ -13,4 +13,4 @@
%br %br
%br %br
= link_to 'Réaliser un autre dossier', 'change_dossier_state' = link_to 'Réaliser un autre dossier', 'change_dossier_state'

View file

@ -14,4 +14,4 @@
- Dossier.states.each do |state| - Dossier.states.each do |state|
%option{value: state[0]} %option{value: state[0]}
=DossierDecorator.case_state_fr state[1] =DossierDecorator.case_state_fr state[1]
= f.submit 'Valider' = f.submit 'Valider'

View file

@ -14,4 +14,4 @@
%a{:href => "#{url_for :admin_procedures_archived}"} %a{:href => "#{url_for :admin_procedures_archived}"}
%h5{style: 'color: black'} %h5{style: 'color: black'}
="Archivées" ="Archivées"
%br %br

View file

@ -3,4 +3,4 @@
%hr %hr
%p %p
API TOKEN : API TOKEN :
= @administrateur.api_token = @administrateur.api_token

View file

@ -26,4 +26,4 @@
%br %br
.actions .actions
= f.submit "Se connecter", class:'btn btn-primary' = f.submit "Se connecter", class:'btn btn-primary'
%br %br

View file

@ -16,4 +16,4 @@
%br %br
.text-center .text-center
=link_to 'Deconnexion', '/administrations/sign_out', method: :delete =link_to 'Deconnexion', '/administrations/sign_out', method: :delete

View file

@ -1,2 +1,2 @@
#backoffice_dossier_show.col-xs-12 #backoffice_dossier_show.col-xs-12
= render partial: "dossiers/dossier_show" = render partial: "dossiers/dossier_show"

View file

@ -171,4 +171,4 @@
Conception & Réalisation Conception & Réalisation
%p SGMAP %p SGMAP
%p   %p  
%p   %p  

View file

@ -12,4 +12,4 @@
%p %p
Si vous avez déjà déposé un ou plusieurs dossiers : Si vous avez déjà déposé un ou plusieurs dossiers :
%a.btn.btn-lg.btn-info{href: new_user_session_path} %a.btn.btn-lg.btn-info{href: new_user_session_path}
Accéder à mon espace en ligne. Accéder à mon espace en ligne.

View file

@ -24,4 +24,4 @@
= smart_listing.paginate = smart_listing.paginate
= smart_listing.pagination_per_page_links = smart_listing.pagination_per_page_links
- else - else
%p Aucune procédure trouvée %p Aucune procédure trouvée

View file

@ -1 +1 @@
= smart_listing_render :procedures = smart_listing_render :procedures

View file

@ -1 +1 @@
= render partial: 'show' = render partial: 'show'

View file

@ -20,4 +20,4 @@
= f.password_field :password, class: "form-control", placeholder: "Entrez votre mot de passe" = f.password_field :password, class: "form-control", placeholder: "Entrez votre mot de passe"
= hidden_field_tag :fci_id, params[:fci_id] = hidden_field_tag :fci_id, params[:fci_id]
= hidden_field_tag :salt, params[:salt] = hidden_field_tag :salt, params[:salt]
= f.submit 'Terminer', class: %w(btn btn-lg btn-success), style: 'margin-top:20px;', id: 'valid_new_fcp' = f.submit 'Terminer', class: %w(btn btn-lg btn-success), style: 'margin-top:20px;', id: 'valid_new_fcp'

View file

@ -29,4 +29,4 @@
= f.text_field :email_france_connect, class: "form-control", placeholder: "Entrez votre email" = f.text_field :email_france_connect, class: "form-control", placeholder: "Entrez votre email"
= hidden_field_tag :fci_id, params[:fci_id] = hidden_field_tag :fci_id, params[:fci_id]
= hidden_field_tag :salt, params[:salt] = hidden_field_tag :salt, params[:salt]
= f.submit 'Terminer', class: %w(btn btn-lg btn-success), style: 'margin-top:20px;', id: 'valid_new_fcp' = f.submit 'Terminer', class: %w(btn btn-lg btn-success), style: 'margin-top:20px;', id: 'valid_new_fcp'

View file

@ -28,4 +28,4 @@
%br %br
.actions .actions
= f.submit "Changer", class:'btn btn-primary' = f.submit "Changer", class:'btn btn-primary'
%br %br

View file

@ -20,4 +20,4 @@
%br %br
.actions .actions
= f.submit "Renvoyer", class:'btn btn-primary' = f.submit "Renvoyer", class:'btn btn-primary'
%br %br

View file

@ -22,4 +22,4 @@
= link_to(admin_procedures_path) do = link_to(admin_procedures_path) do
%i.fa.fa-user %i.fa.fa-user
&nbsp; &nbsp;
Administrateur Administrateur

View file

@ -1 +1 @@
=render partial: 'layouts/left_panels/left_panel_admin_procedurescontroller_index' =render partial: 'layouts/left_panels/left_panel_admin_procedurescontroller_index'

View file

@ -1 +1 @@
=render partial: 'layouts/left_panels/left_panel_admin_procedurescontroller_index' =render partial: 'layouts/left_panels/left_panel_admin_procedurescontroller_index'

View file

@ -1,2 +1,2 @@
%div %div
Default Left Panel Default Left Panel

View file

@ -1 +1 @@
= render partial: 'layouts/left_panels/left_panel_users_recapitulatifcontroller_show' = render partial: 'layouts/left_panels/left_panel_users_recapitulatifcontroller_show'

View file

@ -4,4 +4,4 @@
= text_field_tag('q', "#{@search_terms unless @search_terms.nil? }", id: 'q', placeholder: "Recherchez parmi tous vos dossiers", class:'form-control') = text_field_tag('q', "#{@search_terms unless @search_terms.nil? }", id: 'q', placeholder: "Recherchez parmi tous vos dossiers", class:'form-control')
%span.input-group-btn %span.input-group-btn
%button.btn.btn-default{ id:'search_button' } %button.btn.btn-default{ id:'search_button' }
%i.fa.fa-search %i.fa.fa-search

View file

@ -1 +1 @@
= yield = yield

View file

@ -1 +1 @@
= render partial: 'layouts/navbars/navbar_admin_procedurescontroller_index' = render partial: 'layouts/navbars/navbar_admin_procedurescontroller_index'

Some files were not shown because too many files have changed in this diff Show more