initial upload
This commit is contained in:
70
aem_gestion/templates/parametres/ants_tables.pt
Normal file
70
aem_gestion/templates/parametres/ants_tables.pt
Normal file
@@ -0,0 +1,70 @@
|
||||
<metal:block use-macro="main_template">
|
||||
<div metal:fill-slot="content">
|
||||
|
||||
<div class="alert alert-danger" tal:condition="message" tal:content="message" />
|
||||
|
||||
<div class="row">
|
||||
<form method="POST" id="frm" class="form-horizontal">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-md-1">Table</label>
|
||||
<div class="col-md-3">
|
||||
<select class="form-control" id="table" name="table" onChange="$('#frm').submit()">
|
||||
<tal:block tal:repeat="item tables">
|
||||
<option value="${item}" tal:attributes="selected table==item and 'selected' or None">${item}</option>
|
||||
</tal:block>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<table class="table table-striped table-bordered table-condensed" tal:condition="table=='DEPARTEMENTS' or table=='AUTORITES'">
|
||||
<tr>
|
||||
<th>Code</th>
|
||||
<th>Nom</th>
|
||||
</tr>
|
||||
<tr tal:repeat="item items">
|
||||
<td>${item.code}</td>
|
||||
<td>${item.nom}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table class="table table-striped table-bordered table-condensed" tal:condition="table=='PAYS'">
|
||||
<tr>
|
||||
<th>Pays</th>
|
||||
</tr>
|
||||
<tr tal:repeat="item items">
|
||||
<td>${item}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div class="row">
|
||||
<form id="table-form" class="form-horizontal" action="${url}" 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" tal:condition="items and logged_in=='CAO'">
|
||||
<div class="col-md-offset-1 col-md-8">
|
||||
<p class="text-danger">Attention : Ne pas importer pendant les heures d'ouverture des agences !</p>
|
||||
<div class="form-group" tal:condition="table=='PAYS'">
|
||||
<button class="btn btn-primary" type="submit" name="import.pays">
|
||||
<span class="glyphicon glyphicon-import"></span> Importer dans WS_PAYS</button>
|
||||
</div>
|
||||
<div class="form-group" tal:condition="table=='DEPARTEMENTS'">
|
||||
<button class="btn btn-primary" type="submit" name="import.dept">
|
||||
<span class="glyphicon glyphicon-import"></span> Importer dans WS_DEPARTEMENTS</button>
|
||||
<button class="btn btn-primary" type="submit" name="import.communes">
|
||||
<span class="glyphicon glyphicon-import"></span> Importer dans WS_COMMUNES</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<br />
|
||||
<br />
|
||||
|
||||
</div><!-- content -->
|
||||
</metal:block>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user