Commit 850028cd authored by JonathanMM's avatar JonathanMM

Merge branch 'index' into 'master'

Index

See merge request !7
parents 79c5d2a3 6f16c1fb
......@@ -143,6 +143,14 @@
data: 'nbFreeEDock',
render: function(data, type, row, meta)
{
if(type == 'sort') //Pour le tri, on utilise le nombre de bornes libres directement
{
if(data < 10)
return '00' + data.toString();
if(data < 100)
return '0' + data.toString();
return data;
}
return data+'/'+row.nbEDock;
}
}],
......
......@@ -125,7 +125,14 @@
return putZero(date.getDate()) + '/' + putZero(date.getMonth()+1) + '/' + date.getFullYear();
}
},{
data: 'state'
data: 'state',
render: function(data, type, row, meta)
{
if(data == 'Operative' && row.nbEDock > 0)
return 'Ouverte';
else
return 'En travaux';
}
},{
data: 'nbBike'
},{
......@@ -134,6 +141,14 @@
data: 'nbFreeEDock',
render: function(data, type, row, meta)
{
if(type == 'sort') //Pour le tri, on utilise le nombre de bornes libres directement
{
if(data < 10)
return '00' + data.toString();
if(data < 100)
return '0' + data.toString();
return data;
}
return data+'/'+row.nbEDock;
}
}],
......
......@@ -167,14 +167,16 @@ ALTER TABLE `signalement`
-- Index pour la table `stations`
--
ALTER TABLE `stations`
ADD PRIMARY KEY (`code`);
ADD PRIMARY KEY (`code`),
ADD KEY `insee` (`insee`);
--
-- Index pour la table `status`
--
ALTER TABLE `status`
ADD PRIMARY KEY (`id`),
ADD KEY `station` (`code`);
ADD KEY `station` (`code`),
ADD KEY `idConso` (`idConso`);
--
-- Index pour la table `statusConso`
......
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