Skip to content

Commit

Permalink
phonology updates and fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Beloborodov committed Oct 28, 2017
1 parent 3af614c commit 2d285b3
Show file tree
Hide file tree
Showing 21 changed files with 7,745 additions and 6,604 deletions.
3,587 changes: 1,897 additions & 1,690 deletions lingvodoc/static/js/lingvodoc.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions lingvodoc/static/js/lingvodoc.js.map

Large diffs are not rendered by default.

43 changes: 32 additions & 11 deletions lingvodoc/static/templates/modal/perspectivePhonology.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,21 +50,42 @@ <h3 class="modal-title">Perspective phonology</h3>
</div>
</div>

<div style="margin-top: 0.5em; margin-bottom: 0.5em;">Translation showing:</div>
<!-- Translation field selection. -->

<label style="font-weight: normal">
<input type="radio" name="translation_all" ng-model="translation_choice" value="all">
Show all translations of each word.
</label>
<div style="margin-top: 0.5em; margin-bottom: 0.5em;"
ng-if="text_field_list.length > 0">
Translation field:

<br>
<select ng-model="translation_field_id"
ng-change="controller.select_field(translation_field_id)"
class="form-control"
style="width: auto">
<option ng-repeat="field in text_field_list" value="{{field.getId}}">
{{ field.translation }}
</option>
</select>

<label style="font-weight: normal">
<input type="radio" name="translation_first" ng-model="translation_choice" value="first">
Show only the first translation of each word.
</label>
<br>

<br>
<label style="font-weight: normal">
<input type="radio" name="translation_all" ng-model="translation_choice" value="all">
Show all translations of each word.
</label>

<br>

<label style="font-weight: normal">
<input type="radio" name="translation_first" ng-model="translation_choice" value="first">
Show only the first translation of each word.
</label>
</div>

<!-- Notification if we have no fields to select translation field from. -->

<div style="margin-top: 0.5em; margin-bottom: 0.5em;"
ng-if="text_field_list.length <= 0">
No translation fields available.
</div>

<div style="margin-top: 0.5em; margin-bottom: 0.5em;">
<label style="font-weight: normal">
Expand Down
Loading

0 comments on commit 2d285b3

Please sign in to comment.