Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
piks3l
Respect My Net
Commits
3df00fd7
Commit
3df00fd7
authored
Oct 27, 2011
by
Cynddl
Browse files
[enh] Somes changes on tables, view pages and inputs.
parent
a63277b2
Changes
2
Hide whitespace changes
Inline
Side-by-side
media/css/style.css
View file @
3df00fd7
...
...
@@ -14,8 +14,32 @@ li { list-style: none; }
#add_attach
{
cursor
:
pointer
;
}
#show_optionals
{
text-decoration
:
underline
;
color
:
blue
;
cursor
:
pointer
;
clear
:
both
;
}
#optional
{
clear
:
both
;
}
#report
dt
{
display
:
inline-block
;
width
:
10em
;
}
#report
dd
{
display
:
inline
;
padding
:
0
;
}
#report
{
background
:
#f5f5f5
;
padding
:
0.5em
;
margin-bottom
:
1em
;
}
#report
dt
{
float
:
left
;
clear
:
left
;
width
:
160px
;
text-align
:
right
;
font-weight
:
bold
;
}
#report
dt
:after
{
content
:
":"
;
}
#report
dd
{
margin
:
0
0
0
170px
;
padding
:
0
0
0.5em
0
;
}
#report
dd
p
{
margin
:
0
;}
#auth
{
float
:
right
;
clear
:
both
;
}
#container
{
margin
:
2em
;
}
...
...
@@ -26,7 +50,7 @@ li { list-style: none; }
#id_captcha_1
{
width
:
2em
;
}
.innerfield
{
display
:
inline-block
;
margin-top
:
0.5em
;}
.align-right
{
text-align
:
right
;}
dd
.text
{
width
:
3
0%
;
display
:
block
!important
;
}
dd
.text
{
width
:
5
0%
;
display
:
block
!important
;
}
p
label
{
width
:
7em
;
display
:
inline-block
;
}
.button
,
#add_attach
{
background
:
#eee
;
...
...
@@ -52,7 +76,13 @@ p label { width: 7em; display: inline-block; }
.errorlist
{
font-size
:
.8em
;
color
:
red
;
}
table
.listing
,
.pagination
{
width
:
90%
;
margin
:
auto
;
}
table
.listing
thead
td
{
font-weight
:
bold
;
border-bottom
:
1px
solid
black
;
}
table
.listing
thead
{
background
:
#ddd
;
filter
:
progid
:
DXImageTransform
.
Microsoft
.
gradient
(
startColorstr
=
'#ffffff'
,
endColorstr
=
'#dddddd'
);
background
:
-webkit-gradient
(
linear
,
left
top
,
left
bottom
,
from
(
white
),
to
(
#dddddd
));
background
:
-moz-linear-gradient
(
top
,
#fff
,
#dddddd
);
}
table
.listing
thead
td
{
font-weight
:
bold
;
}
table
.listing
div
.confirm_popup
{
right
:
0
;
text-align
:
right
;
}
#content
div
.confirm_popup
{
left
:
0
;
}
...
...
@@ -88,7 +118,6 @@ table.tablesorter tr th, table.tablesorter tr td {
}
table
.tablesorter
tr
th
{
background-color
:
#f5f5f5
;
border
:
1px
solid
#ccc
;
text-transform
:
capitalize
;
font-weight
:
normal
;
...
...
@@ -134,11 +163,11 @@ table.tablesorter thead tr .headerSortDown {
background-image
:
url(/site_media/img/desc.gif)
;
}
table
.tablesorter
thead
tr
.headerSortDown
,
table
.tablesorter
thead
tr
.headerSortUp
{
background-color
:
#
8db
dd
8
;
background-color
:
#
d
dd
;
}
table
tr
.filters
{
background
:
#
ddd
;
background
:
#
eee
;
}
table
tr
.filters
td
{
...
...
@@ -408,11 +437,9 @@ div.comment {
-o-border-radius
:
2px
;
border-radius
:
2px
;
}
#report
h2
{
margin
:
0
0
.9em
0
;
padding
:
0
;
font-family
:
'DroidSansBold'
,
Helvetica
,
Arial
,
"Liberation Sans"
,
FreeSans
,
sans-serif
;
font-size
:
20px
;
font-weight
:
normal
;
#description
h3
,
#comments
h3
{
margin
:
0.5em
0
;
color
:
orange
;
}
#addForm
.index
input
,
#addForm
.index
select
,
...
...
@@ -696,11 +723,14 @@ ul.messages {
.mceToolbar
{
display
:
none
;
}
ul
#report
li
#description
{
margin
:
1em
0
;
padding
:
.8em
1em
;
}
#comments
{
margin-top
:
1em
;
padding
:
.8em
1em
;
}
input
[
type
=
"text"
],
input
[
type
=
"textarea"
]
{
border
:
1px
solid
#ccc
;
border-radius
:
2px
;
box-shadow
:
0
1px
2px
rgba
(
0
,
0
,
0
,
.15
)
inset
;
padding
:
0.5em
;
}
\ No newline at end of file
templates/view.html
View file @
3df00fd7
...
...
@@ -77,16 +77,18 @@ $(document).ready(function() {
{%block content%}
<div
id=
'global'
>
<h2>
{{v.operator}} ({{v.country}}) {{v.contract}}
</h2>
<ul
id=
"report"
>
{%if v.resource_name%}
<li><dl><dt>
{% trans "Resource" %}
</dt><dd>
{{v.resource_name}}
</dd></dl></li>
{%endif%}
{%if v.type%}
<li><dl><dt>
{% trans "Type" %}
</dt><dd>
{{v.type}}
</dd></dl></li>
{%endif%}
{%if v.media%}
<li><dl><dt>
{% trans "Media" %}
</dt><dd>
{{v.media}}
</dd></dl></li>
{%endif%}
{%if v.temporary%}
<li><dl><dt>
{% trans "Temporary restriction" %}
</dt><dd>
{{v.temporary}}
</dd></dl></li>
{%endif%}
{%if v.loophole%}
<li><dl><dt>
{% trans "Loophole offering" %}
</dt><dd>
{% trans "yes" %}
</dd></dl></li>
{%endif%}
{%if v.contractual%}
<li><dl><dt>
{% trans "Contractual restriction" %}
</dt><dd>
{% trans "yes" %}
</dd></dl></li>
{%endif%}
{%if v.contract_excerpt%}
<li><dl><dt>
{% trans "Contract excerpt" %}
</dt><dd
class=
'text'
>
{{v.contract_excerpt|safe}}
</dd></dl></li>
{%endif%}
{%if v.comment_set.all%}
<li
id=
"description"
class=
'round-box'
>
<div
id=
"report"
>
<dl>
{%if v.resource_name%}
<dt>
{% trans "Resource" %}
</dt><dd>
{{v.resource_name}}
</dd>
{%endif%}
{%if v.type%}
<dt>
{% trans "Type" %}
</dt><dd>
{{v.type}}
</dd>
{%endif%}
{%if v.media%}
<dt>
{% trans "Media" %}
</dt><dd>
{{v.media}}
</dd>
{%endif%}
{%if v.temporary%}
<dt>
{% trans "Temporary restriction" %}
</dt><dd>
{{v.temporary}}
</dd>
{%endif%}
{%if v.loophole%}
<dt>
{% trans "Loophole offering" %}
</dt><dd>
{% trans "yes" %}
</dd>
{%endif%}
{%if v.contractual%}
<dt>
{% trans "Contractual restriction" %}
</dt><dd>
{% trans "yes" %}
</dd>
{%endif%}
{%if v.contract_excerpt%}
<dt>
{% trans "Contract excerpt" %}
</dt><dd
class=
'text'
>
{{v.contract_excerpt|safe}}
</dd>
{%endif%}
{%if v.comment_set.all%}
</dl>
</div>
<div
id=
"description"
class=
'round-box'
>
<h3>
{%trans "Description" %}
</h3>
{%for c in v.comment_set.all%}
<div
class=
"description-node"
>
...
...
@@ -104,8 +106,9 @@ $(document).ready(function() {
{%endif%}
</div>
{%endfor%}
</li>
</ul>
</div>
<h3>
{%trans "Confirm this restriction if you experience it as well" %}
</h3>
<div
class=
"info-validate"
style=
"display: inline-block;"
>
<form
method=
"get"
id=
"{{ v.pk }}"
class=
"confirm_form"
>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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