finition générer dossier à partir d'un email
This commit is contained in:
@@ -1,45 +1,36 @@
|
||||
<metal:block use-macro="main_template">
|
||||
<div metal:fill-slot="content">
|
||||
<br />
|
||||
<div metal:fill-slot="content">
|
||||
|
||||
<div tal:condition="message" tal:content="message" class="alert alert-success" />
|
||||
|
||||
<div class="row">
|
||||
<form id="demandes_form" action="${url}" class="form-horizontal" method="post"
|
||||
data-fv-framework="bootstrap"
|
||||
data-fv-icon-valid="glyphicon glyphicon-ok"
|
||||
data-fv-icon-invalid="glyphicon glyphicon-remove"
|
||||
data-fv-icon-validating="glyphicon glyphicon-refresh">
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-4" for="societe">Société</label>
|
||||
<div class="col-xs-8">
|
||||
<select class="form-control" id="societe" name="societe" onChange="$('#demandes_form').submit()" >
|
||||
<div tal:repeat="item societes">
|
||||
<option value="${item}" tal:attributes="selected societe==item and 'selected' or None">${item}</option>
|
||||
</div>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-offset-4 col-sm-8">
|
||||
<a href="${request.application_url}/" class="btn btn-default" role="button">
|
||||
<span class="glyphicon glyphicon-chevron-left"></span> Retour</a>
|
||||
<button class="btn btn-success" type="submit" name="form.submitted" tal:condition="msglus">
|
||||
<span class="glyphicon glyphicon-download-alt"></span> Générer les dossiers</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<table id="demandes" class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Société</th>
|
||||
<th>Date</th>
|
||||
<th>Expéditeur</th>
|
||||
<th>Objet</th>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
</div>
|
||||
<div class="row">
|
||||
<table id="demandes" class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Date</th>
|
||||
<th>Expéditeur</th>
|
||||
<th>Destinataire</th>
|
||||
<th>Objet</th>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
<form id="demandes_form" action="${url}" class="form-horizontal" method="post"
|
||||
data-fv-framework="bootstrap"
|
||||
data-fv-icon-valid="glyphicon glyphicon-ok"
|
||||
data-fv-icon-invalid="glyphicon glyphicon-remove"
|
||||
data-fv-icon-validating="glyphicon glyphicon-refresh">
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-sm-offset-4 col-sm-8">
|
||||
<a href="${request.application_url}/" class="btn btn-default btn-lg" role="button">
|
||||
<span class="glyphicon glyphicon-chevron-left"></span> Retour</a>
|
||||
<button id="generateButton" class="btn btn-success btn-lg" type="submit" name="form.submitted" tal:condition="msglus">
|
||||
<i class="glyphicon glyphicon-refresh"></i> Générer les dossiers</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<br />
|
||||
@@ -60,12 +51,27 @@
|
||||
url: 'https://cdn.datatables.net/plug-ins/1.10.16/i18n/French.json'
|
||||
},
|
||||
columnDefs: [
|
||||
{ className: "text-right", "targets": [0] },
|
||||
{ className: "text-center", "targets": [0] },
|
||||
],
|
||||
createdRow: function( row, data, dataIndex ) {
|
||||
if ( data[0] == "ME" ) {
|
||||
$('td', row).eq(0).css('background-color', 'Gold');
|
||||
} else if ( data[0] == "PE" ) {
|
||||
$('td', row).eq(0).css('background-color', 'LightYellow');
|
||||
} else if ( data[0] == "PL" ) {
|
||||
$('td', row).eq(0).css('background-color', 'LightGreen');
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
$('#generateButton').on('click', function(){
|
||||
$('i.gly-spin').removeClass('gly-spin');
|
||||
$('i').addClass('gly-spin');
|
||||
});
|
||||
</script>
|
||||
|
||||
</div><!-- content -->
|
||||
</metal:block>
|
||||
|
||||
Reference in New Issue
Block a user