home
·
contact
·
privacy
projects
/
guiltcards
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add deck management.
[guiltcards]
/
views
/
cards.tpl
diff --git
a/views/cards.tpl
b/views/cards.tpl
index 758fe22b70e9ade34a39f5f4c700a9aa800d557d..2c20cb05a96ea912bb3738a677aa7a9f0bbf8989 100644
(file)
--- a/
views/cards.tpl
+++ b/
views/cards.tpl
@@
-1,13
+1,17
@@
<!DOCTYPE HTML>
<html>
<body>
<!DOCTYPE HTML>
<html>
<body>
+<h1>deck: {{deck_name}}</h1>
<ul>
% for card_id in cards:
<ul>
% for card_id in cards:
-<li><a href="{{ web_path }}/
cards/{{card_id}}/view">{{cards[card_id]}}</a> (<a href="{{ web_path
}}/cards/{{card_id}}/form">edit</a>)</li>
+<li><a href="{{ web_path }}/
decks/{{deck_id}}/cards/{{card_id}}/view">{{cards[card_id]}}</a> (<a href="{{ web_path }}/decks/{{deck_id
}}/cards/{{card_id}}/form">edit</a>)</li>
% end
</ul>
% end
</ul>
-<form action="{{ web_path }}/cards/" method="GET">
-add another? name: <input type="text" name="card_name" />
+<form action="{{ web_path }}/
decks/{{deck_id}}/
cards/" method="GET">
+add another
card
? name: <input type="text" name="card_name" />
</form>
</form>
+<p>
+<a href="{{ web_path }}/decks">back to decks overview</a>
+</p>
</body>
</html>
</body>
</html>