Merge pull request #3459 from betagouv/improve-upload-ui

Amélioration des indicateurs lors de l'envoi de PJ
This commit is contained in:
LeSim 2019-02-18 16:28:39 +01:00 committed by GitHub
commit 0bb4abb3b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 7 deletions

View file

@ -1,12 +1,13 @@
@import "colors";
.direct-upload {
display: inline-block;
position: relative;
padding: 2px 4px;
padding: 4px 15px;
margin: 0 3px 3px 0;
border: 1px solid rgba(0, 0, 0, 0.3);
border: 1px solid $border-grey;
border-radius: 3px;
font-size: 11px;
line-height: 13px;
font-size: 14px;
}
.direct-upload--pending {

View file

@ -111,6 +111,10 @@
}
}
.direct-upload {
margin-bottom: 2 * $default-padding;
}
.add-row {
margin-bottom: 2 * $default-padding;
}

View file

@ -75,18 +75,18 @@
name: :save_draft,
value: true,
class: 'button send secondary',
data: { disable: true }
data: { 'disable-with': "Envoi en cours…" }
- if dossier.can_transition_to_en_construction?
= f.button 'Soumettre le dossier',
class: 'button send primary',
disabled: !current_user.owns?(dossier),
data: { disable: true }
data: { 'disable-with': "Envoi en cours…" }
- else
= f.button 'Enregistrer les modifications du dossier',
class: 'button send primary',
data: { disable: true }
data: { 'disable-with': "Envoi en cours…" }
- if dossier.brouillon? && !current_user.owns?(dossier)
.send-notice.invite-cannot-submit