remove location
This commit is contained in:
parent
bd2c6f25f5
commit
c74ba5ed85
17 changed files with 39 additions and 287 deletions
|
|
@ -2,7 +2,6 @@
|
|||
<ul>
|
||||
<li class="{if $current == 'index'}current{/if}"><a href="{plugin_url}">Stock</a></li>
|
||||
<li class="{if $current == 'categories'}current{/if}"><a href="{plugin_url file="categories/index.php"}">Catégories</a></li>
|
||||
<li class="{if $current == 'localisations'}current{/if}"><a href="{plugin_url file="localisations/index.php"}">Localisations</a></li>
|
||||
<li class="{if $current == 'entrees_definitives'}current{/if}"><a href="{plugin_url file="entrees/definitives/index.php"}">Entrées définitives</a></li>
|
||||
<li class="{if $current == 'entrees_provisoires'}current{/if}"><a href="{plugin_url file="entrees_provisoires.php"}">Entrées provisoires</a></li>
|
||||
<li class="{if $current == 'sorties_definitives'}current{/if}"><a href="{plugin_url file="sorties_definitives.php"}">Sorties définitives</a></li>
|
||||
|
|
|
|||
|
|
@ -28,14 +28,6 @@
|
|||
<option value="{$cat.id}"{if $selected_cat == $cat.id} selected="selected"{/if}>{$cat.name}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</dd>
|
||||
<dt><label for="f_cat">Localisation</label> <b>(obligatoire)</b></dt>
|
||||
<dd>
|
||||
<select name="location_id" id="f_loc">
|
||||
{foreach from=$locs item="loc"}
|
||||
<option value="{$loc.id}"{if $selected_loc == $loc.id} selected="selected"{/if}>{$loc.name}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</dd>
|
||||
{input type="text" name="designation" label="Désignation" required=true maxlength="255"}
|
||||
</dl>
|
||||
|
|
|
|||
|
|
@ -2,4 +2,22 @@
|
|||
|
||||
{include file="%s_nav.tpl"|args:$plugin_tpl current="index"}
|
||||
|
||||
<table class="list">
|
||||
<caption>Matériels</caption>
|
||||
<thead>
|
||||
<th>Nombre en stock</th>
|
||||
<td>Categorie</td>
|
||||
<td>Désignation</td>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach from=$eqmts item="eqmt"}
|
||||
<tr>
|
||||
<th>{$eqmt.number_of_equipments}</th>
|
||||
<th>{$eqmt.category.name}</th>
|
||||
<th>{$eqmt.designation}</th>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
{include file="admin/_foot.tpl"}
|
||||
|
|
|
|||
|
|
@ -1,38 +0,0 @@
|
|||
{include file="admin/_head.tpl" title="%s"|args:$plugin.nom current="plugin_%s"|args:$plugin.id}
|
||||
|
||||
{include file="%s_nav.tpl"|args:$plugin_tpl current="localisations"}
|
||||
|
||||
<form method="post" action="{$self_url}">
|
||||
<fieldset>
|
||||
<legend>Ajouter une localisation</legend>
|
||||
{form_errors}
|
||||
<dl>
|
||||
{input type="text" name="name" label="Nom" required=true maxlength="100"}
|
||||
</dl>
|
||||
<p class="submit">
|
||||
{csrf_field key=$csrf_key}
|
||||
{button type="submit" name="save" label="Ajouter" shape="right" class="main"}
|
||||
</p>
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
<table class="list">
|
||||
<thead>
|
||||
<th>Nom</th>
|
||||
<td></td>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach from=$list item="loc"}
|
||||
<tr>
|
||||
<th>{$loc.name}</th>
|
||||
<td class="actions">
|
||||
{linkbutton shape="upload" label="Liste des matériels" href="materiels_par_localisation.php?id=%d"|args:$loc.id}
|
||||
{linkbutton shape="edit" label="Modifier" href="modifier_localisation.php?id=%d"|args:$loc.id}
|
||||
{linkbutton shape="delete" label="Supprimer" href="supprimer_localisation.php?id=%d"|args:$loc.id}
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
{include file="admin/_foot.tpl"}
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
{include file="admin/_head.tpl" title="%s"|args:$plugin.nom current="plugin_%s"|args:$plugin.id}
|
||||
|
||||
{include file="%s_nav.tpl"|args:$plugin_tpl current="localisations"}
|
||||
|
||||
{include file="admin/_foot.tpl"}
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
{include file="admin/_head.tpl" title="%s"|args:$plugin.nom current="plugin_%s"|args:$plugin.id}
|
||||
|
||||
{include file="%s_nav.tpl"|args:$plugin_tpl current="localisations"}
|
||||
|
||||
<form method="post" action="{$self_url}" data-focus="1">
|
||||
{form_errors}
|
||||
<fieldset>
|
||||
<legend>Modifier cette localisation</legend>
|
||||
<dl>
|
||||
{input type="text" name="name" label="Nom" required=true source=$l maxlength="100"}
|
||||
</dl>
|
||||
</fieldset>
|
||||
<p class="submit">
|
||||
{csrf_field key=$csrf_key}
|
||||
{button type="submit" name="save" label="Enregistrer" shape="right" class="main"}
|
||||
{linkbutton label="Annuler" shape="export" href=$cancel_link}
|
||||
</p>
|
||||
</form>
|
||||
|
||||
{include file="admin/_foot.tpl"}
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
{include file="admin/_head.tpl" title="%s"|args:$plugin.nom current="plugin_%s"|args:$plugin.id}
|
||||
|
||||
{include file="%s_nav.tpl"|args:$plugin_tpl current="localisations"}
|
||||
|
||||
{include file="%scommon/delete_form.tpl"|args:$plugin_tpl
|
||||
legend="Supprimer cette localisation de matériels ?"
|
||||
warning="Êtes-vous sûr de vouloir supprimer la localisation « %s » ?"|args:$l.name
|
||||
alert="Attention, la localisation ne doit plus contenir de matériels pour pouvoir être supprimée."
|
||||
}
|
||||
|
||||
{include file="admin/_foot.tpl"}
|
||||
Loading…
Add table
Add a link
Reference in a new issue