Commit 9bc39f2f authored by Théo GUILLON's avatar Théo GUILLON
Browse files

Modification : du typage des annexes

parent e4a13178
......@@ -124,10 +124,10 @@ class FichesController extends AppController
$selectType = '';
if (!empty($typages)) {
$selectType = '<div class="form-group"><label for="typage_2" class="col-md-4 control-label"></label><div class="col-md-8"><select name="data[Fichier][typage_2]" id="typage_2" class="typage form-control">'
$selectType = '<div class="form-group"><label for="typage_'.$key.'" class="col-md-4 control-label"></label><div class="col-md-8"><select name="data[Fichier][typage_'.$key.']" id="typage_'.$key.'" class="form-control">'
. '<option value="">Séléctionnez un type pour le fichier</option>';
foreach ($typages as $key => $typage) {
$selectType = $selectType . '<option value="' . $key . '">' . $typage . '</option>';
foreach ($typages as $val => $typage) {
$selectType = $selectType . '<option value="' . $val . '">' . $typage . '</option>';
}
$selectType = $selectType . '</select></div></div>';
}
......
......@@ -253,10 +253,6 @@
}
});
});
$('.typage').on('change', function () {
console.log($(this));
});
});
function deleteFile(file, key) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment