Hi,
I had to do some rejigging of the Cisco SPA templates to get the disable and blf function working the way I wanted it to.
Here are my edits to line 185 to 94 of the SPA504g template, I've highlighted the changes:
{foreach $keys["line"] as $row}
{if $row.device_key_category == "line"}
<!--...