value = allowedAffiliations.getValueAsMap();
- if (value.isEmpty()) {
- unauthorized();
- return;
- }
-
- for (String key: value.keySet()) {
- Option option = new Option();
- String val = value.get(key).toString().replaceAll("\"", "");
- option.setText(val);
- option.setValue(val);
- organizationSelect.add(option);
- }
- organizationSelect.refresh();
- }
-
- private void unauthorized() {
- unauthorized.setVisible(true);
- form.setVisible(false);
- setInputsEnabled(false, false);
- }
-
- private void onLoadingFinished(boolean unlockSubmit) {
- loader.onFinished();
- loader.setVisible(false);
- setInputsEnabled(true, unlockSubmit);
- }
-
- private void setInputsEnabled(boolean enabled, boolean allowSubmit) {
- userSearchbar.setEnabled(enabled);
- userSelect.setEnabled(enabled);
- organizationSelect.setEnabled(enabled);
- searchUserBtn.setEnabled(enabled);
- if (!enabled || allowSubmit) {
- memberCheckbox.setEnabled(enabled);
- facultyCheckbox.setEnabled(enabled);
- affiliateCheckbox.setEnabled(enabled);
- submitBtn.setEnabled(enabled);
- }
- }
-
- private void setupCheckboxes(boolean checked, boolean enabled) {
- memberCheckbox.setValue(checked);
- facultyCheckbox.setValue(checked);
- affiliateCheckbox.setValue(checked);
-
- memberCheckbox.setEnabled(enabled);
- facultyCheckbox.setEnabled(enabled);
- affiliateCheckbox.setEnabled(enabled);
- }
-
- private void reset() {
- userSearchbar.setValue("");
- userSelect.clear();
- userSelect.setEnabled(false);
- submitBtn.setEnabled(false);
- setupCheckboxes(false, false);
- userSearchbar.setFocus(true);
- }
-}
diff --git a/perun-wui-setAffiliation/src/main/java/cz/metacentrum/perun/wui/setAffiliation/pages/affiliation/AffiliationView.ui.xml b/perun-wui-setAffiliation/src/main/java/cz/metacentrum/perun/wui/setAffiliation/pages/affiliation/AffiliationView.ui.xml
deleted file mode 100644
index 141bbb86..00000000
--- a/perun-wui-setAffiliation/src/main/java/cz/metacentrum/perun/wui/setAffiliation/pages/affiliation/AffiliationView.ui.xml
+++ /dev/null
@@ -1,98 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/perun-wui-setAffiliation/src/main/java/cz/metacentrum/perun/wui/setAffiliation/perun-wui-setAffiliation-dev.gwt.xml b/perun-wui-setAffiliation/src/main/java/cz/metacentrum/perun/wui/setAffiliation/perun-wui-setAffiliation-dev.gwt.xml
deleted file mode 100644
index 481f3d81..00000000
--- a/perun-wui-setAffiliation/src/main/java/cz/metacentrum/perun/wui/setAffiliation/perun-wui-setAffiliation-dev.gwt.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/perun-wui-setAffiliation/src/main/java/cz/metacentrum/perun/wui/setAffiliation/perun-wui-setAffiliation.gwt.xml b/perun-wui-setAffiliation/src/main/java/cz/metacentrum/perun/wui/setAffiliation/perun-wui-setAffiliation.gwt.xml
deleted file mode 100644
index 53c0ccf6..00000000
--- a/perun-wui-setAffiliation/src/main/java/cz/metacentrum/perun/wui/setAffiliation/perun-wui-setAffiliation.gwt.xml
+++ /dev/null
@@ -1,37 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/perun-wui-setAffiliation/src/main/resources/cz/metacentrum/perun/wui/setAffiliation/client/resources/PerunSetAffiliationTranslation_cs.properties b/perun-wui-setAffiliation/src/main/resources/cz/metacentrum/perun/wui/setAffiliation/client/resources/PerunSetAffiliationTranslation_cs.properties
deleted file mode 100644
index bd7c403f..00000000
--- a/perun-wui-setAffiliation/src/main/resources/cz/metacentrum/perun/wui/setAffiliation/client/resources/PerunSetAffiliationTranslation_cs.properties
+++ /dev/null
@@ -1,17 +0,0 @@
-setAffiliationTitle=Nastavit afiliace
-userSearchbarLabel=Vyhledejte uživatele
-userSearchbarPlaceholder=Zadejte jméno nebo email uživatele...
-searchUserBtn=Hledat
-userSelectLabel=Zvolte uživatele
-affiliationTitleLabel=Afiliace
-affiliationMember=Uživatel má formální afiliaci s organizací
-affiliationFaculty=Uživatel je výzkumník nebo učitel
-affiliationAffiliate=Uživatel má neformální afiliaci s organizací
-organizationLabel=Vyberte organizaci
-submit=Uložit
-success=Změny byly úspěšne uloženy
-loadingData=Zpracovávám požadavek, prosím čekejte
-userSelectPlaceholder=Vyberte uživatele ze seznamu
-unauthorizedMessage=Nemáte oprávnení nastavovat afiliace
-voGroupSelectLabel=Zvolte VO nebo skupinu pro vyhledání uživatele
-noUsersFound=Nebyl nalezen žádný uživatel
\ No newline at end of file
diff --git a/perun-wui-setAffiliation/src/main/resources/cz/metacentrum/perun/wui/setAffiliation/client/resources/PerunWebConstants.properties b/perun-wui-setAffiliation/src/main/resources/cz/metacentrum/perun/wui/setAffiliation/client/resources/PerunWebConstants.properties
deleted file mode 100644
index 6868b76c..00000000
--- a/perun-wui-setAffiliation/src/main/resources/cz/metacentrum/perun/wui/setAffiliation/client/resources/PerunWebConstants.properties
+++ /dev/null
@@ -1,6 +0,0 @@
-perunRpcUrlModifier=${gui.url.modifier}
-pendingRequestsRefreshInterval=10000
-footerPerunLink=https://perun.cesnet.cz/
-footerPerunLicense=license
-footerPerunCopyright=© CESNET, CERIT 2011 - 2020
-guiVersion=${version} rev. ${buildNumber}
diff --git a/perun-wui-setAffiliation/src/main/resources/cz/metacentrum/perun/wui/setAffiliation/client/resources/css/PerunSetAffiliation.gss b/perun-wui-setAffiliation/src/main/resources/cz/metacentrum/perun/wui/setAffiliation/client/resources/css/PerunSetAffiliation.gss
deleted file mode 100644
index 0b74d903..00000000
--- a/perun-wui-setAffiliation/src/main/resources/cz/metacentrum/perun/wui/setAffiliation/client/resources/css/PerunSetAffiliation.gss
+++ /dev/null
@@ -1,69 +0,0 @@
-
-@def MIN_WIDTH 320px;
-@def MIN_HEIGHT 320px;
-
-/* MAIN LAYOUT */
-
-body {
- min-width: MIN_WIDTH;
- min-height: MIN_HEIGHT;
-}
-
-.webContent {
- position: relative; /* previously absolute - fixes overflow issue, but should be solved otherwise */
- height: 100%;
- width: 100%;
-
- display: flex;
- flex-direction: column;
- align-items: stretch;
-}
-
-/* Since we show left-menu on bigger screen, align header too */
-@media screen and (min-width: 768px) {
- .logoWrapper {
- text-align: center;
- min-width: 250px;
- display: inline-block;
- margin-left: 15px;
- /*margin-right: 15px;*/
- }
-}
-
-/* MAIN CONTENT */
-
-.pageWrapper {
- display: flex;
- flex-direction: column;
- align-items: stretch;
- flex-grow: 1;
-}
-
-.page {
- display: flex;
- min-height: 75vh;
- flex-direction: column;
- align-items: stretch;
- flex-grow: 1;
-}
-
-.mb1 {
- margin-bottom: 1%;
-}
-
-.pl0 {
- padding-left: 0;
-}
-
-.mt0 {
- margin-top: 0;
-}
-
-
-/* HACKS */
-@media screen and (max-width: 768px) {
- .mobileContainer {
- margin-left: 0px !important;
- margin-right: 0px !important;
- }
-}
\ No newline at end of file
diff --git a/perun-wui-setAffiliation/src/main/webapp/PerunSetAffiliation.html b/perun-wui-setAffiliation/src/main/webapp/PerunSetAffiliation.html
deleted file mode 100644
index 0d09d9a7..00000000
--- a/perun-wui-setAffiliation/src/main/webapp/PerunSetAffiliation.html
+++ /dev/null
@@ -1,216 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Perun - Assign user affiliation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/perun-wui-setAffiliation/src/main/webapp/PerunSetAffiliationBBMRI.html b/perun-wui-setAffiliation/src/main/webapp/PerunSetAffiliationBBMRI.html
deleted file mode 100644
index d865a801..00000000
--- a/perun-wui-setAffiliation/src/main/webapp/PerunSetAffiliationBBMRI.html
+++ /dev/null
@@ -1,484 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Perun - Assign user affiliation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/perun-wui-setAffiliation/src/main/webapp/PerunSetAffiliationCEITEC.html b/perun-wui-setAffiliation/src/main/webapp/PerunSetAffiliationCEITEC.html
deleted file mode 100644
index 679f60b4..00000000
--- a/perun-wui-setAffiliation/src/main/webapp/PerunSetAffiliationCEITEC.html
+++ /dev/null
@@ -1,228 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Perun - Assign user affiliation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/perun-wui-setAffiliation/src/main/webapp/PerunSetAffiliationCESNET.html b/perun-wui-setAffiliation/src/main/webapp/PerunSetAffiliationCESNET.html
deleted file mode 100644
index 8086f301..00000000
--- a/perun-wui-setAffiliation/src/main/webapp/PerunSetAffiliationCESNET.html
+++ /dev/null
@@ -1,297 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Perun - Assign user affiliation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/perun-wui-setAffiliation/src/main/webapp/PerunSetAffiliationElixir.html b/perun-wui-setAffiliation/src/main/webapp/PerunSetAffiliationElixir.html
deleted file mode 100644
index d42d9d2d..00000000
--- a/perun-wui-setAffiliation/src/main/webapp/PerunSetAffiliationElixir.html
+++ /dev/null
@@ -1,265 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Perun - Assign user affiliation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/perun-wui-setAffiliation/src/main/webapp/WEB-INF/web.xml b/perun-wui-setAffiliation/src/main/webapp/WEB-INF/web.xml
deleted file mode 100644
index 28b415f1..00000000
--- a/perun-wui-setAffiliation/src/main/webapp/WEB-INF/web.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
diff --git a/perun-wui-setAffiliation/src/main/webapp/static b/perun-wui-setAffiliation/src/main/webapp/static
deleted file mode 120000
index 4445ecbf..00000000
--- a/perun-wui-setAffiliation/src/main/webapp/static
+++ /dev/null
@@ -1 +0,0 @@
-../../../../perun-wui-core/src/main/webapp/
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index a137c7fa..6f8de627 100644
--- a/pom.xml
+++ b/pom.xml
@@ -17,7 +17,6 @@
perun-wui-consolidator
perun-wui-pwdreset
perun-wui-profile
- perun-wui-setAffiliation