Commit 59f217f3 authored by Guillaume Mella's avatar Guillaume Mella

first attempt to generate cols documentation+add cell lines on tables

parent 903a2f7a
This diff is collapsed.
......@@ -2,7 +2,7 @@
{% block content %}
<div class="mwafisp mauto">
<table id="stars">
<table id="stars" class="cell-border">
<thead>
<tr>
<th>ID1</th>
......
{% extends "jmdc-main.jinja2" %}
{% block content %}
<h1>Catalog schema</h1>
<table class="dataTable cell-border">
<tr>
<th>Name</th><th>Unit</th><th>Desc</th>
</tr>
{% for colname, colfields in columns.items() %}
<tr>
<th>
{{ colname }}
</th>
<th>
{% if colfields['unit'] %}
{{ colfields['unit'] }}
{% endif %}
</th>
<td>{{ colfields['doc'] }}</td>
</tr>
{% endfor %}
</table>
</p>
<h1><a href="http://www.jmmc.fr/twiki/bin/view/Jmmc/Software/JmmcJMDCUserManual">Please find more information onto our wiki page.</a></h1>
{% endblock content %}
......@@ -5,7 +5,7 @@
<div>Soumission postée le {{submission.create_ts}} par {{submission.email}}</div>
<form method="post" action="{{request.route_path('moderate-submission', token=token)}}">
<input type="hidden" name="csrf_token" value="{{ get_csrf_token() }}"/>
<table id="submission-lines">
<table id="submission-lines" class="cell-border">
<thead>
<tr>
<th><button id="toggle-all">click all</button></th>
......
......@@ -2,7 +2,7 @@
{% block content %}
<div class="mwafisp mauto">
<table id="submissions">
<table id="submissions" class="cell-border">
<thead>
<tr>
</tr>
......
from pyramid.view import view_config
from jmdc_app.models import StarInfo
from collections import OrderedDict
@view_config(route_name='jmdc_doc', renderer='../templates/jmdc_doc.jinja2')
def jmdc_doc(request):
session = request.dbsession
return { }
fields = StarInfo.FIELDS_DUMP['fields']
columns=OrderedDict()
for f in StarInfo.MAINFIELDS:
columns[f]=fields[f]
return { "columns": columns }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment