From 69ba92009b15d601b6738b509382bd2c37266892 Mon Sep 17 00:00:00 2001 From: gregoirenovel Date: Thu, 6 Apr 2017 15:48:27 +0200 Subject: [PATCH] Separate HAML comments from the leading # by a space --- .../dossiers/_infos_pieces_jointes.html.haml | 8 ++-- .../dossiers/_pieces_justificatives.html.haml | 8 ++-- app/views/dossiers/_show.html.haml | 10 ++--- app/views/users/description/_show.html.haml | 2 +- app/views/users/dossiers/index.html.haml | 4 +- app/views/users/passwords/edit.html.haml | 44 +++++++++---------- app/views/users/passwords/new.html.haml | 44 +++++++++---------- app/views/users/registrations/new.html.haml | 44 +++++++++---------- 8 files changed, 82 insertions(+), 82 deletions(-) diff --git a/app/views/dossiers/_infos_pieces_jointes.html.haml b/app/views/dossiers/_infos_pieces_jointes.html.haml index 5268bdadb..de4b03aa1 100644 --- a/app/views/dossiers/_infos_pieces_jointes.html.haml +++ b/app/views/dossiers/_infos_pieces_jointes.html.haml @@ -30,9 +30,9 @@ - if type_de_piece_justificative.api_entreprise %span.text-success Nous l'avons récupéré pour vous. - elsif !(@pj = @facade.dossier.retrieve_last_piece_justificative_by_type(type_de_piece_justificative.id)).nil? - -#- if user_signed_in? - -# = 'Pièce fournie' - -#- elsif gestionnaire_signed_in? + -# - if user_signed_in? + -# = 'Pièce fournie' + -# - elsif gestionnaire_signed_in? %a{ href: "#{@pj.content_url}", target: '_blank' } Consulter %span{style:'margin-left:12px'} \- @@ -45,5 +45,5 @@ - else = 'Pièce non fournie' - -#- if gestionnaire_signed_in? + -# - if gestionnaire_signed_in? = render partial: '/dossiers/modal_historique' diff --git a/app/views/dossiers/_pieces_justificatives.html.haml b/app/views/dossiers/_pieces_justificatives.html.haml index 7b703c2b1..a9fff2bc7 100644 --- a/app/views/dossiers/_pieces_justificatives.html.haml +++ b/app/views/dossiers/_pieces_justificatives.html.haml @@ -26,9 +26,9 @@ - if type_de_piece_justificative.api_entreprise %span.text-success Nous l'avons récupéré pour vous. - elsif !(@pj = @facade.dossier.retrieve_last_piece_justificative_by_type(type_de_piece_justificative.id)).nil? - -#- if user_signed_in? - -# = 'Pièce fournie' - -#- elsif gestionnaire_signed_in? + -# - if user_signed_in? + -# = 'Pièce fournie' + -# - elsif gestionnaire_signed_in? %a{ href: "#{@pj.content_url}", target: '_blank' } Consulter %span{style:'margin-left:12px'} \- @@ -41,5 +41,5 @@ - else = 'Pièce non fournie' - -#- if gestionnaire_signed_in? + -# - if gestionnaire_signed_in? = render partial: '/dossiers/modal_historique' diff --git a/app/views/dossiers/_show.html.haml b/app/views/dossiers/_show.html.haml index 4874bedb6..61ab17978 100644 --- a/app/views/dossiers/_show.html.haml +++ b/app/views/dossiers/_show.html.haml @@ -6,9 +6,9 @@ .row.etape.etape_2 = render partial: '/dossiers/etapes/etape2' - -#- if @facade.procedure.module_api_carto.use_api_carto? - -# .row.etape.etape_3 - -# = render partial: '/dossiers/etapes/etape3' + -# - if @facade.procedure.module_api_carto.use_api_carto? + -# .row.etape.etape_3 + -# = render partial: '/dossiers/etapes/etape3' -# - -#.row.etape.etape_4 - -# = render partial: '/dossiers/etapes/etape4' + -# .row.etape.etape_4 + -# = render partial: '/dossiers/etapes/etape4' diff --git a/app/views/users/description/_show.html.haml b/app/views/users/description/_show.html.haml index 5a5309090..7741315b5 100644 --- a/app/views/users/description/_show.html.haml +++ b/app/views/users/description/_show.html.haml @@ -14,7 +14,7 @@ %h2.text-info = @dossier.procedure.libelle - -#TODO use form_for + -# TODO use form_for = form_tag(url_for({controller: 'users/description', action: :update, dossier_id: @dossier.id}), class: 'form', method: 'POST', multipart: true) do - unless @champs.nil? #liste_champs diff --git a/app/views/users/dossiers/index.html.haml b/app/views/users/dossiers/index.html.haml index 77d25112b..a3baaba4b 100644 --- a/app/views/users/dossiers/index.html.haml +++ b/app/views/users/dossiers/index.html.haml @@ -7,8 +7,8 @@ .carret-down Dossiers .col-lg-2.col-md-2.col-sm-2.col-xs-2.count - -#0 - -#dossiers + -# 0 + -# dossiers .body = smart_listing_render :dossiers diff --git a/app/views/users/passwords/edit.html.haml b/app/views/users/passwords/edit.html.haml index 204370695..45c85be70 100644 --- a/app/views/users/passwords/edit.html.haml +++ b/app/views/users/passwords/edit.html.haml @@ -1,30 +1,30 @@ --#

Sign up

+-#

Sign up

-# --#<%= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %> --# <%= devise_error_messages! %> +-# <%= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %> +-# <%= devise_error_messages! %> -# --#
--# <%= f.label :email %>
--# <%= f.email_field :email, autofocus: true %> --#
+-#
+-# <%= f.label :email %>
+-# <%= f.email_field :email, autofocus: true %> +-#
-# --#
--# <%= f.label :password %> --# <% if @validatable %> --# (<%= @minimum_password_length %> characters minimum) --# <% end %>
--# <%= f.password_field :password, autocomplete: "off" %> --#
+-#
+-# <%= f.label :password %> +-# <% if @validatable %> +-# (<%= @minimum_password_length %> characters minimum) +-# <% end %>
+-# <%= f.password_field :password, autocomplete: "off" %> +-#
-# --#
--# <%= f.label :password_confirmation %>
--# <%= f.password_field :password_confirmation, autocomplete: "off" %> --#
+-#
+-# <%= f.label :password_confirmation %>
+-# <%= f.password_field :password_confirmation, autocomplete: "off" %> +-#
-# --#
--# <%= f.submit "Sign up" %> --#
--#<% end %> +-#
+-# <%= f.submit "Sign up" %> +-#
+-# <% end %> = devise_error_messages! diff --git a/app/views/users/passwords/new.html.haml b/app/views/users/passwords/new.html.haml index 79e45d45c..eff778110 100644 --- a/app/views/users/passwords/new.html.haml +++ b/app/views/users/passwords/new.html.haml @@ -1,30 +1,30 @@ --#

Sign up

+-#

Sign up

-# --#<%= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %> --# <%= devise_error_messages! %> +-# <%= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %> +-# <%= devise_error_messages! %> -# --#
--# <%= f.label :email %>
--# <%= f.email_field :email, autofocus: true %> --#
+-#
+-# <%= f.label :email %>
+-# <%= f.email_field :email, autofocus: true %> +-#
-# --#
--# <%= f.label :password %> --# <% if @validatable %> --# (<%= @minimum_password_length %> characters minimum) --# <% end %>
--# <%= f.password_field :password, autocomplete: "off" %> --#
+-#
+-# <%= f.label :password %> +-# <% if @validatable %> +-# (<%= @minimum_password_length %> characters minimum) +-# <% end %>
+-# <%= f.password_field :password, autocomplete: "off" %> +-#
-# --#
--# <%= f.label :password_confirmation %>
--# <%= f.password_field :password_confirmation, autocomplete: "off" %> --#
+-#
+-# <%= f.label :password_confirmation %>
+-# <%= f.password_field :password_confirmation, autocomplete: "off" %> +-#
-# --#
--# <%= f.submit "Sign up" %> --#
--#<% end %> +-#
+-# <%= f.submit "Sign up" %> +-#
+-# <% end %> = devise_error_messages! diff --git a/app/views/users/registrations/new.html.haml b/app/views/users/registrations/new.html.haml index 9a0fd5934..dc8ba009f 100644 --- a/app/views/users/registrations/new.html.haml +++ b/app/views/users/registrations/new.html.haml @@ -1,30 +1,30 @@ --#

Sign up

+-#

Sign up

-# --#<%= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %> --# <%= devise_error_messages! %> +-# <%= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %> +-# <%= devise_error_messages! %> -# --#
--# <%= f.label :email %>
--# <%= f.email_field :email, autofocus: true %> --#
+-#
+-# <%= f.label :email %>
+-# <%= f.email_field :email, autofocus: true %> +-#
-# --#
--# <%= f.label :password %> --# <% if @validatable %> --# (<%= @minimum_password_length %> characters minimum) --# <% end %>
--# <%= f.password_field :password, autocomplete: "off" %> --#
+-#
+-# <%= f.label :password %> +-# <% if @validatable %> +-# (<%= @minimum_password_length %> characters minimum) +-# <% end %>
+-# <%= f.password_field :password, autocomplete: "off" %> +-#
-# --#
--# <%= f.label :password_confirmation %>
--# <%= f.password_field :password_confirmation, autocomplete: "off" %> --#
+-#
+-# <%= f.label :password_confirmation %>
+-# <%= f.password_field :password_confirmation, autocomplete: "off" %> +-#
-# --#
--# <%= f.submit "Sign up" %> --#
--#<% end %> +-#
+-# <%= f.submit "Sign up" %> +-#
+-# <% end %> = devise_error_messages!