Outsource template and add attribute propertiesField

Modified to allow working with more "complex" data structures and other CSS Framework as Bootstrap.