2011-03-11 14:42:21 +01:00
|
|
|
<?python
|
|
|
|
if c.mode == 'create':
|
|
|
|
title = 'Add harvesting source'
|
|
|
|
else:
|
|
|
|
title = 'Edit harvesting source'
|
|
|
|
?>
|
2011-03-09 19:56:55 +01:00
|
|
|
<html xmlns:py="http://genshi.edgewall.org/"
|
|
|
|
xmlns:i18n="http://genshi.edgewall.org/i18n"
|
|
|
|
xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
|
|
py:strip="">
|
|
|
|
|
2011-03-11 14:42:21 +01:00
|
|
|
<py:def function="page_title">${title}</py:def>
|
2011-03-09 19:56:55 +01:00
|
|
|
|
|
|
|
<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">
|
2011-03-23 18:02:02 +01:00
|
|
|
<py:if test="c.sources">
|
2011-03-11 14:42:21 +01:00
|
|
|
<h1>${title}</h1>
|
|
|
|
<form action="${c.mode}" method="POST">
|
2011-03-10 15:02:21 +01:00
|
|
|
${Markup(c.form)}
|
|
|
|
<input id="save" name="save" value="Save" type="submit" />
|
|
|
|
</form>
|
2011-03-23 18:02:02 +01:00
|
|
|
</py:if>
|
2011-03-09 19:56:55 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<xi:include href="../../layout.html" />
|
|
|
|
</html>
|