(function() {
    'use strict';

    angular
        .module('offers')
        .factory('OffersForm', factory);

    function factory() {

      var getFormFields = function(disabled) {

        var fields = [
  				{
  					key: 'title',
  					type: 'input',
  					templateOptions: {
  			      label: 'Name:',
  						disabled: disabled
  			    }
  				},
  				{
  					key: 'site',
  					type: 'input',
  					templateOptions: {
  			      label: 'Site:',
  						disabled: disabled
  			    }
  				},
  				{
  					key: 'url',
  					type: 'input',
  					templateOptions: {
  			      label: 'URL:',
  						disabled: disabled
  			    }
  				},
  				{
  					key: 'original',
  					type: 'input',
  					templateOptions: {
  			      label: 'Original price:',
  						disabled: disabled
  			    }
  				},
  				{
  					key: 'sales',
  					type: 'input',
  					templateOptions: {
  			      label: 'Sales price:',
  						disabled: disabled
  			    }
  				},
  				{
  					key: 'discount',
  					type: 'input',
  					templateOptions: {
  			      label: 'Discount:',
  						disabled: disabled
  			    }
  				},
  				{
  					key: 'period',
  					type: 'input',
  					templateOptions: {
  			      label: 'Sales period:',
  						disabled: disabled
  			    }
  				},
  				{
  					key: 'active',
  					type: 'checkbox',
  					templateOptions: {
  			      label: 'Acive:',
  						disabled: disabled
  			    }
  				}

  			];

        return fields;

      };

      var service = {
        getFormFields: getFormFields
      };

      return service;

  }

})();

@@ -1523,18 +1523,16 @@
  %09%09%09%09%7D%0D%0A
-%0D%0A
   %09%09%09%5D;%0D

Update offer model