The following commit has been merged in the master branch:
commit a3a9a16bec273badbf9f349ca01b8f6bf4ffccf8
Author: Michal Čihař <[email protected]>
Date:   Tue Oct 6 17:05:46 2009 +0200

    Add links to adding new record.

diff --git a/html/phonedb/phone.html b/html/phonedb/phone.html
index fe7c945..40961cd 100644
--- a/html/phonedb/phone.html
+++ b/html/phonedb/phone.html
@@ -8,6 +8,7 @@
 <ul>
 <li><a href="/phones">Phones Database</a></li>
 <li><a href="{{ vendor.get_absolute_url }}">{{ vendor.name }}</a></li>
+<li><a href="/phones/new?vendor={{ vendor.slug }}">{% trans "Add new record" 
%}</a></li>
 </ul>
 <h3>{% trans "Similar Phones" %}</h3>
 
diff --git a/html/phonedb/vendor.html b/html/phonedb/vendor.html
index dede1f3..c3231c1 100644
--- a/html/phonedb/vendor.html
+++ b/html/phonedb/vendor.html
@@ -7,6 +7,7 @@
 <h3>{% trans "Navigation" %}</h3>
 <ul>
 <li><a href="/phones">Phones Database</a></li>
+<li><a href="/phones/new?vendor={{ vendor.slug }}">{% trans "Add new record" 
%}</a></li>
 </ul>
 {% endblock %}
 
@@ -38,8 +39,8 @@ There is currently none phone record from this vendor!
 {% endblocktrans %}
 {% endif %}
 
-{% blocktrans %}
-To change existing entries, simply add new one, they will be reviewed and the
+{% blocktrans with vendor.slug as slug %}
+To change existing entries, simply <a href="/phones/new?vendor={{ slug }}">add 
new one</a>, they will be reviewed and the
 old ones will get deleted eventually.
 {% endblocktrans %}
 </p>

-- 
UNNAMED PROJECT

_______________________________________________
Wammu-svn mailing list
[email protected]
https://lists.cihar.com/cgi-bin/mailman/listinfo/wammu-svn

Reply via email to