diff --git a/app/assets/javascripts/action_btn_rules.js b/app/assets/javascripts/action_btn_rules.js new file mode 100644 index 000000000..7202d53b6 --- /dev/null +++ b/app/assets/javascripts/action_btn_rules.js @@ -0,0 +1,13 @@ +$(document).on('page:load', init_action_btn_rules); +$(document).ready(init_action_btn_rules); + +function init_action_btn_rules() { + $('.btn-send').click(function () { + $(this).addClass("disabled"); + this.addEventListener("click", lock_btn); + }); + + function lock_btn(event) { + event.preventDefault(); + } +} diff --git a/app/assets/stylesheets/dossier_show.scss b/app/assets/stylesheets/dossier_show.scss index f4ecf7e29..dc2f76f1f 100644 --- a/app/assets/stylesheets/dossier_show.scss +++ b/app/assets/stylesheets/dossier_show.scss @@ -33,6 +33,7 @@ .file { padding-right: 70px; text-align: center; + margin-bottom: 20px; .link { span { width: 100%; diff --git a/app/views/backoffice/dossiers/show.html.haml b/app/views/backoffice/dossiers/show.html.haml index 16d2e9d01..8b67c2bf4 100644 --- a/app/views/backoffice/dossiers/show.html.haml +++ b/app/views/backoffice/dossiers/show.html.haml @@ -31,6 +31,13 @@ .row %div.col-lg-12.col-md-12.content = last_comment.body.html_safe + - if file = last_comment.piece_justificative + .row + %div.col-lg-12.col-md-12.file + = link_to file.content_url, class: 'link', target: '_blank' do + %span.fa.fa-file + %div + = file.original_filename .row .col-lg-12.col-md-12 %div.new-action