Skip to content

Commit

Permalink
Disable calendar repeat for now until we properly add it
Browse files Browse the repository at this point in the history
  • Loading branch information
wrongecho committed Nov 2, 2024
1 parent eb70aba commit d074dda
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions calendar_event_add_modal.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
<input type="datetime-local" class="form-control" id="event_add_start" name="start" required onblur="updateIncrementEndTime()">
</div>
</div>

<div class="form-group">
<div class="input-group">
<div class="input-group-prepend">
Expand All @@ -86,7 +86,7 @@
<div class="input-group-prepend">
<span class="input-group-text"><i class="fa fa-fw fa-recycle"></i></span>
</div>
<select class="form-control select2" name="repeat">
<select class="form-control select2" name="repeat" disabled>
<option value="">Never</option>
<option>Day</option>
<option>Week</option>
Expand Down
8 changes: 4 additions & 4 deletions calendar_event_edit_modal.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
<input type="datetime-local" class="form-control" name="start" value="<?php echo date('Y-m-d\TH:i:s', strtotime($event_start)); ?>" required>
</div>
</div>

<div class="form-group">
<div class="input-group">
<div class="input-group-prepend">
Expand All @@ -88,15 +88,15 @@
<div class="input-group-prepend">
<span class="input-group-text"><i class="fa fa-fw fa-recycle"></i></span>
</div>
<select class="form-control select2" name="repeat">
<select class="form-control select2" name="repeat" disabled>
<option <?php if (empty($event_repeat)) { echo "selected"; } ?> value="">Never</option>
<option <?php if ($event_repeat == "Day") { echo "selected"; } ?>>Day</option>
<option <?php if ($event_repeat == "Week") { echo "selected"; } ?>>Week</option>
<option <?php if ($event_repeat == "Month") { echo "selected"; } ?>>Month</option>
<option <?php if ($event_repeat == "Year") { echo "selected"; } ?>>Year</option>
</select>
</div>
</div>
</div>

</div>

Expand All @@ -115,7 +115,7 @@
<label>Description</label>
<textarea class="form-control" rows="8" name="description" placeholder="Enter a description"><?php echo $event_description; ?></textarea>
</div>


</div>

Expand Down

0 comments on commit d074dda

Please sign in to comment.