dossier: add download icon to attestation link

This commit is contained in:
Pierre de La Morinerie 2018-09-17 15:06:50 +02:00
parent 27727eabf3
commit a7cb4b6514
5 changed files with 16 additions and 2 deletions

View 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

View file

@ -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");
}

View file

@ -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;
}
}

View file

@ -39,7 +39,10 @@
%blockquote= dossier.motivation
- if dossier.attestation.present?
= link_to 'Télécharger lattestation', 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 lattestation
- elsif dossier.refuse?
.refuse

View file

@ -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