source: MILK/trunk/milk_server/milk_server/templates/feed_creator.html @ 5299

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/MILK/trunk/milk_server/milk_server/templates/feed_creator.html@5299
Revision 5299, 1.3 KB checked in by cbyrom, 11 years ago (diff)

Add new controller, feeds, to centralise all feed creation code. Add
new template, feed_creator, to allow input form to directly create
atom feed entry. Add general feed to discovery search page - tieing
this to the feed created by feed_creator. Add icons for feed and
include these in the config set up.

Line 
1<?python
2 import milk_server.lib.constants as constants
3?>
4<html xmlns="http://www.w3.org/1999/xhtml" 
5        xmlns:py="http://genshi.edgewall.org/"
6        xmlns:xi="http://www.w3.org/2001/XInclude">
7        <xi:include href="layout.html" />
8        <xi:include href="utils.html" />
9        <head>
10            <script py:if="g.__dict__.has_key(constants.POP_UP_MESSAGE)" type="text/javascript">
11                        window.onload = alert('${getattr(g, constants.POP_UP_MESSAGE)}');
12                        <?python delattr(g, constants.POP_UP_MESSAGE) ?>
13                </script>
14        <title py:content="c.title">title</title>
15    </head>
16        <body class="submit">
17        <div id="contents">
18            <div class="metadata">
19                            <h3>$c.title</h3>
20                                ${Markup(h.form(c.createEntryLink))}
21                                <table><tbody>
22                                        <div py:replace="EditTextFieldRow('Author', 'authorName', constants.DISCOVERY_ADMIN_AUTHOR, True, constants.TEXT_FIELD, width='60%')"/>
23                                        <div py:replace="EditTextFieldRow('Title', 'feedTitle', '', True, constants.TEXT_FIELD, width='60%')"/>
24                                        <div py:replace="EditTextFieldRow('Content', 'feedContent', '', True, constants.TEXT_AREA, width='60%')"/>
25                                </tbody></table>
26                                ${Markup(h.submit('Create', **{'onclick': 'Div_show("loading");'}))}
27                                <input type="hidden" name="feedType" value="${c.feedType}"/>
28                                ${Markup(h.end_form())}
29                        </div>
30                </div>
31        </body>
32</html>
Note: See TracBrowser for help on using the repository browser.