}
@Override
@SuppressWarnings("unused")
protected void initForm(FormItemContainer formLayout, Controller listener, UserRequest ureq) {
PackageTranslator pt = (PackageTranslator) Util.createPackageTranslator(PropPupForm.class, getLocale(), getTranslator());
FormItemContainer fic = FormLayoutContainer.createCustomFormLayout("access", pt, this.velocity_root+"/publish_courseaccess.html");
formLayout.add(fic);
String[] keys = new String[] {
"" + RepositoryEntry.ACC_OWNERS,
"" + RepositoryEntry.ACC_OWNERS_AUTHORS,
"" + RepositoryEntry.ACC_USERS,
"" + RepositoryEntry.ACC_USERS_GUESTS
};
String[] values = new String[] {
pt.translate("cif.access.owners"),
pt.translate("cif.access.owners_authors"),
pt.translate("cif.access.users"),
pt.translate("cif.access.users_guests"),
};
//use the addDropDownSingleselect method with null as label i18n - key, because there is no label to set. OLAT-3682
accessSelbox = uifactory.addDropdownSingleselect("accessBox",null, fic, keys, values, null);
accessSelbox.select(selectedAccess, true);