harvester-d4science/templates/ckanext/harvest/create.html

40 lines
1.1 KiB
HTML

<html xmlns:py="http://genshi.edgewall.org/"
xmlns:i18n="http://genshi.edgewall.org/i18n"
xmlns:xi="http://www.w3.org/2001/XInclude"
py:strip="">
<py:def function="page_title">Add harvesting source</py:def>
<py:def function="optional_head">
<link type="text/css" rel="stylesheet" media="all" href="/ckanext/harvest/style.css" />
</py:def>
<div py:match="content">
<div class="harvest-content">
<h1>Add harvesting source</h1>
${Markup(c.form)}
<div class="submit">
<input id="save" name="save" value="Save" type="button" />
</div>
</div>
<script type="text/javascript">
//<![CDATA[
$(document).ready(function() {
$('#save').click(function(){
$.post(
'http://localhost:5000/harvest/create',
{'HarvestSource--url':$('#HarvestSource--url').val(),
'HarvestSource--description':$('#HarvestSource--description').val()},
function(data,status,xhr){
alert(status);
})
});
});
//]]>
</script>
</div>
<xi:include href="../../layout.html" />
</html>