Use disabled template for mappings and lists
authorSimo Sorce <simo@redhat.com>
Mon, 6 Apr 2015 19:19:22 +0000 (15:19 -0400)
committerSimo Sorce <simo@redhat.com>
Fri, 10 Apr 2015 14:37:42 +0000 (10:37 -0400)
commit12139c6090941f67c098bf4387ce00a8503e825e
treeff57544494767a8c0faa3d6c00ed1902b4a013bd
parentfa333f2d94885df6beb3d7ea29380e28fde651a4
Use disabled template for mappings and lists

This way lists and mappings can be empty and still allow cloning
of the last row which is always disabled and hidden.

The javascript now clones the last row then fixes the indexes in the
new cloned row, and re-enables and un-hides the previous last which
becomes a new empty row.

https://fedorahosted.org/ipsilon/ticket/25

Signed-off-by: Simo Sorce <simo@redhat.com>
Reviewed-by: Rob Crittenden <rcritten@redhat.com>
templates/admin/plugin_config.html