forked from kristjan/cjvt-valency
frontend_devops fix
This commit is contained in:
64
dip_src/flask_app/templates/frames.html
Normal file
64
dip_src/flask_app/templates/frames.html
Normal file
@@ -0,0 +1,64 @@
|
||||
{% for frame in frames %}
|
||||
<div class="frame-div">
|
||||
<div hidden class="frame-hw-id">{{ frame.tids[0] }}</div>
|
||||
<div class="frame-table-wrapper">
|
||||
<table class="frame-table">
|
||||
<tr>
|
||||
{% for slot in frame.slots %}
|
||||
<td><span class="functor-link {{ slot.tids|join(' ') }}">{{ slot.functor }}</span></td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
<tr>
|
||||
{% for slot in frame.slots %}
|
||||
<td title="št. pojavitev/št. povedi">{{ slot.tids|length }}/{{ frame.tids|length }}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table class="frame-sense">
|
||||
<tr class="frame-sense-id">
|
||||
<td>ID pomena: </td>
|
||||
<td>
|
||||
<input type="text" name="sense_id" value="{{ frame.sense_info.get('sense_id') }}">
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="frame-sense-desc">
|
||||
<td>Opis pomena: </td>
|
||||
<td>
|
||||
<!--input type="text" name="sense_desc" value="{{ frame.sense_info.get('sense_desc') }}"-->
|
||||
<ul>
|
||||
{% set desc_arr = frame.sense_info.get('sense_desc') %}
|
||||
{% if desc_arr is not none %}
|
||||
{% for desc in desc_arr %}
|
||||
<li>{{ desc }}</li>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="frame-sentences-wrapper">
|
||||
<p><a class="monospace sign-element" href="javascript:void(0)" onClick="toggle_frame_sentences($(this))">[+]</a> št. stavkov: {{ frame.tids|length }}</p>
|
||||
<div hidden class="frame-sentences">
|
||||
<table>
|
||||
{% for sentence in frame.sentences %}
|
||||
<tr><td>
|
||||
{% for token in sentence %}
|
||||
{% if token[1]["word"] != None %}
|
||||
{% set hwclass = "" %}
|
||||
{% if token[0] in frame.tids %}
|
||||
{% set hwclass = " hw-highlight" %}
|
||||
{% endif %}
|
||||
<span class="functor-link {{ token[0] }}{{ hwclass }}">{{ token[1]["word"] }} </span>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</td></tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
</div>
|
||||
<hr />
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
40
dip_src/flask_app/templates/frames_old.html
Normal file
40
dip_src/flask_app/templates/frames_old.html
Normal file
@@ -0,0 +1,40 @@
|
||||
{% for frame in frames %}
|
||||
<div class="frame-div">
|
||||
<p>[{% for tid in frame.tids %}
|
||||
<a href="javascript:void(0)" onClick="get_token_info('{{ tid }}', this)">{{ tid }}</a>
|
||||
{% if not loop.last %}
|
||||
,
|
||||
{% endif %}
|
||||
{% endfor %}]</p>
|
||||
|
||||
<table class="frame-table">
|
||||
<tr>
|
||||
{% for slot in frame.slots %}
|
||||
<td class="{{ slot.tids|join(" ") }}">{{ slot.functor }}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
<tr>
|
||||
{% for slot in frame.slots %}
|
||||
<td>{% for sh in slot.shallows %}
|
||||
{{ sh }}
|
||||
{% if not loop.last %}
|
||||
,
|
||||
{% endif %}
|
||||
{% endfor %}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
<tr>
|
||||
{% for slot in frame.slots %}
|
||||
<td>{% for tid in slot.tids %}
|
||||
<a href="javascript:void(0)" onClick="get_token_info('{{ tid }}', this)">{{ tid }}</a>
|
||||
{% if not loop.last %}
|
||||
,
|
||||
{% endif %}
|
||||
{% endfor %}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
</table>
|
||||
<div class="token-div"></div>
|
||||
<hr />
|
||||
</div>
|
||||
{% endfor %}
|
||||
37
dip_src/flask_app/templates/index.html
Normal file
37
dip_src/flask_app/templates/index.html
Normal file
@@ -0,0 +1,37 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<meta charset="utf-8">
|
||||
<link rel=stylesheet type=text/css href="{{ url_for('static', filename='./lib/bootstrap/css/bootstrap.min.css') }}">
|
||||
<link rel=stylesheet type=text/css href="{{ url_for('static', filename='style.css') }}">
|
||||
<head>
|
||||
<title>Leksikon</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id=header>
|
||||
<h2>Leksikon vezljivosti slovenskih glagolov</h2>
|
||||
<div id=letters></div>
|
||||
</div>
|
||||
<div id=main-body>
|
||||
<div id=left>
|
||||
<div id=words></div>
|
||||
</div>
|
||||
<div id=main-content>
|
||||
<div id=reduce-functions></div>
|
||||
<div id=word-info>
|
||||
<div id=word-info-left>
|
||||
<h3 id="chosen-one"></h3>
|
||||
<p><span id="n-frames"></span></p>
|
||||
</div>
|
||||
<div id="word-info-right">
|
||||
<!--button onclick="user_input_menu('new')">debug_button</button-->
|
||||
</div>
|
||||
</div>
|
||||
<div id=frames-area></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="{{ url_for('static', filename='./lib/jquery.min.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='./lib/bootstrap/js/bootstrap.min.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='script.js') }}"></script>
|
||||
</body>
|
||||
</html>
|
||||
5
dip_src/flask_app/templates/letters.html
Normal file
5
dip_src/flask_app/templates/letters.html
Normal file
@@ -0,0 +1,5 @@
|
||||
{% for l in letters %}
|
||||
<span>
|
||||
<a href="javascript:get_words('{{ l[0] }}')">{{ l[0]|upper + "(" + l[1]|string + ")" }}</a>
|
||||
</span>
|
||||
{% endfor %}
|
||||
10
dip_src/flask_app/templates/reduce_functions.html
Normal file
10
dip_src/flask_app/templates/reduce_functions.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<div class="row">
|
||||
<div class="container">
|
||||
<div class="col-sm-2">Način prikaza:</div>
|
||||
<div class="col-sm-10">
|
||||
{% for k, e in reduce_functions.items() | sort(attribute="0") %}
|
||||
<label class=radio-inline title="{{ e['desc'] }}"><input type="radio" name="rf" value="{{ k }}">{{ e["simple_name"] }}</label>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
6
dip_src/flask_app/templates/sense_groups.html
Normal file
6
dip_src/flask_app/templates/sense_groups.html
Normal file
@@ -0,0 +1,6 @@
|
||||
<select>
|
||||
<option disabled selected value>-- izberi --</option>
|
||||
{% for sg in sense_groups %}
|
||||
<option {% if sg == state_sense_group %}selected {% endif %}onclick="pick_sense_group('{{ sg }}', true)">{{ sg }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
6
dip_src/flask_app/templates/tmp.html
Normal file
6
dip_src/flask_app/templates/tmp.html
Normal file
@@ -0,0 +1,6 @@
|
||||
|
||||
{% set alphabet = ["A", "B", "C", "Č", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "R", "S", "Š", "T", "U", "V", "Z", "Ž"] %}
|
||||
{% for i in range(0, alphabet|length - 1) %}
|
||||
<span><a href="javascript:get_words('{{ alphabet[i] }}')">{{ alphabet[i] }}</a>, </span>
|
||||
{% endfor %}
|
||||
<a href="javascript:get_words('{{ alphabet[-1] }}')">{{ alphabet[-1] }}</a>
|
||||
16
dip_src/flask_app/templates/token.html
Normal file
16
dip_src/flask_app/templates/token.html
Normal file
@@ -0,0 +1,16 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td>{{ tid }}: </td>
|
||||
<td>{{ token }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Stavek: </td>
|
||||
<td class="token-sentence">{% for token in sentence %}
|
||||
<span title="{{ token[1] }}" class="{{ token[0] }}">{{ token[1]["word"] }}</span>
|
||||
{% endfor %}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>sense_ids: </td>
|
||||
<td>{{ sense_ids }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
12
dip_src/flask_app/templates/words.html
Normal file
12
dip_src/flask_app/templates/words.html
Normal file
@@ -0,0 +1,12 @@
|
||||
<ul>
|
||||
{% for w in words %}
|
||||
<li>
|
||||
<a href="javascript:get_frames('{{ w[0] }}')">{{ w[0] + " (" + w[1]|string + ")" }}
|
||||
{# Star indicates sense data has been preprocessed. #}
|
||||
{% if w[2] %}
|
||||
{{ "*" }}
|
||||
{% endif %}
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
Reference in New Issue
Block a user