mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-21 00:46:27 +02:00
Fix all templates indentations
This commit is contained in:
parent
c6050f06aa
commit
c3c5a2837b
33 changed files with 213 additions and 385 deletions
|
@ -17,10 +17,10 @@
|
|||
</h1>
|
||||
<ol class="breadcrumb">
|
||||
<li>
|
||||
<i class="fa fa-dashboard"></i> <a href="<?php echo \Router::url('Dashboard', 'show'); ?>">Dashboard</a>
|
||||
<i class="fa fa-dashboard"></i> <a href="<?php echo \descartes\Router::url('Dashboard', 'show'); ?>">Dashboard</a>
|
||||
</li>
|
||||
<li>
|
||||
<i class="fa fa-terminal"></i> <a href="<?php echo \Router::url('Command', 'list'); ?>">Commandes</a>
|
||||
<i class="fa fa-terminal"></i> <a href="<?php echo \descartes\Router::url('Command', 'list'); ?>">Commandes</a>
|
||||
</li>
|
||||
<li class="active">
|
||||
<i class="fa fa-plus"></i> Nouveau
|
||||
|
@ -37,7 +37,7 @@
|
|||
<h3 class="panel-title"><i class="fa fa-terminal fa-fw"></i> Ajout d'une nouvelle commande</h3>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<form action="<?php echo \Router::url('Command', 'create', ['csrf' => $_SESSION['csrf']]);?>" method="POST">
|
||||
<form action="<?php echo \descartes\Router::url('Command', 'create', ['csrf' => $_SESSION['csrf']]);?>" method="POST">
|
||||
<div class="form-group">
|
||||
<label>Nom commande</label>
|
||||
<div class="form-group">
|
||||
|
@ -58,7 +58,7 @@
|
|||
<input name="admin" type="radio" value="0" required /> Non
|
||||
</div>
|
||||
</div>
|
||||
<a class="btn btn-danger" href="<?php echo \Router::url('Command', 'list'); ?>">Annuler</a>
|
||||
<a class="btn btn-danger" href="<?php echo \descartes\Router::url('Command', 'list'); ?>">Annuler</a>
|
||||
<input type="submit" class="btn btn-success" value="Enregistrer la commande" />
|
||||
</form>
|
||||
</div>
|
||||
|
|
|
@ -17,10 +17,10 @@
|
|||
</h1>
|
||||
<ol class="breadcrumb">
|
||||
<li>
|
||||
<i class="fa fa-dashboard"></i> <a href="<?php echo \Router::url('Dashboard', 'show'); ?>">Dashboard</a>
|
||||
<i class="fa fa-dashboard"></i> <a href="<?php echo \descartes\Router::url('Dashboard', 'show'); ?>">Dashboard</a>
|
||||
</li>
|
||||
<li>
|
||||
<i class="fa fa-terminal"></i> <a href="<?php echo \Router::url('Command', 'list'); ?>">Commandes</a>
|
||||
<i class="fa fa-terminal"></i> <a href="<?php echo \descartes\Router::url('Command', 'list'); ?>">Commandes</a>
|
||||
</li>
|
||||
<li class="active">
|
||||
<i class="fa fa-edit"></i> Modifier
|
||||
|
@ -37,11 +37,8 @@
|
|||
<h3 class="panel-title"><i class="fa fa-edit fa-fw"></i>Modification de commandes</h3>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<form action="<?php echo \Router::url('Command', 'update', ['csrf' => $_SESSION['csrf']]);?>" method="POST">
|
||||
<?php
|
||||
foreach ($commands as $command)
|
||||
{
|
||||
?>
|
||||
<form action="<?php echo \descartes\Router::url('Command', 'update', ['csrf' => $_SESSION['csrf']]); ?>" method="POST">
|
||||
<?php foreach ($commands as $command) { ?>
|
||||
<input type="hidden" value="<?php $this->s($command['id']); ?>" name="commands[<?php $this->s($command['id']); ?>][id]" />
|
||||
<div class="form-group">
|
||||
<label>Nom commande</label>
|
||||
|
@ -64,10 +61,8 @@
|
|||
</div>
|
||||
</div>
|
||||
<hr/>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<a class="btn btn-danger" href="<?php echo \Router::url('Command', 'list'); ?>">Annuler</a>
|
||||
<?php } ?>
|
||||
<a class="btn btn-danger" href="<?php echo \descartes\Router::url('Command', 'list'); ?>">Annuler</a>
|
||||
<input type="submit" class="btn btn-success" value="Enregistrer la commande" />
|
||||
</form>
|
||||
</div>
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
</h1>
|
||||
<ol class="breadcrumb">
|
||||
<li>
|
||||
<i class="fa fa-dashboard"></i> <a href="<?php echo \Router::url('Dashboard', 'show'); ?>">Dashboard</a>
|
||||
<i class="fa fa-dashboard"></i> <a href="<?php echo \descartes\Router::url('Dashboard', 'show'); ?>">Dashboard</a>
|
||||
</li>
|
||||
<li class="active">
|
||||
<i class="fa fa-terminal"></i> Commandes
|
||||
|
@ -50,10 +50,7 @@
|
|||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
foreach ($commands as $command)
|
||||
{
|
||||
?>
|
||||
<?php foreach ($commands as $command) { ?>
|
||||
<tr>
|
||||
<td><?php $this->s($command['id']); ?></td>
|
||||
<td><?php $this->s($command['name']); ?></td>
|
||||
|
@ -61,22 +58,20 @@
|
|||
<td><?php echo $command['admin'] ? 'Oui' : 'Non' ; ?></td>
|
||||
<td><input type="checkbox" name="ids[]" value="<?php $this->s($command['id']); ?>"></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div>
|
||||
<div class="col-xs-6 no-padding">
|
||||
<a class="btn btn-success" href="<?php echo \Router::url('Command', 'add'); ?>"><span class="fa fa-plus"></span> Ajouter une commande</a>
|
||||
<a class="btn btn-success" href="<?php echo \descartes\Router::url('Command', 'add'); ?>"><span class="fa fa-plus"></span> Ajouter une commande</a>
|
||||
</div>
|
||||
<?php if ($commands) { ?>
|
||||
<div class="text-right col-xs-6 no-padding">
|
||||
<strong>Action pour la séléction :</strong>
|
||||
<button class="btn btn-default" type="submit" formaction="<?php echo \Router::url('Command', 'edit'); ?>"><span class="fa fa-edit"></span> Modifier</button>
|
||||
<button class="btn btn-default" type="submit" formaction="<?php echo \Router::url('Command', 'delete', ['csrf' => $_SESSION['csrf']]); ?>"><span class="fa fa-trash-o"></span> Supprimer</button>
|
||||
<button class="btn btn-default" type="submit" formaction="<?php echo \descartes\Router::url('Command', 'edit'); ?>"><span class="fa fa-edit"></span> Modifier</button>
|
||||
<button class="btn btn-default" type="submit" formaction="<?php echo \descartes\Router::url('Command', 'delete', ['csrf' => $_SESSION['csrf']]); ?>"><span class="fa fa-trash-o"></span> Supprimer</button>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue