Skip to content
Snippets Groups Projects
Commit cd9643ca authored by dcz2's avatar dcz2
Browse files

Fix tabs in the edit view

parent e9484b91
Branches
Tags
No related merge requests found
...@@ -15,7 +15,13 @@ export default { ...@@ -15,7 +15,13 @@ export default {
slowal_frames2selecional_preferencies_mapping: {}, slowal_frames2selecional_preferencies_mapping: {},
lexical_units: [], lexical_units: [],
img_prefix: String, img_prefix: String,
frames: [] frames: [],
right_pane_tabs: [
{id: 'schemata', label: gettext('Schematy')},
{id: 'frame_preview', label: gettext('Podgląd ram')},
{id: 'notes', label: gettext('Notatki')},
],
right_pane_tab: 'schemata'
} }
}, },
components: {InfoTooltip, Spinner}, components: {InfoTooltip, Spinner},
...@@ -693,7 +699,6 @@ export default { ...@@ -693,7 +699,6 @@ export default {
</tr> </tr>
</table> </table>
<div id="semantics-frames"> <div id="semantics-frames">
<table class="table m-0 table-borderless border border-secondary text-dark" <table class="table m-0 table-borderless border border-secondary text-dark"
v-for="frame in frames" v-for="frame in frames"
:key="frame.id" :key="frame.id"
...@@ -705,12 +710,10 @@ export default { ...@@ -705,12 +710,10 @@ export default {
</th> </th>
<th scope="row"> <th scope="row">
<div> <div>
<label v-bind:for="frame.id"> <label v-bind:for="frame.id">
<div><input <div><input
:id="frame.id" :id="frame.id"
type="checkbox" type="checkbox"
v-model="frame.verified" v-model="frame.verified"
:checked="frame.verified" :checked="frame.verified"
class="custom-control custom-checkbox" class="custom-control custom-checkbox"
...@@ -718,35 +721,29 @@ export default { ...@@ -718,35 +721,29 @@ export default {
> >
<span>Zweryfikowane</span></div> <span>Zweryfikowane</span></div>
</label> </label>
<br><br> <a href="#" class="btn btn-sm btn-dark" role="button" <br><br>
@click="change_slowal2unified_frame_argument_mapping(frame.id)">Z</a> <a href="#" class="btn btn-sm btn-dark" role="button" @click="change_slowal2unified_frame_argument_mapping(frame.id)">Z</a>
</div> </div>
</th> </th>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
</div> </div>
<div class="col h-100 px-1 pt-0 pb-0 overflow-auto" id="semantics-schemata-pane"> <div class="col h-100 px-1 pt-0 pb-0 overflow-auto" id="semantics-schemata-pane">
<ul class="nav nav-pills nav-justified p-1" id="entryTabs" role="tablist"> <ul class="nav nav-pills nav-justified p-1" id="entryTabs" role="tablist">
<li class="nav-item mr-1"> <li
<a class="btn btn-sm btn-outline-dark nav-link active" id="unified-frame-semantics-tab" data-toggle="tab" href="#semantics" role="tab" aria-controls="semantics" aria-selected="true"> v-for="tab in right_pane_tabs"
{{ gettext('Schematy') }} class="btn btn-sm btn-outline-dark nav-link mx-1"
</a> :class="right_pane_tab === tab.id && 'active'"
</li> @click="right_pane_tab = tab.id"
<li class="nav-item mr-1"> >
<a class="btn btn-sm btn-outline-dark nav-link" id="unified-frame-view2-tab" data-toggle="tab" href="#syntax" role="tab" aria-controls="syntax" aria-selected="false"> {{ tab.label }}
{{ gettext('Podgląd ram') }}
</a>
</li>
<li class="nav-item mr-0">
<a class="btn btn-sm btn-outline-dark nav-link" id="unified-frame-notes-tab" data-toggle="tab" href="#examples" role="tab" aria-controls="examples" aria-selected="false">
{{ gettext('Notatki') }}
</a>
</li> </li>
</ul> </ul>
<div id="semantics-schemata"></div> <div :class="right_pane_tab !== 'schemata' && 'd-none'" id="semantics-schemata"></div>
<div v-if="right_pane_tab === 'frame_preview'">drugi tab</div>
<div v-if="right_pane_tab === 'notes'">notateczki</div>
</div> </div>
` `
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment