from typing import OrderedDict


def transform_templateView(result):
    """Transforms a single template into a one row table"""
    result = OrderedDict([('Title', result['title'] if 'title' in result else ''),
                        ('Template Id', result['id'] if 'id' in result else ''),
                        ('Category', result['category'] if 'category' in result else ''),
                        ('Estimated Time', result['estimatedTime'] if 'estimatedTime' in result else ''),
                        ('Description', result['description'] if 'description' in result else '')])
    return result