<div class="case-template-section">
    <div class="mb-xs">
        <div class="btn-group">
            <button class="btn btn-sm btn-primary" type="button" ng-click="$vm.addCustomFieldRow()">
                <i class="mr-xxxs fa fa-plus"></i>Add custom field
            </button>
        </div>
    </div>

    <div class="empty-message" ng-if="$vm.templateCustomFields.length === 0">
        No custom fields have been added. <a href class="mr-xxxs" ng-click="$vm.addCustomFieldRow()">Add a custom field</a>
 