/**
 * @author SHarper
 */
htmlTemplates = Ext.extend(Object, {

    constructor: function(){
    
        Ext.apply(this);
    },
    
    successResponseTemplate: function(inResp){
        return '<h1>FME Data Download Service SUCCEEDED</h1></br>' +
        '<p>Please click the following link to download the result of your transformation</p>' +
        '<a href=' +
        inResp.url +
        '>' +
        inResp.url +
        '</a>';
        
    },
    
    failedResponseTemplate: function(inError){
        return '<h1>FME Data Download Service Failed</h1></br>' +
        '<p>The translation failed. Please make your request again. Make sure you have uploaded all of the require files (e.g. For a Shapefile you would need .shp, .shx, .prj and .dbf)</p></br>'+
		'<div id="errorMsg">'+inError+'</div>';
    },
    
    noResultsResponseTemplate: function(){
    
        return '<h1>FME Data Download Service Failed</h1></br>' +
        '<p>There were no features returned, ensure you have uploaded all of the required files and that you have chosen the correct ccordinate system.</p>';
        
    },
    
    emailResponseTemplate: function(inResp){
        return '<h1>FME Data Download Service SUCCEEDED</h1></br>' +
        '<p>The result of your transformation will be sent to the following email address:' +
        inResp.email +
        '</p>';
        
    },
    
    dataUploadHelp: function(){
    
        return '<div id="header"><img src="images/left-arrow.png" alt="../images/left-arrow.png"/> <h1>To Get Started, Upload Your Data</h1></br></div>'+
		'<div>The EasyTranslator is powered by FME Server and allows you to upload any file-based FME supported dataset and translate it into a new format and projection.</div>'+
        '<div id="list"><ul>' +
        '<li>For a list of supported file formats visit: <A HREF="http://www.safe.com/products/desktop/formats/index.php">FME Supported Formats</A></li>' +
        '<li>You must upload the full datset e.g. if you upload a Shapefile you must upload .shp, .shx, .dbf, .prj.</li>' +
		'<li>You may upload zipped files when the dataset is composed of more than 1 file.</li></ul></div>'
		;
    }
    
    
});

