aboutsummaryrefslogtreecommitdiff
path: root/budget/templates
diff options
context:
space:
mode:
authorAdrien CLERC <adrien@antipoul.fr>2012-02-11 19:18:34 +0100
committerAdrien CLERC <adrien@antipoul.fr>2012-02-11 19:18:34 +0100
commitbd1b0aaff3cabef1140646c75bf3476144c58c71 (patch)
tree66a36a3f84b4814dd98cc319ea5c0e6276dcff13 /budget/templates
parent2f928e08be5e3f84a1d468fabd15aec816928382 (diff)
downloadihatemoney-mirror-bd1b0aaff3cabef1140646c75bf3476144c58c71.zip
ihatemoney-mirror-bd1b0aaff3cabef1140646c75bf3476144c58c71.tar.gz
ihatemoney-mirror-bd1b0aaff3cabef1140646c75bf3476144c58c71.tar.bz2
Add QTip2 and use it to display a message about access code on the first page.
Diffstat (limited to 'budget/templates')
-rw-r--r--budget/templates/home.html21
-rw-r--r--budget/templates/layout.html1
2 files changed, 22 insertions, 0 deletions
diff --git a/budget/templates/home.html b/budget/templates/home.html
index 013cde7..d21d0ec 100644
--- a/budget/templates/home.html
+++ b/budget/templates/home.html
@@ -39,4 +39,25 @@
</div>
</div>
</div>
+<script>
+ $(document).ready(function(){
+ $('form.create #password').qtip({
+ content: '{{ _("This access code will be sent to your friends. It is stored as-is by the server, so don\\'t reuse a personal password here!") }}',
+ show: {
+ event: 'focus'
+ },
+ hide: {
+ event: 'focusout'
+ },
+ position: {
+ my: "bottom center",
+ at: "top center",
+ adjust: {
+ method: 'shift'
+ }
+
+ }
+ });
+ });
+</script>
{% endblock %}
diff --git a/budget/templates/layout.html b/budget/templates/layout.html
index d4447e6..293ce75 100644
--- a/budget/templates/layout.html
+++ b/budget/templates/layout.html
@@ -7,6 +7,7 @@
<link rel=stylesheet type=text/css href="{{ url_for("static", filename='css/main.css') }}">
<script src="{{ url_for("static", filename="js/jquery-1.6.2.min.js") }}"></script>
<script src="{{ url_for("static", filename="js/ihatemoney.js") }}"></script>
+ <script src="{{ url_for("static", filename="js/jquery.qtip.min.js") }}"></script>
{% block head %}{% endblock %}
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){