Skip to content
Snippets Groups Projects
Commit 3781788e authored by srosse's avatar srosse
Browse files

OO-1684: fix id of orientation GUI element, fix wording, fix preview link

parent e6114b76
No related branches found
No related tags found
No related merge requests found
......@@ -101,13 +101,13 @@ public class CertificateChooserController extends UploadCertificateController {
fileEl.addActionListener(FormEvent.ONCHANGE);
String[] orientationValues = new String[]{
translate("portrait"), translate("orientation")
translate("portrait"), translate("landscape")
};
orientationEl = uifactory.addRadiosVertical("orientation", formLayout, orientationKeys, orientationValues);
orientationEl.select(orientationKeys[0], true);
orientationEl.setVisible(false);
formatEl = uifactory.addRadiosVertical("orientation", formLayout, formatKeys, formatKeys);
formatEl = uifactory.addRadiosVertical("format", formLayout, formatKeys, formatKeys);
formatEl.select(formatKeys[0], true);
formatEl.setVisible(false);
......
......@@ -187,7 +187,6 @@ public class CertificatesOptionsController extends FormBasicController {
}
previewTemplateLink = LinkFactory.createButton("preview", templateCont.getFormItemComponent(), this);
previewTemplateLink.setEnabled(hasTemplate);
previewTemplateLink.setTarget("preview");
boolean reCertificationEnabled = courseConfig.isRecertificationEnabled();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment