Skip to content
Snippets Groups Projects
Commit 944a388c authored by srosse's avatar srosse
Browse files

Merge with 9bd4d9f92b994108c7753184c31b365efae5db55

parents 97357df0 c18d93f9
No related branches found
No related tags found
No related merge requests found
Showing
with 52 additions and 29 deletions
...@@ -139,3 +139,5 @@ b38ed621ea53507fbf41eb616648ebad2340e613 OpenOLAT 10.4.7 ...@@ -139,3 +139,5 @@ b38ed621ea53507fbf41eb616648ebad2340e613 OpenOLAT 10.4.7
08b8af93a2792b290172f020349ee09b180f9a89 OpenOLAT 10.4.10 08b8af93a2792b290172f020349ee09b180f9a89 OpenOLAT 10.4.10
79164950a567903de3f1a3662101cc2f2c258f11 OpenOLAT 10.4.11 79164950a567903de3f1a3662101cc2f2c258f11 OpenOLAT 10.4.11
e5ce704b8373f55f65e85f7aadf5600207209dff OpenOLAT 10.5.0 e5ce704b8373f55f65e85f7aadf5600207209dff OpenOLAT 10.5.0
e5ce704b8373f55f65e85f7aadf5600207209dff OpenOLAT 10.5.0
f1a0784814fb3b4b6e707c528ea8e50002a72036 OpenOLAT 10.5.0
...@@ -1352,15 +1352,17 @@ public class BaseFullWebappController extends BasicController implements DTabs, ...@@ -1352,15 +1352,17 @@ public class BaseFullWebappController extends BasicController implements DTabs,
userToolsMenuCtrl.lock(); userToolsMenuCtrl.lock();
} }
for(int i=dtabsControllers.size(); i-->0; ) { if(dtabsControllers != null) {
DTab tab = dtabs.get(i); for(int i=dtabsControllers.size(); i-->0; ) {
if(lockResource == null DTab tab = dtabs.get(i);
|| !lockResource.getResourceableId().equals(tab.getOLATResourceable().getResourceableId())) { if(lockResource == null
removeDTab(null, tab); || !lockResource.getResourceableId().equals(tab.getOLATResourceable().getResourceableId())) {
} else if (lockResource != null removeDTab(null, tab);
&& lockResource.getResourceableId().equals(tab.getOLATResourceable().getResourceableId()) } else if (lockResource != null
&& lockStatus != LockStatus.locked) { && lockResource.getResourceableId().equals(tab.getOLATResourceable().getResourceableId())
removeDTab(null, tab); && lockStatus != LockStatus.locked) {
removeDTab(null, tab);
}
} }
} }
navSitesVc.contextPut("visible", Boolean.FALSE); navSitesVc.contextPut("visible", Boolean.FALSE);
......
...@@ -573,7 +573,7 @@ public class GTACourseNode extends AbstractAccessableCourseNode implements Persi ...@@ -573,7 +573,7 @@ public class GTACourseNode extends AbstractAccessableCourseNode implements Persi
+ "_" + assessedIdentity.getKey(); + "_" + assessedIdentity.getKey();
Task task = gtaManager.getTask(assessedIdentity, taskList); Task task = gtaManager.getTask(assessedIdentity, taskList);
if(task != null && config.getBooleanSafe(GTASK_ASSIGNMENT)) { if(task != null && task.getTaskName() != null && config.getBooleanSafe(GTASK_ASSIGNMENT)) {
File taskDirectory = gtaManager.getTasksDirectory(course.getCourseEnvironment(), this); File taskDirectory = gtaManager.getTasksDirectory(course.getCourseEnvironment(), this);
File taskFile = new File(taskDirectory, task.getTaskName()); File taskFile = new File(taskDirectory, task.getTaskName());
if(taskFile.exists()) { if(taskFile.exists()) {
...@@ -618,7 +618,7 @@ public class GTACourseNode extends AbstractAccessableCourseNode implements Persi ...@@ -618,7 +618,7 @@ public class GTACourseNode extends AbstractAccessableCourseNode implements Persi
+ "_" + businessGroup.getKey(); + "_" + businessGroup.getKey();
Task task = gtaManager.getTask(businessGroup, taskList); Task task = gtaManager.getTask(businessGroup, taskList);
if(task != null && config.getBooleanSafe(GTASK_ASSIGNMENT)) { if(task != null && task.getTaskName() != null && config.getBooleanSafe(GTASK_ASSIGNMENT)) {
File taskDirectory = gtaManager.getTasksDirectory(course.getCourseEnvironment(), this); File taskDirectory = gtaManager.getTasksDirectory(course.getCourseEnvironment(), this);
File taskFile = new File(taskDirectory, task.getTaskName()); File taskFile = new File(taskDirectory, task.getTaskName());
if(taskFile.exists()) { if(taskFile.exists()) {
......
...@@ -356,6 +356,10 @@ public class CheckListRunController extends FormBasicController implements Contr ...@@ -356,6 +356,10 @@ public class CheckListRunController extends FormBasicController implements Contr
return checkboxEl.getName(); return checkboxEl.getName();
} }
public boolean hasDownload() {
return StringHelper.containsNonWhitespace(checkbox.getFilename()) && downloadLink != null;
}
public String getDownloadName() { public String getDownloadName() {
return downloadLink.getComponent().getComponentName(); return downloadLink.getComponent().getComponentName();
} }
......
...@@ -202,7 +202,7 @@ public class CheckboxAssessmentController extends FormBasicController { ...@@ -202,7 +202,7 @@ public class CheckboxAssessmentController extends FormBasicController {
TextElement pointEl = uifactory.addTextElement(name + "point", null, 5, pointVal, formLayout); TextElement pointEl = uifactory.addTextElement(name + "point", null, 5, pointVal, formLayout);
pointEl.setDisplaySize(5); pointEl.setDisplaySize(5);
MultipleSelectionElement checkEl = uifactory.addCheckboxesHorizontal(name + "check", formLayout, onKeys, onValues); MultipleSelectionElement checkEl = uifactory.addCheckboxesHorizontal(name + "check", null, formLayout, onKeys, onValues);
checkEl.setDomReplacementWrapperRequired(false); checkEl.setDomReplacementWrapperRequired(false);
checkEl.addActionListener(FormEvent.ONCHANGE); checkEl.addActionListener(FormEvent.ONCHANGE);
checkEl.setUserObject(row); checkEl.setUserObject(row);
......
...@@ -153,7 +153,7 @@ ...@@ -153,7 +153,7 @@
#if($checkbox.description) #if($checkbox.description)
<div class="o_cl_desc">$r.xssScan($checkbox.description)</div> <div class="o_cl_desc">$r.xssScan($checkbox.description)</div>
#end #end
#if($checkbox.checkbox.filename) #if(${checkbox.hasDownload()})
<div class="o_cl_file">$r.render($checkbox.downloadName)</div> <div class="o_cl_file">$r.render($checkbox.downloadName)</div>
#end #end
</div> </div>
......
...@@ -77,7 +77,8 @@ public class DropboxForm extends FormBasicController { ...@@ -77,7 +77,8 @@ public class DropboxForm extends FormBasicController {
protected void formOK(UserRequest ureq) { protected void formOK(UserRequest ureq) {
fireEvent (ureq, Event.DONE_EVENT); fireEvent (ureq, Event.DONE_EVENT);
} }
@Override
protected void formInnerEvent (UserRequest ureq, FormItem source, FormEvent event) { protected void formInnerEvent (UserRequest ureq, FormItem source, FormEvent event) {
if (source == enablemail) { if (source == enablemail) {
confirmation.setMandatory (enablemail.isSelected(0)); confirmation.setMandatory (enablemail.isSelected(0));
...@@ -112,7 +113,9 @@ public class DropboxForm extends FormBasicController { ...@@ -112,7 +113,9 @@ public class DropboxForm extends FormBasicController {
confirmation = uifactory.addTextAreaElement("confirmation", "form.dropbox.confirmation", 2500, 4, 40, true, sConfirmation != null ? sConfirmation : "", formLayout); confirmation = uifactory.addTextAreaElement("confirmation", "form.dropbox.confirmation", 2500, 4, 40, true, sConfirmation != null ? sConfirmation : "", formLayout);
Boolean enableMail = (Boolean)config.get(TACourseNode.CONF_DROPBOX_ENABLEMAIL); Boolean enableMail = (Boolean)config.get(TACourseNode.CONF_DROPBOX_ENABLEMAIL);
confirmation.setMandatory(enableMail); if(enableMail != null) {
confirmation.setMandatory(enableMail.booleanValue());
}
enablemail = uifactory.addCheckboxesHorizontal("enablemail", "form.dropbox.enablemail", formLayout, new String[]{"xx"}, new String[]{null}); enablemail = uifactory.addCheckboxesHorizontal("enablemail", "form.dropbox.enablemail", formLayout, new String[]{"xx"}, new String[]{null});
enablemail.select("xx", enableMail != null ? enableMail.booleanValue() : true); enablemail.select("xx", enableMail != null ? enableMail.booleanValue() : true);
enablemail.addActionListener(FormEvent.ONCLICK); enablemail.addActionListener(FormEvent.ONCLICK);
......
...@@ -259,13 +259,13 @@ form.group.address=Adresse ...@@ -259,13 +259,13 @@ form.group.address=Adresse
form.group.contact=Kontaktdaten form.group.contact=Kontaktdaten
form.group.institute=Institution form.group.institute=Institution
form.group.person=Person form.group.person=Person
form.group.about=ber mich form.group.about=\u00DCber mich
form.group.officeaddress=Gesch\u00E4ftsadresse form.group.officeaddress=Gesch\u00E4ftsadresse
form.name.birthDay=Geburtsdatum form.name.birthDay=Geburtsdatum
form.name.birthDay.error=Bitte geben Sie ein g\u00FCltiges Datum an. form.name.birthDay.error=Bitte geben Sie ein g\u00FCltiges Datum an.
form.name.birthDay.error.empty=Das Feld "Geburtsdatum" darf nicht leer sein. form.name.birthDay.error.empty=Das Feld "Geburtsdatum" darf nicht leer sein.
form.name.date.future.error=Das gewhlte Datum muss in der Zukunft liegen form.name.date.future.error=Das gew\u00E4hlte Datum muss in der Zukunft liegen
form.name.date.past.error=Das gewhlte Datum muss in der Vergangenheit liegen form.name.date.past.error=Das gew\u00E4hlte Datum muss in der Vergangenheit liegen
form.name.city=Stadt form.name.city=Stadt
form.name.city.error.empty=Das Feld "Stadt" darf nicht leer sein. form.name.city.error.empty=Das Feld "Stadt" darf nicht leer sein.
form.name.country=Land form.name.country=Land
...@@ -427,5 +427,5 @@ text.element.error.notlongerthan=Wert enth\u00E4lt mehr wie {0} Zeichen ...@@ -427,5 +427,5 @@ text.element.error.notlongerthan=Wert enth\u00E4lt mehr wie {0} Zeichen
username=Benutzername username=Benutzername
yph.from=Von yph.from=Von
yph.to=Bis yph.to=Bis
yph.err=Bitte geben Sie einen gltigen Wert ein yph.err=Bitte geben Sie einen g\u00FCltigen Wert ein
yph.infomsg=Bitte geben Sie 'von' und 'bis' Jahreszahlen (JJJJ) ein. <br />Sie knnen auch '+N' oder '-N' verwenden... yph.infomsg=Bitte geben Sie 'von' und 'bis' Jahreszahlen (JJJJ) ein. <br />Sie k\u00F6nnen auch '+N' oder '-N' verwenden...
\ No newline at end of file \ No newline at end of file
...@@ -256,7 +256,7 @@ ...@@ -256,7 +256,7 @@
border-bottom: 1px solid $o-coursesite-catalog-border; border-bottom: 1px solid $o-coursesite-catalog-border;
.o_visual { .o_visual {
height: $o-coursesite-rowelem-width-md; height: $o-coursesite-rowelem-width-md;
} }
.o_meta { .o_meta {
...@@ -325,6 +325,12 @@ ...@@ -325,6 +325,12 @@
.o_visual { .o_visual {
height: $o-coursesite-rowelem-width-xs; height: $o-coursesite-rowelem-width-xs;
width: $o-coursesite-rowelem-width-xs; width: $o-coursesite-rowelem-width-xs;
span.o_visual_not_available {
width:100%;
height:100%;
display:block;
}
} }
.o_title { .o_title {
...@@ -386,6 +392,12 @@ ...@@ -386,6 +392,12 @@
border: 1px solid $o-coursesite-catalog-border; border: 1px solid $o-coursesite-catalog-border;
position: relative; position: relative;
height: $o-coursesite-rowelem-width-md; height: $o-coursesite-rowelem-width-md;
span.o_visual_not_available {
width:100%;
height:100%;
display:block;
}
} }
.o_meta { .o_meta {
position: absolute; position: absolute;
......
This diff is collapsed.
source diff could not be displayed: it is too large. Options to address this: view the blob.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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