ok for add entry for materiel not listed in movement
This commit is contained in:
parent
b9abf86388
commit
3fda0bfcf0
3 changed files with 115 additions and 3 deletions
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
// add entry for materiel listed
|
||||
|
||||
namespace Garradin;
|
||||
|
||||
require_once __DIR__ . '/../_inc.php';
|
||||
|
|
@ -8,7 +10,6 @@ use Garradin\Plugin\Materiels\Equipment;
|
|||
use Garradin\Utils;
|
||||
|
||||
// check if add form is submitted
|
||||
|
||||
$csrf_key = 'add_entry';
|
||||
|
||||
if (f('save') && $form->check($csrf_key) && !$form->hasErrors())
|
||||
|
|
@ -33,7 +34,6 @@ $eqmt = new Equipment;
|
|||
$eqmts_by_cat = $eqmt->listAllByCategory();
|
||||
|
||||
// get the list of entry's kinds
|
||||
|
||||
$kinds = $mvt->listEntryKinds();
|
||||
$selected_kind = $kinds[0];
|
||||
|
||||
|
|
@ -47,7 +47,6 @@ $default_comment = "";
|
|||
|
||||
// make cancel link, legend for the title of the form
|
||||
// and the template name for equipment to use in form
|
||||
|
||||
$cancel_link = PLUGIN_URL . 'mouvements/entrees/index.php';
|
||||
$legend_part = "répertorié";
|
||||
$tpl_materiel_name = "repertorie";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue