-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
263 additions
and
45 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
@import "colors"; | ||
|
||
#demarches-index { | ||
margin-bottom: 30px; | ||
} | ||
|
||
.page-title { | ||
margin-top: 30px; | ||
margin-bottom: 30px; | ||
} | ||
|
||
.list-header { | ||
color: $grey; | ||
font-weight: bold; | ||
margin-bottom: 10px; | ||
} | ||
|
||
.demarche-links { | ||
border-top: 1px solid $border-grey; | ||
margin-bottom: 30px; | ||
} | ||
|
||
.demarche-link { | ||
display: block; | ||
padding: 10px; | ||
border-bottom: 1px solid $border-grey; | ||
width: 100%; | ||
|
||
&:hover { | ||
background-color: $lighter-blue; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
@import "constants"; | ||
|
||
#dossier-show { | ||
margin-bottom: 30px; | ||
|
||
.sub-header { | ||
.label { | ||
float: right; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
@import "placeholders"; | ||
@import "colors"; | ||
|
||
.patron { | ||
p { | ||
margin-bottom: 20px; | ||
} | ||
|
||
.icon.download { | ||
background-color: $blue; | ||
box-shadow: 0px 0px 1px 2px $blue; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
module NewUser | ||
class DemarchesController < UserController | ||
def index | ||
@previous_demarches_still_active = current_user | ||
.dossiers | ||
.includes(:procedure) | ||
.map(&:procedure) | ||
.uniq | ||
.select { |p| p.publiee? } | ||
|
||
@popular_demarches = Procedure | ||
.select("procedures.*, COUNT(*) AS procedures_count") | ||
.joins(:dossiers) | ||
.publiees | ||
.where(dossiers: { created_at: 7.days.ago..Time.now }) | ||
.group("procedures.id") | ||
.order("procedures_count DESC") | ||
.limit(5) | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
- content_for(:title, "Démarches") | ||
|
||
- content_for :footer do | ||
= render partial: "new_user/dossiers/index_footer" | ||
|
||
#demarches-index | ||
.container | ||
%h1.page-title Démarches | ||
|
||
- if @previous_demarches_still_active.present? | ||
%h2.list-header SUR LESQUELLES VOUS AVEZ DÉJÀ DÉPOSÉ UN DOSSIER | ||
%ul.demarche-links | ||
- @previous_demarches_still_active.each do |demarche| | ||
%li | ||
= link_to(demarche.libelle, commencer_url(procedure_path: demarche.path), class: "demarche-link") | ||
|
||
- if @popular_demarches.present? | ||
%h2.list-header LES PLUS POPULAIRES | ||
%ul.demarche-links | ||
- @popular_demarches.each do |demarche| | ||
%li | ||
= link_to(demarche.libelle, commencer_url(procedure_path: demarche.path), class: "demarche-link") | ||
|
||
%h2.list-header TOUTES LES DÉMARCHES | ||
= link_to("Voir l'intégralité des démarches disponibles", LISTE_DES_DEMARCHES_URL, class: "button") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
= link_to "Accessibilité", accessibilite_index_path, :class => "footer-link" | ||
– | ||
= link_to "CGU", CGU_URL, :class => "footer-link", :target => "_blank", rel: "noopener noreferrer" | ||
– | ||
= link_to "Mentions légales", MENTIONS_LEGALES_URL, :class => "footer-link", :target => "_blank", rel: "noopener noreferrer" | ||
– | ||
= contact_link "Contact technique", class: "footer-link", dossier_id: dossier&.id |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
%footer.dossier-footer | ||
.container | ||
.footer-row.footer-bottom-line | ||
= render partial: "new_user/dossiers/general_footer_row", locals: { dossier: nil } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
- content_for(:title, "Demande · Dossier nº #{@dossier.id} (#{@dossier.procedure.libelle})") | ||
|
||
- content_for :footer do | ||
= render partial: "new_user/dossiers/dossier_footer", locals: { dossier: @dossier } | ||
|
||
#dossier-show | ||
= render partial: 'new_user/dossiers/show/header', locals: { dossier: @dossier } | ||
|
||
|
@@ -8,3 +11,4 @@ | |
.container | ||
- if [email protected]_only? | ||
= link_to "Modifier le dossier", modifier_dossier_path(@dossier), class: 'button primary edit-form' | ||
.clearfix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,13 @@ | ||
- content_for(:title, "Résumé · Dossier nº #{@dossier.id} (#{@dossier.procedure.libelle})") | ||
|
||
- content_for :footer do | ||
= render partial: "new_user/dossiers/dossier_footer", locals: { dossier: @dossier } | ||
|
||
#dossier-show | ||
= render partial: 'new_user/dossiers/show/header', locals: { dossier: @dossier } | ||
|
||
.container | ||
= render partial: 'new_user/dossiers/show/status_overview', locals: { dossier: @dossier } | ||
|
||
- latest_message = @dossier.commentaires.last | ||
- if latest_message.present? | ||
.latest-message-section | ||
%h3.tab-title Dernier message | ||
|
||
.message.inverted-background | ||
= render partial: "shared/dossiers/messages/message", locals: { commentaire: latest_message, connected_user: current_user, messagerie_seen_at: nil } | ||
|
||
= link_to commentaire_answer_action(latest_message, current_user), messagerie_dossier_url(@dossier, anchor: 'new_commentaire'), class: 'button send' | ||
- if [email protected]? | ||
= render partial: 'new_user/dossiers/show/latest_message', locals: { dossier: @dossier } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
- latest_message = dossier.commentaires.last | ||
- if latest_message.present? | ||
.latest-message-section | ||
%h3.tab-title Dernier message | ||
|
||
.message.inverted-background | ||
= render partial: "shared/dossiers/messages/message", locals: { commentaire: latest_message, connected_user: current_user, messagerie_seen_at: nil } | ||
|
||
= link_to commentaire_answer_action(latest_message, current_user), messagerie_dossier_url(dossier, anchor: 'new_commentaire'), class: 'button send' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -292,6 +292,7 @@ | |
end | ||
end | ||
resource :feedback, only: [:create] | ||
get 'demarches' => 'demarches#index' | ||
end | ||
|
||
# | ||
|
Oops, something went wrong.