more template goodness

git-svn-id: http://yolanda.mister-muffin.de/svn@412 7eef14d0-6ed0-489d-bf55-20463b2d70db
This commit is contained in:
erlehmann 2008-12-13 11:57:20 +00:00
parent ae328b9f10
commit 3e5ae50fd5
3 changed files with 97 additions and 101 deletions

View file

@ -8,13 +8,21 @@
account login / logout account login / logout
</%def> </%def>
<p>The following information will be saved.</p> <div class="privacy">
<img src="${h.url_for('/images/privacy/username.png')}" alt="username"/>
<img src="${h.url_for('/images/privacy/saved.png')}" alt="will be saved"/>
<img src="${h.url_for('/images/privacy/forever.png')}" alt="forever"/>
</div>
<form action="${h.url_for('/account/login')}" method="post">
<form action="${h.url_for('account/login')}" method="post">
<label for="username">OpenID:</label> <label for="username">OpenID:</label>
<input id="username" name="username" type="url"/> <input id="username" name="openid_identifier" type="url" value="http://"/>
<a href="http://openid.net/what/">What is OpenID ?</a>
<label>Remember me</label>
<input id="rememberme" type="checkbox" tabindex="90" value="forever" name="rememberme"/>
<input type="submit" value="Login (OpenID)"/> <input type="submit" value="Login (OpenID)"/>

View file

@ -62,8 +62,8 @@ method="post">
%if c.message: %if c.message:
<div id="messagebox" class="${c.message['type']}"> <div id="messagebox" class="${c.message['type']}">
<h1>Message (${c.message['type']})</h1> <h1>${c.message['type']}</h1>
<span id="message">${c.message['text']}</span> <strong>${c.message['text']}</strong>
</div> </div>
%endif %endif
@ -216,20 +216,20 @@ method="post">
${self.login()} ${self.login()}
</%doc> </%doc>
${self.search()}
${self.account_actions()}
${self.tagcloud()}
<div id="header"> <div id="header">
<h1> <h1>
${self.heading()} ${self.heading()}
</h1> </h1>
</div> </div>
${self.search()}
${self.account_actions()}
${self.messagebox()} ${self.messagebox()}
${self.tagcloud()}
<div id="content"> <div id="content">
${self.body()} ${self.body()}
@ -242,7 +242,7 @@ method="post">
${g.application_name} comes with <em>absolutely no warranty</em>; for details <a href="${h.url_for('license')}">click here</a>. ${g.application_name} comes with <em>absolutely no warranty</em>; for details <a href="${h.url_for('license')}">click here</a>.
${g.application_name} is <em>free software</em>, and you are welcome to redistribute it ${g.application_name} is <em>free software</em>, and you are welcome to redistribute it
under certain conditions; <a href="${h.url_for('license')}">click here</a> for details. under certain conditions; <a href="${h.url_for('license')}">click here</a> for details.
To view the source code, <a href="">click here</a>. Report bugs <a href="">here</a>. To view the source code, <a href="">click here</a>.
</p> </p>
</div> </div>

View file

@ -14,59 +14,53 @@
method="POST" method="POST"
> >
<ol> <div>
<label for="dc_title">title</label>
<input name="dc_title" type="text"/>
</div>
<li id="title"> <div>
<label for="title">title</label> <label for="dc_alternative">alternative title</label>
<input name="title" type="text"/> <input name="dc_alternative" type="text"/>
</li> </div>
<li id="alternative"> <div>
<label for="alternative">alternative title</label> <label for="dc_abstract">abstract</label>
<input name="alternative" type="text"/> <textarea name="dc_abstract"/>
</li> </div>
<li id="abstract"> <div>
<label for="abstract">abstract</label> <label for="dc_spatial">spatial</label>
<textarea name="abstract"/> <input name="dc_spatial" type="text"/>
</li> </div>
<li id="spatial"> <div>
<label for="spatial">spatial</label> <label for="dc_subject">keywords (tags), delimited by commas</label>
<input name="spatial" type="text"/> <input name="dc_subject" type="text"/>
</li> </div>
<li id="subject"> <div>
<label for="subject">subject</label> <label for="dc_temporal">temporal</label>
<input name="subject" type="text"/> <input name="dc_temporal" type="datetime"/>
</li> </div>
<li id="temporal"> <div>
<label for="temporal">temporal</label> <label for="dc_language">language</label>
<input name="temporal" type="datetime"/> <select name="dc_language">
</li> <option value="deu">German</option>
<option value="eng">English</option>
</select>
</div>
<li id="language"> <div>
<label for="language">language</label> <label for="dc_creator">creator</label>
<select name="language"> <input name="dc_creator" type="text"/>
<option value="deu">German</option> </div>
<option value="eng">English</option>
</select>
</li>
<li> <div>
<label for="creator">creator</label> <label for="dc_contributor">contributors, delimited by commas</label>
<input id="creator" name="creator" type="text"/> <input name="dc_contributor" type="text"/>
</li> </div>
<li>
<span id="contributor" repeat="template">
<label for="contributor.[contributor]">Contributor</label>
<input name="contributor.[contributor]" type="text"/>
<button type="remove">Remove</button>
</span>
<button type="add" template="contributor">Add contributor</button>
</li>
<!-- <!--
$video->appendChild( getElementDC( "contributor", "xsd:normalizedString") ); $video->appendChild( getElementDC( "contributor", "xsd:normalizedString") );
@ -83,51 +77,45 @@ $video->appendChild( getElementDC( "rightsHolder", "xsd:normalizedString") );
$video->appendChild( getElementDC( "source", "xsd:normalizedString") ); $video->appendChild( getElementDC( "source", "xsd:normalizedString") );
$video->appendChild( getElementDC( "license", "xsd:normalizedString") ); $video->appendChild( getElementDC( "license", "xsd:normalizedString") );
--> -->
<li> <fieldset>
<fieldset> <legend>
<legend> Remix ?
Remix ? </legend>
</legend> <label for="cc_remix">
<label for="remix"> <input id="cc_remix" type="radio" name="modification" value="remix" />
<input id="remix" type="radio" name="modification" value="remix" /> remix
remix </label>
</label> <label for="cc_sharealike">
<label for="sharealike"> <input id="cc_sharealike" type="radio" name="modification" value="sharealike" />
<input id="sharealike" type="radio" name="modification" value="sharealike" /> sharealike
sharealike </label>
</label> <label for="cc_noderivatives">
<label for="noderivatives"> <input id="cc_noderivatives" type="radio" name="modification" value="noderivatives" />
<input id="noderivatives" type="radio" name="modification" value="noderivatives" /> noderivatives
noderivatives </label>
</label> </fieldset>
</fieldset>
</li>
<li> <fieldset>
<fieldset> <legend>
<legend> Commercial ?
Commercial ? </legend>
</legend> <label for="cc_commercial">
<label for="commercial"> <input id="cc_commercial" type="radio" name="commercial" value="commercial" />
<input id="commercial" type="radio" name="commercial" value="commercial" /> commercial
commercial </label>
</label> <label for="cc_noncommercial">
<label for="noncommercial"> <input id="cc_noncommercial" type="radio" name="commercial" value="noncommercial" />
<input id="noncommercial" type="radio" name="commercial" value="noncommercial" /> noncommercial
noncommercial </label>
</label> </fieldset>
</fieldset>
</li>
<li> <div>
<label for="file">file</label> <label for="file">file</label>
<input id="file" name="file" type="file"/> <input id="file" name="file" type="file"/>
</li> </div>
<li> <div>
<input name="commit" type="submit" value="Upload"/> <input name="commit" type="submit" value="Upload"/>
</li> </div>
</ol>
</form> </form>