projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Paginate known Sones.
[Sone.git]
/
src
/
main
/
resources
/
templates
/
knownSones.html
diff --git
a/src/main/resources/templates/knownSones.html
b/src/main/resources/templates/knownSones.html
index
f26e15a
..
8a5afbd
100644
(file)
--- a/
src/main/resources/templates/knownSones.html
+++ b/
src/main/resources/templates/knownSones.html
@@
-1,24
+1,35
@@
<%include include/head.html>
<%include include/head.html>
+ <script language="javascript">
+ $(document).ready(function() {
+ registerInputTextareaSwap("#add-sone input[name=request-uri]", "WebInterface.DefaultText.SoneRequestURI", "request-uri", false);
+ })
+ </script>
+
<h1><%= Page.Index.AddSone.Title|l10n|html></h1>
<div><%= Page.Index.AddSone.Description|l10n|html></div>
<h1><%= Page.Index.AddSone.Title|l10n|html></h1>
<div><%= Page.Index.AddSone.Description|l10n|html></div>
- <form action="addSone.html" method="post">
+ <form
id="add-sone"
action="addSone.html" method="post">
<input type="hidden" name="formPassword" value="<% formPassword|html>" />
<input type="hidden" name="formPassword" value="<% formPassword|html>" />
- <input type="hidden" name="returnPage" value="<% request.ur
l
|html>" />
- <input
id="addsone"
type="text" name="request-uri" />
+ <input type="hidden" name="returnPage" value="<% request.ur
i
|html>" />
+ <input type="text" name="request-uri" />
<button type="submit"><%= Page.Index.AddSone.Button.Add|l10n|html></button>
</form>
<h1><%= Page.KnownSones.Page.Title|l10n|html></h1>
<div id="known-sones">
<button type="submit"><%= Page.Index.AddSone.Button.Add|l10n|html></button>
</form>
<h1><%= Page.KnownSones.Page.Title|l10n|html></h1>
<div id="known-sones">
- <%foreach knownSones sone>
+ <%getpage parameter=page>
+ <%paginate list=knownSones pagesize=2>
+ <%= page|store key=pageParameter>
+ <%include include/pagination.html>
+ <%foreach pagination.items sone>
<%include include/viewSone.html>
<%foreachelse>
<div><%= Page.KnownSones.Text.NoKnownSones|l10n|html></div>
<%/foreach>
<%include include/viewSone.html>
<%foreachelse>
<div><%= Page.KnownSones.Text.NoKnownSones|l10n|html></div>
<%/foreach>
+ <%include include/pagination.html>
</div>
<%include include/tail.html>
</div>
<%include include/tail.html>