dossier: add download icon to attestation link
This commit is contained in:
parent
27727eabf3
commit
a7cb4b6514
5 changed files with 16 additions and 2 deletions
1
app/assets/images/icons/download-white.svg
Normal file
1
app/assets/images/icons/download-white.svg
Normal file
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="20" viewBox="0 0 16 20"><g fill="none" fill-rule="evenodd"><path d="M11.5 8H15l-7 7-7-7h3.5V1h7zM1 19h14" stroke="#FFF" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M-4-2h24v24H-4z"/></g></svg>
|
After Width: | Height: | Size: 281 B |
|
@ -53,6 +53,10 @@
|
|||
background-image: image-url("icons/attachment.svg");
|
||||
}
|
||||
|
||||
&.download {
|
||||
background-image: image-url("icons/download-white.svg");
|
||||
}
|
||||
|
||||
&.lock {
|
||||
background-image: image-url("icons/lock.svg");
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -39,7 +39,10 @@
|
|||
%blockquote= dossier.motivation
|
||||
|
||||
- if dossier.attestation.present?
|
||||
= link_to 'Télécharger l’attestation', attestation_dossier_path(dossier), target: '_blank', class: 'button primary'
|
||||
.action
|
||||
= link_to attestation_dossier_path(dossier), target: '_blank', class: 'button primary' do
|
||||
%span.icon.download
|
||||
Télécharger l’attestation
|
||||
|
||||
- elsif dossier.refuse?
|
||||
.refuse
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
%span.icon.search
|
||||
%span.icon.sign-out
|
||||
%span.icon.info
|
||||
%span.icon.download
|
||||
%span.icon.frown
|
||||
%span.icon.meh
|
||||
%span.icon.smile
|
||||
|
|
Loading…
Reference in a new issue