-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtemplates.js
1 lines (1 loc) · 7.43 KB
/
templates.js
1
!function(){var a=Handlebars.template,l=Handlebars.templates=Handlebars.templates||{};l["tmpl-cmip5"]=a({compiler:[7,">= 4.0.0"],main:function(a,l,e,n,t){var s;return'<h2>Global Climate Model - CMIP5 Data Selector</h2>\n<div id="task_submit">\n <form class="col-sm-8" id="cmip5_form" onsubmit="return task_submit();">\n <div style="display:none">\n <input type="hidden" name="csrfmiddlewaretoken" value="'+a.escapeExpression((s=null!=(s=e.csrftoken||(null!=l?l.csrftoken:l))?s:e.helperMissing,"function"==typeof s?s.call(l,{name:"csrftoken",hash:{},data:t}):s))+'"/>\n </div>\n <div class="row">\n <div class="col-sm-4 form-group">\n <label for="parameter">Parameter</label>\n <select class="form-control input-sm" name="parameter" id="parameter"></select>\n </div>\n <div id="domain_div"></div>\n </div>\n <div class="row">\n <div id="experiment_div"></div>\n <div id="model_div"></div>\n </div>\n <div class="row">\n <div id="ensemble_div"></div>\n </div>\n <div class="row">\n <button type="submit" id="form_submit" class="btn btn-default pull-right">Submit</button>\n </div>\n </form>\n <div class="row" style="width:100%;clear:both;"></div>\n <div id="task_result"></div>\n</div>\n'},useData:!0}),l["tmpl-option"]=a({compiler:[7,">= 4.0.0"],main:function(a,l,e,n,t){var s,r=e.helperMissing,o="function",i=a.escapeExpression;return'<option value="'+i((s=null!=(s=e.value||(null!=l?l.value:l))?s:r,typeof s===o?s.call(l,{name:"value",hash:{},data:t}):s))+'">'+i((s=null!=(s=e.name||(null!=l?l.name:l))?s:r,typeof s===o?s.call(l,{name:"name",hash:{},data:t}):s))+"</option>\n"},useData:!0}),l["tmpl-select"]=a({compiler:[7,">= 4.0.0"],main:function(a,l,e,n,t){var s,r=e.helperMissing,o="function",i=a.escapeExpression;return'<div class="col-sm-4 form-group">\n <label for="'+i((s=null!=(s=e.id||(null!=l?l.id:l))?s:r,typeof s===o?s.call(l,{name:"id",hash:{},data:t}):s))+'">'+i((s=null!=(s=e.label||(null!=l?l.label:l))?s:r,typeof s===o?s.call(l,{name:"label",hash:{},data:t}):s))+'</label>\n <select class="form-control input-sm" name="'+i((s=null!=(s=e.id||(null!=l?l.id:l))?s:r,typeof s===o?s.call(l,{name:"id",hash:{},data:t}):s))+'" id="'+i((s=null!=(s=e.id||(null!=l?l.id:l))?s:r,typeof s===o?s.call(l,{name:"id",hash:{},data:t}):s))+'"></select>\n</div>\n'},useData:!0}),l["tmpl-tr"]=a({compiler:[7,">= 4.0.0"],main:function(a,l,e,n,t){var s,r=e.helperMissing,o="function",i=a.escapeExpression;return'<tr><td><a href="#" onclick="showResult(\''+i((s=null!=(s=e.result||(null!=l?l.result:l))?s:r,typeof s===o?s.call(l,{name:"result",hash:{},data:t}):s))+"');return false;\" >Task Name: "+i((s=null!=(s=e.task_name||(null!=l?l.task_name:l))?s:r,typeof s===o?s.call(l,{name:"task_name",hash:{},data:t}):s))+"</a></td><td>"+i((s=null!=(s=e.timestamp||(null!=l?l.timestamp:l))?s:r,typeof s===o?s.call(l,{name:"timestamp",hash:{},data:t}):s))+"</td><td>"+i((e.json_metatags||l&&l.json_metatags||r).call(l,null!=l?l.tags:l,{name:"json_metatags",hash:{},data:t}))+"</td></tr>\n"},useData:!0}),l["tmpl-user"]=a({compiler:[7,">= 4.0.0"],main:function(a,l,e,n,t){var s,r=e.helperMissing,o="function",i=a.escapeExpression;return' <h2>User Profile</h2>\n <div id="user_profile">\n <div id="photo" class="col-md-2" style="width:200px ">\n <img src="'+i((s=null!=(s=e.gravator_url||(null!=l?l.gravator_url:l))?s:r,typeof s===o?s.call(l,{name:"gravator_url",hash:{},data:t}):s))+'?s=180&d=mm"><br><br>\n <a href="https://en.gravatar.com/" target="_blank" style="clear:both;">Profile Image</a><br><br>\n <a id="reset_password" style="clear:both;">Reset Password</a>\n </div>\n <form id="view_form" class="form-horizontal col-md-4" onsubmit="return edit_user();">\n <div class="form-group">\n <label class="col-md-3 control-label">Username</label>\n <div class="col-md-09">\n <p class="form-control-static">'+i((s=null!=(s=e.username||(null!=l?l.username:l))?s:r,typeof s===o?s.call(l,{name:"username",hash:{},data:t}):s))+'</p>\n </div>\n </div>\n <div class="form-group">\n <label class="col-md-3 control-label">Name</label>\n <div class="col-md-09">\n <p class="form-control-static">'+i((s=null!=(s=e.name||(null!=l?l.name:l))?s:r,typeof s===o?s.call(l,{name:"name",hash:{},data:t}):s))+'</p>\n </div>\n </div>\n <div class="form-group">\n <label class="col-md-3 control-label">Email</label>\n <div class="col-md-09">\n <p class="form-control-static">'+i((s=null!=(s=e.email||(null!=l?l.email:l))?s:r,typeof s===o?s.call(l,{name:"email",hash:{},data:t}):s))+'</p>\n </div>\n </div>\n <button type="submit" id="form_submit" class="btn btn-default pull-right" style="margin-right:40px;">Edit</button>\n </form>\n <form class="col-md-4" id="user_form" onsubmit="return submit_user();">\n <div style="display:none">\n <input type="hidden" name="csrfmiddlewaretoken" value="'+i((s=null!=(s=e.csrftoken||(null!=l?l.csrftoken:l))?s:r,typeof s===o?s.call(l,{name:"csrftoken",hash:{},data:t}):s))+'"/>\n </div>\n <div class="form-group">\n <label for="first_name">First Name</label>\n <input type="text" class="form-control" name="first_name" placeholder="John" value="'+i((s=null!=(s=e.first_name||(null!=l?l.first_name:l))?s:r,typeof s===o?s.call(l,{name:"first_name",hash:{},data:t}):s))+'">\n </div>\n <div class="form-group">\n <label for="last_name">Last Name</label>\n <input type="text" class="form-control" name="last_name" placeholder="Doe" value="'+i((s=null!=(s=e.last_name||(null!=l?l.last_name:l))?s:r,typeof s===o?s.call(l,{name:"last_name",hash:{},data:t}):s))+'">\n </div>\n <div class="form-group">\n <label for="email">Email address</label>\n <input type="email" class="form-control" name="email" placeholder="Enter email" value="'+i((s=null!=(s=e.email||(null!=l?l.email:l))?s:r,typeof s===o?s.call(l,{name:"email",hash:{},data:t}):s))+'">\n </div>\n <button type="submit" id="form_submit" class="btn btn-default pull-right">Update</button>\n </form>\n <div class="row" style="width:100%;clear:both;"></div>\n <form class="form-inline" id="pass_form" onsubmit="return set_password();" style="display:none">\n <div style="display:none">\n <input type="hidden" name="csrfmiddlewaretoken" value="'+i((s=null!=(s=e.csrftoken||(null!=l?l.csrftoken:l))?s:r,typeof s===o?s.call(l,{name:"csrftoken",hash:{},data:t}):s))+'"/>\n </div>\n <div class="form-group">\n <label for="password">New Password</label>\n <input type="password" class="form-control" name="password" placeholder="New Password">\n </div>\n <div class="form-group">\n <label for="password2">Retype New Password</label>\n <input type="password" class="form-control" name="password2" placeholder="Retype New Password">\n </div>\n <button type="submit" class="btn btn-default">Set Password</button>\n </form>\n </div>\n'},useData:!0})}();