Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
ca77b9c6
Commit
ca77b9c6
authored
Apr 18, 2014
by
Marc Duez
Browse files
server / less : add some style to database info
parent
28a4f216
Changes
5
Hide whitespace changes
Inline
Side-by-side
browser/css/vidjil.less
View file @
ca77b9c6
...
...
@@ -885,3 +885,45 @@ span .substitution{
left: -webkit-calc(~"50% - 480px");
left: calc(~"50% - 480px");
}
.db_table{
width: 100%;
border-collapse: collapse;
}
.db_table .column1{
width: 20%;
}
.db_table .column2{
width: 100px;
}
.db_table .column4{
width: 50px;
}
.db_table .column5{
width: 20px;
}
.db_table th{
border-bottom: solid;
border-color: @border;
border-width: 1px;
}
.db_table tr{
border-bottom: solid;
border-color: @border;
border-width: 1px;
cursor: pointer;
}
.db_table tr:hover{
background: @highlight;
}
.db_table td{
border-width:0px;
}
server/web2py/applications/Vidjil/views/config/index.html
View file @
ca77b9c6
...
...
@@ -4,12 +4,13 @@
<div>
<h3>
{{=message}}
</h3>
<table
>
<tr><td>
name
</td>
<td>
standard
</td>
<table
class=
"db_table"
>
<tr><td
class=
"column2"
>
name
</td>
<td
class=
"column2"
>
standard
</td>
<td>
info
</td>
<td>
command
</td>
<td>
</td>
<td
class=
"column5"
>
</td>
<td
class=
"column5"
>
</td>
</tr>
{{
query = None
...
...
server/web2py/applications/Vidjil/views/patient/index.html
View file @
ca77b9c6
...
...
@@ -4,20 +4,20 @@
<div>
<h3>
{{=message}}
</h3>
<table
>
<tr><td>
name
</td>
<td>
birth
</td>
<table
class=
"db_table"
>
<tr><td
class=
"column1"
>
name
</td>
<td
class=
"column2"
>
birth
</td>
<td>
info
</td>
<td>
</td>
<td>
</td>
<td
class=
"column5"
>
</td>
<td
class=
"column5"
>
</td>
</tr>
{{
query = None
c_id = ""
query = db(db.patient).select()
for row in query :}}
<tr>
<td
onclick=
"db.call('patient/info', {'id' :'{{=row.id}}'} )"
>
{{=row.last_name + " " + row.first_name }}
</td>
<tr
onclick=
"db.call('patient/info', {'id' :'{{=row.id}}'} )"
>
<td>
{{=row.last_name + " " + row.first_name }}
</td>
<td>
{{=row.birth }}
</td>
<td>
{{=row.info }}
</td>
<td
onclick=
"db.call('patient/edit', {'id' :'{{=row.id}}'} )"
>
e
</td>
...
...
server/web2py/applications/Vidjil/views/patient/info.html
View file @
ca77b9c6
...
...
@@ -26,16 +26,16 @@
</select>
</span>
</div>
</div>
</br>
<table>
</div>
<table
class=
"db_table"
>
<thead>
<tr><td>
file_name
</td>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
sampling date
</td>
<tr><td
class=
"column1"
>
file_name
</td>
<td
class=
"column2"
>
sampling date
</td>
<td>
info
</td>
<td>
status
</td>
<td
class=
"column4"
>
status
</td>
<td
class=
"column5"
>
</td>
<td
class=
"column5"
>
</td>
<td
class=
"column5"
>
</td>
</tr>
</thead>
<tbody>
...
...
@@ -53,9 +53,6 @@
for row in query :}}
<tr>
<td>
{{ (filename, str) = db.sequence_file.data_file.retrieve(row.sequence_file.data_file)}} {{=filename}}
</td>
<td>
<a
href=
"{{=URL('download', scheme='http', args=row.sequence_file.data_file)}}"
>
dl
</a>
</td>
<td
onclick=
"db.call('file/edit', {'id' :'{{=row.sequence_file.id}}', 'patient_id' :'{{=request.vars['id']}}'} )"
>
e
</td>
<td
onclick=
"db.call('file/confirm', {'id' :'{{=row.sequence_file.id}}', 'patient_id' :'{{=request.vars['id']}}'} )"
>
X
</td>
<td>
{{=row.sequence_file.sampling_date}}
</td>
<td>
{{=row.sequence_file.info}}
</td>
<td>
{{if row.data_file.id == None :}}
...
...
@@ -64,11 +61,13 @@
ready
{{pass}}
</td>
<td>
<a
href=
"{{=URL('download', scheme='http', args=row.sequence_file.data_file)}}"
>
dl
</a>
</td>
<td
onclick=
"db.call('file/edit', {'id' :'{{=row.sequence_file.id}}', 'patient_id' :'{{=request.vars['id']}}'} )"
>
e
</td>
<td
onclick=
"db.call('file/confirm', {'id' :'{{=row.sequence_file.id}}', 'patient_id' :'{{=request.vars['id']}}'} )"
>
X
</td>
</tr>
{{pass}}
</tbody>
</table>
</br>
<span
class=
"button"
onclick=
"db.call('patient/index')"
>
back to list
</span>
<span
class=
"button"
onclick=
"db.call('file/add', { 'id' : '{{=request.vars["
id
"]}}'
}
)"
>
add file
</span>
<span
class=
"button"
onclick=
"db.load( { 'patient_id' : '{{=request.vars["
id
"]}}'
,
'
config_id
'
:
{{=
config_id
}}
}
)"
>
see result
</span>
...
...
server/web2py/applications/Vidjil/views/standard/index.html
View file @
ca77b9c6
...
...
@@ -4,11 +4,11 @@
<div>
<h3>
{{=message}}
</h3>
<table
>
<tr
><td
>
name
</td>
<table
class=
"db_table"
>
<tr
class=
"db_head"
><td
class=
"column1"
>
name
</td>
<td>
info
</td>
<td>
</td>
<td>
</td>
<td
class=
"column5"
>
</td>
<td
class=
"column5"
>
</td>
</tr>
{{
query = None
...
...
Write
Preview
Markdown
is supported
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