Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
La Quadrature du Net
Respect My Net
Commits
05bb03c2
Commit
05bb03c2
authored
Apr 29, 2011
by
stef
Browse files
[enh] form js is now in extra file
parent
7032cbd9
Changes
3
Hide whitespace changes
Inline
Side-by-side
i18n/messages.pot
View file @
05bb03c2
...
...
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: nnmon 0.00000000000001\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2011-04-29
18:00
+0200\n"
"POT-Creation-Date: 2011-04-29
20:49
+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
...
...
@@ -17,6 +17,62 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 0.9.6\n"
#: bt/forms.py:18
msgid "EU member state where the restriction is reported."
msgstr ""
#: bt/forms.py:19
msgid "The ISP or operator providing the Internet service."
msgstr ""
#: bt/forms.py:20
msgid ""
"The specific contract at the ISP provider. (please be as specific as "
"possible)"
msgstr ""
#: bt/forms.py:21
msgid ""
"Please describe the symptoms you are experiencing. What service or site, "
"or person is unavailable or seems artificially slowed down."
msgstr ""
#: bt/forms.py:22
msgid "The what is the affected resource."
msgstr ""
#: bt/forms.py:23
msgid "Please specify the name of the affected resource."
msgstr ""
#: bt/forms.py:24
msgid "Is the Resource Blocked or otherwise discrimated?"
msgstr ""
#: bt/forms.py:25
msgid "Is the Internet connection over mobile or fixed line?"
msgstr ""
#: bt/forms.py:26
msgid "Is the restriction only temporary, e.g. due to network overload?"
msgstr ""
#: bt/forms.py:27
msgid "Is the restriction described in the users contract?"
msgstr ""
#: bt/forms.py:28
msgid ""
"Please copy the relevant section describing the restriction from the user"
" contract."
msgstr ""
#: bt/forms.py:29
msgid ""
"Is there another offer provided by this Operator which removes this "
"restriction?"
msgstr ""
#: bt/models.py:5
msgid "Belgium"
msgstr ""
...
...
@@ -125,43 +181,43 @@ msgstr ""
msgid "United Kingdom "
msgstr ""
#: bt/models.py:
4
5
#: bt/models.py:
3
5
msgid "port"
msgstr ""
#: bt/models.py:
4
6
#: bt/models.py:
3
6
msgid "protocol"
msgstr ""
#: bt/models.py:
4
7
#: bt/models.py:
3
7
msgid "service"
msgstr ""
#: bt/models.py:
4
8
#: bt/models.py:
3
8
msgid "site"
msgstr ""
#: bt/models.py:
4
9
#: bt/models.py:
3
9
msgid "user"
msgstr ""
#: bt/models.py:
5
0
#: bt/models.py:
4
0
msgid "ip"
msgstr ""
#: bt/models.py:
5
3
#: bt/models.py:
4
3
msgid "Blocking"
msgstr ""
#: bt/models.py:
5
4
#: bt/models.py:
4
4
msgid "Throttling"
msgstr ""
#: bt/models.py:
5
7
#: bt/models.py:
4
7
msgid "Fixed"
msgstr ""
#: bt/models.py:
5
8
#: bt/models.py:
4
8
msgid "Mobile"
msgstr ""
media/js/form.js
0 → 100644
View file @
05bb03c2
$
(
document
).
ready
(
function
(){
$
(
"
.fieldWrapper
"
).
hide
();
$
(
'
.help_text
'
).
hide
();
$
(
"
.fieldWrapper
"
).
hover
(
function
(
event
)
{
$
(
this
).
find
(
'
.help_text
'
).
toggle
();});
$
(
"
#show_optionals
"
).
hide
();
$
(
"
#id_country
"
).
parent
().
show
();
$
(
"
#save_button
"
).
hide
();
$
(
"
#id_contractual
"
).
click
(
function
(
event
)
{
$
(
"
#id_contract_excerpt_parent
"
).
parent
().
toggle
();
});
$
(
"
#show_optionals
"
).
click
(
function
(
event
)
{
$
(
this
).
hide
();
$
(
"
#optional .fieldWrapper
"
).
show
();
$
(
"
#id_contract_excerpt_parent
"
).
parent
().
hide
();
});
$
(
'
#id_country
'
).
change
(
function
()
{
var
country
=
$
(
this
).
attr
(
'
value
'
);
if
(
country
.
length
>
0
)
{
$
(
'
#id_operator
'
).
parent
().
show
();
$
.
getJSON
(
'
/ajax/
'
+
country
,
function
(
data
)
{
$
(
"
#id_operator
"
).
autocomplete
(
data
,
{
minChars
:
0
,
autoFill
:
true
,
});
});
}
});
$
(
'
#id_operator
'
).
change
(
function
()
{
var
country
=
$
(
'
#id_country
'
).
attr
(
'
value
'
);
var
operator
=
$
(
this
).
val
();
if
(
operator
.
length
>
0
)
{
$
(
'
#id_contract
'
).
parent
().
show
();
$
.
getJSON
(
'
/ajax/
'
+
country
+
'
/
'
+
operator
,
function
(
data
)
{
$
(
"
#id_contract
"
).
autocomplete
(
data
,{
minChars
:
0
,
});
});
}
});
$
(
'
#id_contract
'
).
change
(
function
()
{
if
(
$
(
this
).
val
().
length
>
0
)
{
$
(
'
#id_comment
'
).
parent
().
show
();
$
(
'
#save_button
'
).
show
();
$
(
"
#show_optionals
"
).
show
();
}
});
});
templates/add.html
View file @
05bb03c2
...
...
@@ -9,50 +9,7 @@
<script
type=
"text/javascript"
src=
"{%media_url%}/js/editor.js"
></script>
<script
type=
"text/javascript"
src=
"{%media_url%}/js/jquery.1.4.2.min.js"
></script>
<script
type=
"text/javascript"
src=
"{%media_url%}/js/jquery.autocomplete.js"
></script>
<script
type=
"text/javascript"
>
$
(
document
).
ready
(
function
(){
$
(
"
.fieldWrapper
"
).
hide
();
$
(
'
.help_text
'
).
hide
();
$
(
"
.fieldWrapper
"
).
hover
(
function
(
event
)
{
$
(
this
).
find
(
'
.help_text
'
).
toggle
();});
$
(
"
#show_optionals
"
).
hide
();
$
(
"
#id_country
"
).
parent
().
show
();
$
(
"
#save_button
"
).
hide
();
$
(
"
#id_contractual
"
).
click
(
function
(
event
)
{
$
(
"
#id_contract_excerpt_parent
"
).
parent
().
toggle
();
});
$
(
"
#show_optionals
"
).
click
(
function
(
event
)
{
$
(
this
).
hide
();
$
(
"
#optional .fieldWrapper
"
).
show
();
$
(
"
#id_contract_excerpt_parent
"
).
parent
().
hide
();
});
$
(
'
#id_country
'
).
change
(
function
()
{
var
country
=
$
(
this
).
attr
(
'
value
'
);
if
(
country
.
length
>
0
)
{
$
(
'
#id_operator
'
).
parent
().
show
();
$
.
getJSON
(
'
/ajax/
'
+
country
,
function
(
data
)
{
$
(
"
#id_operator
"
).
autocomplete
(
data
,
{
minChars
:
0
,
autoFill
:
true
,
});
});
}
});
$
(
'
#id_operator
'
).
change
(
function
()
{
var
country
=
$
(
'
#id_country
'
).
attr
(
'
value
'
);
var
operator
=
$
(
this
).
val
();
if
(
operator
.
length
>
0
)
{
$
(
'
#id_contract
'
).
parent
().
show
();
$
.
getJSON
(
'
/ajax/
'
+
country
+
'
/
'
+
operator
,
function
(
data
)
{
$
(
"
#id_contract
"
).
autocomplete
(
data
,{
minChars
:
0
,
});
});
}
});
$
(
'
#id_contract
'
).
change
(
function
()
{
if
(
$
(
this
).
val
().
length
>
0
)
{
$
(
'
#id_comment
'
).
parent
().
show
();
$
(
'
#save_button
'
).
show
();
$
(
"
#show_optionals
"
).
show
();
}
});
});
</script>
<script
type=
"text/javascript"
src=
"{%media_url%}/js/form.js"
></script>
{% endblock %}
{%block content%}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment