Skip to content

Commit

Permalink
Added include weekend checkbox when copying entries
Browse files Browse the repository at this point in the history
  • Loading branch information
jeppekroghitk committed Jan 10, 2025
1 parent 99b0dca commit fe58611
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 15 deletions.
12 changes: 9 additions & 3 deletions Templates/timetable.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,15 @@ class="timetable-modal-submit btn btn-primary">{{ __('timeTable.button_modal_sav
<input type="hidden" name="entryCopyToDate" />
<p class="entry-copy-headline"></p>
<p class="entry-copy-text"></p>
<div class="entry-copy-overwrite-checkbox">
<input type="checkbox" name="entryCopyOverwrite" id="entry-copy-overwrite" />
<label for="entry-copy-overwrite"><small>Overskriv allerede registrerede felter</small></label>
<div class="entry-copy-checkboxes">
<div class="entry-copy-overwrite-checkbox">
<input type="checkbox" name="entryCopyOverwrite" id="entry-copy-overwrite" />
<label for="entry-copy-overwrite"><small>Overskriv allerede registrerede felter</small></label>
</div>
<div class="entry-copy-weekend-checkbox">
<input type="checkbox" name="entryCopyWeekend" id="entry-copy-weekend" />
<label for="entry-copy-weekend"><small>Inkluder weekender</small></label>
</div>
</div>
<div class="buttons flex-container gap-1">
<button type="button"
Expand Down
15 changes: 9 additions & 6 deletions assets/timeTable.css
Original file line number Diff line number Diff line change
Expand Up @@ -892,7 +892,6 @@
#entry-copy-modal {
.entry-copy-form {
display: flex;
height: 150px;
flex-direction: column;
background-color: #fefefe;
margin: auto;
Expand All @@ -907,16 +906,20 @@
margin-top: 2px;
}
.entry-copy-headline {
margin-bottom: 7px;
margin-bottom: var(--itk-spacing-xs);
}

.entry-copy-overwrite-checkbox {
.entry-copy-checkboxes {
display: flex;
flex-direction: column;
margin: var(--itk-spacing-xs) 0 var(--itk-spacing) 0;
}
.entry-copy-overwrite-checkbox, .entry-copy-weekend-checkbox {
display: flex;
align-items: center;
margin: 5px 0;
}

.entry-copy-overwrite-checkbox label {
.entry-copy-overwrite-checkbox label, .entry-copy-weekend-checkbox label {
margin-left: 8px;
font-size: 0.875rem;
color: #333;
Expand All @@ -928,7 +931,7 @@
user-select: none;
}

.entry-copy-overwrite-checkbox input[type="checkbox"] {
.entry-copy-overwrite-checkbox input[type="checkbox"], .entry-copy-weekend-checkbox input[type="checkbox"] {
cursor: pointer;
margin: 0;
}
Expand Down
15 changes: 9 additions & 6 deletions dist/css/timeTable.css
Original file line number Diff line number Diff line change
Expand Up @@ -892,7 +892,6 @@
#entry-copy-modal {
.entry-copy-form {
display: flex;
height: 150px;
flex-direction: column;
background-color: #fefefe;
margin: auto;
Expand All @@ -907,16 +906,20 @@
margin-top: 2px;
}
.entry-copy-headline {
margin-bottom: 7px;
margin-bottom: var(--itk-spacing-xs);
}

.entry-copy-overwrite-checkbox {
.entry-copy-checkboxes {
display: flex;
flex-direction: column;
margin: var(--itk-spacing-xs) 0 var(--itk-spacing) 0;
}
.entry-copy-overwrite-checkbox, .entry-copy-weekend-checkbox {
display: flex;
align-items: center;
margin: 5px 0;
}

.entry-copy-overwrite-checkbox label {
.entry-copy-overwrite-checkbox label, .entry-copy-weekend-checkbox label {
margin-left: 8px;
font-size: 0.875rem;
color: #333;
Expand All @@ -928,7 +931,7 @@
user-select: none;
}

.entry-copy-overwrite-checkbox input[type="checkbox"] {
.entry-copy-overwrite-checkbox input[type="checkbox"], .entry-copy-weekend-checkbox input[type="checkbox"] {
cursor: pointer;
margin: 0;
}
Expand Down

0 comments on commit fe58611

Please sign in to comment.