Skip to content
Snippets Groups Projects
Commit 9df193f0 authored by Marvin Thomas Rabe's avatar Marvin Thomas Rabe
Browse files

Calendar selection only available if there are more than one.

parent 7c738a13
Branches
No related tags found
No related merge requests found
......@@ -17,6 +17,7 @@
?>
</select>
</td>
<?php if(count($_['calendar_options']) > 1) { ?>
<th width="75px">&nbsp;&nbsp;&nbsp;<?php echo $l->t("Calendar");?>:</th>
<td>
<select style="width:140px;" name="calendar">
......@@ -26,6 +27,12 @@
?>
</select>
</td>
<?php } else { ?>
<th width="75px">&nbsp;</th>
<td>
<input type="hidden" name="calendar" value="<?php echo $_['calendar_options'][0]['id'] ?>">
</td>
<?php } ?>
</tr>
</table>
<hr>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment