ui regactoring
This commit is contained in:
parent
d4cdf11384
commit
cb03b3312d
|
@ -49,7 +49,7 @@
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<div class="text-muted" ng-if="currentDuplicates.length == 0">No duplicates</div>
|
<div class="text-muted" ng-if="currentDuplicates.length == 0">No duplicates</div>
|
||||||
<org-details org="currentOrgDetails" org-title="Registered organization" show="default"></org-details>
|
<org-details org="currentOrgDetails" org-title="Registered organization" show="default"></org-details>
|
||||||
<org-form-duplicates duplicates="currentDuplicates"></org-form-duplicates>
|
<org-duplicates duplicates="currentDuplicates"></org-form-duplicates>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
|
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
|
||||||
|
|
|
@ -4,5 +4,7 @@
|
||||||
<li class="nav-item"><a href="javascript:void(0)" class="nav-link active">Metadata</a></li>
|
<li class="nav-item"><a href="javascript:void(0)" class="nav-link active">Metadata</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<org-form-metadata org="org" vocabularies="vocabularies" mode="insert"></org-form-metadata>
|
<div class="card-body">
|
||||||
|
<org-form-metadata org="org" vocabularies="vocabularies" mode="insert"></org-form-metadata>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -30,11 +30,11 @@
|
||||||
|
|
||||||
<div class="card-body" ng-if="currentTab == 2 && (org.status == 'approved' || org.status == 'suggested')">
|
<div class="card-body" ng-if="currentTab == 2 && (org.status == 'approved' || org.status == 'suggested')">
|
||||||
<org-details org="org" org-title="Current organization" show="default"></org-details>
|
<org-details org="org" org-title="Current organization" show="default"></org-details>
|
||||||
<org-form-duplicates duplicates="duplicates" save-function="saveDuplicates()" show-save-button="1"></org-form-duplicates>
|
<org-duplicates duplicates="duplicates" save-function="saveDuplicates()" show-save-button="1"></org-form-duplicates>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="card-body" ng-if="currentTab == 3 && (org.status == 'approved' || org.status == 'suggested')">
|
<div class="card-body" ng-if="currentTab == 3 && (org.status == 'approved' || org.status == 'suggested')">
|
||||||
<org-form-conflicts org="org" conflicts="conflicts" save-function="saveConflicts()" show-save-button="1"></org-form-conflicts>
|
<org-conflicts org="org" conflicts="conflicts" save-function="saveConflicts()" show-save-button="1"></org-form-conflicts>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -204,7 +204,7 @@ orgsModule.directive('orgResultsPage', function($http, $location, $route) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
orgsModule.directive('orgFormDuplicates', function($http, $location, $route) {
|
orgsModule.directive('orgDuplicates', function($http, $location, $route) {
|
||||||
return {
|
return {
|
||||||
restrict: 'E',
|
restrict: 'E',
|
||||||
scope: {
|
scope: {
|
||||||
|
@ -212,12 +212,12 @@ orgsModule.directive('orgFormDuplicates', function($http, $location, $route) {
|
||||||
'showSaveButton' : '@',
|
'showSaveButton' : '@',
|
||||||
'saveFunction' : '&'
|
'saveFunction' : '&'
|
||||||
},
|
},
|
||||||
templateUrl: 'resources/html/forms/org_duplicates.html',
|
templateUrl: 'resources/html/parts/org_duplicates.html',
|
||||||
link: function(scope, element, attrs, ctrl) {}
|
link: function(scope, element, attrs, ctrl) {}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
orgsModule.directive('orgFormConflicts', function($http, $location, $route, $q) {
|
orgsModule.directive('orgConflicts', function($http, $location, $route, $q) {
|
||||||
return {
|
return {
|
||||||
restrict: 'E',
|
restrict: 'E',
|
||||||
scope: {
|
scope: {
|
||||||
|
@ -226,7 +226,7 @@ orgsModule.directive('orgFormConflicts', function($http, $location, $route, $q)
|
||||||
'showSaveButton' : '@',
|
'showSaveButton' : '@',
|
||||||
'saveFunction' : '&'
|
'saveFunction' : '&'
|
||||||
},
|
},
|
||||||
templateUrl: 'resources/html/forms/org_conflicts.html',
|
templateUrl: 'resources/html/parts/org_conflicts.html',
|
||||||
link: function(scope, element, attrs, ctrl) {
|
link: function(scope, element, attrs, ctrl) {
|
||||||
scope.candidateConflicts = [];
|
scope.candidateConflicts = [];
|
||||||
scope.selectedConflicts = [];
|
scope.selectedConflicts = [];
|
||||||
|
|
Loading…
Reference in New Issue