ajout pdfkit dans production
This commit is contained in:
@@ -351,8 +351,8 @@
|
||||
<br />
|
||||
<a class="btn btn-default" href="/rdf_rapport/${rapport.no_id}">
|
||||
<span class="glyphicon glyphicon-file"></span> Aperçu PDF</a>
|
||||
<button class="btn btn-warning" type="submit" name="form.generate">
|
||||
<span class="glyphicon glyphicon-file"></span> Générer PDF</button>
|
||||
<button id="generateButton" class="btn btn-warning" type="submit" name="form.generate">
|
||||
<i class="glyphicon glyphicon-refresh"></i> Générer PDF</button>
|
||||
<a class="btn btn-primary" href="/rdf_bill/${rapport.no_id}">
|
||||
<span class="glyphicon glyphicon-fith-listle"></span> Générer Facture</a>
|
||||
</div>
|
||||
@@ -366,6 +366,13 @@
|
||||
|
||||
</div>
|
||||
<div metal:fill-slot="additional_scripts">
|
||||
<script type="text/javascript">
|
||||
$('#generateButton').on('click', function(){
|
||||
$('i.gly-spin').removeClass('gly-spin');
|
||||
$('i').addClass('gly-spin');
|
||||
});
|
||||
</script>
|
||||
|
||||
<!-- JSignature plugin -->
|
||||
<script src="${request.static_url('mondumas:static/dist/jSignature/libs/jSignature.min.js')}"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
<!-- Bootstrap + jQuery JavaScript plugins) -->
|
||||
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
|
||||
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
|
||||
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
|
||||
|
||||
<!-- Bootstrap moment plugin -->
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/moment.js/2.17.1/moment.min.js"></script>
|
||||
|
||||
Reference in New Issue
Block a user