-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #471 from st2135/refactor
fields issue fix
- Loading branch information
Showing
11 changed files
with
392 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<h4>{{ language.translation }}</h4> | ||
|
||
<ul> | ||
<li ng-repeat="dictionary in language.dictionaries"> | ||
<input type="checkbox" ng-checked="controller.isDictionarySelected(dictionary)" ng-click="controller.toggleDictionarySelection(dictionary)"> {{ dictionary.translation }} | ||
<!--<ul>--> | ||
<!--<li ng-repeat="perspective in dictionary.perspectives" ng-init="authors=controller.getPerspectiveAuthors(perspective)">--> | ||
<!--<span>--> | ||
<!--<a ng-href="#/dictionary/{{dictionary.clientId}}/{{dictionary.objectId}}/perspective/{{perspective.clientId}}/{{perspective.objectId}}/view">{{perspective.translation}} <small ng-if="authors">({{ authors }})</small></a>--> | ||
<!--</span>--> | ||
<!--</li>--> | ||
<!--</ul>--> | ||
|
||
</li> | ||
</ul> | ||
|
||
<ul ng-if="language.languages.length > 0"> | ||
<li ng-repeat="language in language.languages" ng-include="'/static/templates/include/availableLanguage.html'"></li> | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,136 @@ | ||
<div class="container" ng-cloak> | ||
|
||
|
||
<div class="panel"> | ||
<button type="button" class="btn btn-primary" ng-click="controller.loadMyDictionaries()"> | ||
<translatable str="My dictionaries">My dictionaries</translatable> | ||
</button> | ||
<button type="button" class="btn btn-primary" ng-click="controller.loadAvailableDictionaries()"> | ||
<translatable str="Available dictionaries">Available dictionaries</translatable> | ||
</button> | ||
</div> | ||
<br> | ||
|
||
|
||
|
||
<div id="loader-wrapper" ng-show="!status"> | ||
<div id="loader"></div> | ||
</div> | ||
|
||
|
||
|
||
<div ng-if="dictionaries.length > 0" ng-show="status"> | ||
<div ng-repeat="dictionary in dictionaries"> | ||
<div> | ||
<div class="btn-group col-md-8 col-sm-8 col-lg-8 col-xs-8"> | ||
<button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" | ||
aria-haspopup="true" aria-expanded="false"> | ||
<span class="caret"></span> | ||
<span class="sr-only">Toggle Dropdown</span> | ||
</button> | ||
<button type="button" class="btn btn-default dropdown-toggle col-md-10 col-lg-11 col-sm-10 col-xs-9" | ||
data-toggle="dropdown">{{ dictionary.translation }} | ||
</button> | ||
<ul class="dropdown-menu"> | ||
<li><a href="" ng-click="controller.editDictionaryProperties(dictionary)"> | ||
<translatable str="Edit information">Properties</translatable> | ||
</a></li> | ||
<li><a href="" ng-click="controller.editDictionaryRoles(dictionary)"> | ||
<translatable str="Edit roles">Edit roles</translatable> | ||
</a></li> | ||
<li><a href="" ng-click="controller.removeDictionary(dictionary)"> | ||
<translatable str="Remove dictionary">Remove dictionary</translatable> | ||
</a></li> | ||
<li role="separator" class="divider"></li> | ||
<li><a href="" ng-click="controller.createPerspective(dictionary)"> | ||
<translatable str="Create new perspective">Create a new perspective</translatable> | ||
</a></li> | ||
</ul> | ||
</div> | ||
<div class="btn-group col-md-4 col-sm-4 col-lg-4"> | ||
<button type="button" class="btn btn-info col-md-10 col-lg-11 col-sm-10 col-xs-8" | ||
data-toggle="dropdown">{{ controller.getDictionaryStatus(dictionary).content }} | ||
</button> | ||
<button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" | ||
aria-haspopup="true" aria-expanded="false"> | ||
<span class="caret"></span> | ||
<span class="sr-only">Toggle Dropdown</span> | ||
</button> | ||
<ul class="dropdown-menu"> | ||
<li ng-repeat="status in controller.getStatuses()"><a href="" | ||
ng-click="controller.setDictionaryStatus(dictionary, status)">{{status.content}}</a> | ||
</li> | ||
</ul> | ||
</div> | ||
|
||
</div> | ||
|
||
<br><br> | ||
|
||
<div> | ||
<div ng-repeat="perspective in dictionary.perspectives"> | ||
<div class="btn-group btn-group-xs col-lg-offset-1 col-md-offset-1 col-sm-offset-1 col-xs-offset-1 col-md-7 col-sm-7 col-lg-7 col-xs-7"> | ||
<button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" | ||
aria-haspopup="true" aria-expanded="false"> | ||
<span class="caret"></span> | ||
<span class="sr-only">Toggle Dropdown</span> | ||
</button> | ||
<button type="button" | ||
class="btn btn-default col-md-10 col-lg-11 col-sm-10 col-xs-9 dropdown-toggle" | ||
data-toggle="dropdown">{{ perspective.translation }} | ||
</button> | ||
<ul class="dropdown-menu"> | ||
<li><a href="" | ||
ng-attr-href="{{ controller.getActionLink(dictionary, perspective, 'view') }}"> | ||
<translatable str="View published">View published</translatable> | ||
</a></li> | ||
<li><a href="" | ||
ng-attr-href="{{ controller.getActionLink(dictionary, perspective, 'edit') }}"> | ||
<translatable str="Edit">Edit</translatable> | ||
</a></li> | ||
<li role="separator" class="divider"></li> | ||
<li><a href="" ng-click="controller.editPerspectiveRoles(dictionary, perspective)"> | ||
<translatable str="Edit roles">Roles</translatable> | ||
</a></li> | ||
<li><a href="" ng-click="controller.editPerspectiveProperties(dictionary, perspective)"> | ||
<translatable str="Edit properties">Properties</translatable> | ||
</a></li> | ||
<li><a href="" ng-click="controller.removePerspective(dictionary, perspective)"> | ||
<translatable str="Remove perspective">Remove perspective</translatable> | ||
</a></li> | ||
|
||
</ul> | ||
</div> | ||
<div class="btn-group btn-group-xs col-md-4 col-sm-4 col-lg-4 col-xs-4 "> | ||
<button type="button" | ||
class="btn btn-info dropdown-toggle col-md-10 col-lg-11 col-sm-10 col-xs-8" | ||
data-toggle="dropdown">{{ controller.getPerspectiveStatus(perspective).content }} | ||
</button> | ||
<button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" | ||
aria-haspopup="true" aria-expanded="false"> | ||
<span class="caret"></span> | ||
<span class="sr-only">Toggle Dropdown</span> | ||
</button> | ||
<ul class="dropdown-menu"> | ||
<li ng-repeat="status in controller.getStatuses()"><a href="" | ||
ng-click="controller.setPerspectiveStatus(perspective, status)">{{status.content}}</a> | ||
</li> | ||
</ul> | ||
</div> | ||
<br><br> | ||
</div> | ||
</div> | ||
<hr> | ||
</div> | ||
</div> | ||
|
||
<div ng-if="dictionaries.length == 0" ng-show="status"> | ||
<span>No dictionaries</span> | ||
</div> | ||
|
||
<hr> | ||
|
||
<a href="#/dictionary/create" class="btn btn-primary"> | ||
<translatable str="Create dictionary...">Create dictionary...</translatable> | ||
</a> | ||
</div> |
Oops, something went wrong.