[forms] fix multiple edit bug introduced by changeset cebdf8ee5ad7
Changeset cebdf8ee5ad7 assumed that edited entity was either explicitly
passed to the form or found in first row / first col of the resultset
because of the one_line_rset() selector.
But one_line_rset() is actually trickier : the selector returns 1
if the resultset has more than one row **if** an explicit row is
specified during selection process. This is exactly what is done
in the 'muledit' form :
for row in xrange(len(self.rset)):
form = self.vreg['forms'].select('edition', self.req,
rset=self.rset, row=row, #...
This changeset thus takes row in consideration to find edited entity
if 'row' was explcitly specified.
/* styles for access control forms)
*
* :organization: Logilab
* :copyright: 2003-2008 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
* :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
*/
/******************************************************************************/
/* security edition form (views/management.py) */
/******************************************************************************/
h2.schema{
background : #ff7700;
color: #fff;
font-weight: bold;
padding : 0.1em 0.3em;
}
h3.schema{
font-weight: bold;
}
h4 a,
h4 a:link,
h4 a:visited{
color:#000;
}
table.schemaInfo {
margin: 1em 0em;
text-align: left;
border: 1px solid black;
border-collapse: collapse;
width:100%;
}
table.schemaInfo th,
table.schemaInfo td {
padding: .3em .5em;
border: 1px solid grey;
width:33%;
}
table.schemaInfo tr th {
padding: 0.2em 0px 0.2em 5px;
background-image:none;
background-color:#dfdfdf;
}
table.schemaInfo thead tr {
border: 1px solid #dfdfdf;
}
table.schemaInfo td {
padding: 3px 10px 3px 5px;
}
.users{
color : #00CC33;
font-weight: bold }
.guests{
color : #ff7700;
font-weight: bold;
}
.staff{
color : #0083ab;
font-weight: bold;
}
.owners{
color : #8b0000;
font-weight: bold;
}
.discret,
a.grey{
color:#666;
}
a.grey:hover{
color:#000;
}
.red{
color : #ff7700;
}
div#schema_security{
width:780px;
}
/******************************************************************************/
/* user groups edition form (views/euser.py) */
/******************************************************************************/
table#groupedit {
margin: 1ex 1em;
text-align: left;
border: 1px solid black;
border-collapse: collapse;
}
table#groupedit th,
table#groupedit td {
padding: 0.5em 1em;
}
table#groupedit tr {
border-bottom: 1px solid black;
}
table#groupedit tr.nogroup {
border: 1px solid red;
margin: 1px;
}
table#groupedit td {
text-align: center;
padding: 0.5em;
}