Converted all admin view templates to ERB and fixed a few bugs for attribute types. TRAD-36