-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
1,478 additions
and
1,527 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export default () => ({ | ||
reordering: false, | ||
|
||
load: function(static_data) { | ||
// | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export default () => ({ | ||
reordering: false, | ||
|
||
load: function(static_data) { | ||
// | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export default () => ({ | ||
reordering: false, | ||
|
||
load: function(static_data) { | ||
// | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export default () => ({ | ||
reordering: false, | ||
|
||
load: function(static_data) { | ||
// | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export default () => ({ | ||
reordering: false, | ||
|
||
load: function(static_data) { | ||
// | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export default () => ({ | ||
reordering: false, | ||
|
||
load: function(static_data) { | ||
// | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export default () => ({ | ||
reordering: false, | ||
|
||
load: function(static_data) { | ||
// | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export default () => ({ | ||
reordering: false, | ||
|
||
load: function(static_data) { | ||
// | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export default () => ({ | ||
reordering: false, | ||
|
||
load: function(static_data) { | ||
// | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export default () => ({ | ||
reordering: false, | ||
|
||
load: function(static_data) { | ||
// | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export default () => ({ | ||
reordering: false, | ||
|
||
load: function(static_data) { | ||
// | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export default () => ({ | ||
reordering: false, | ||
|
||
load: function(static_data) { | ||
// | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export default () => ({ | ||
reordering: false, | ||
|
||
load: function(static_data) { | ||
// | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export default () => ({ | ||
reordering: false, | ||
|
||
load: function(static_data) { | ||
// | ||
} | ||
}) |
48 changes: 48 additions & 0 deletions
48
resources/views/components/calendar-linking-collapsible.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
@props(['calendar' => null]) | ||
|
||
<div class='row no-gutters'> | ||
<p class="m-0">Calendar linking allows you to connect two calendar's dates, making one follow | ||
the other!</p> | ||
<p><small>This is a complex feature, we recommend you check out the article on <a | ||
href='{{ helplink('calendar_linking') }}' target="_blank"><i | ||
class="fa fa-question-circle"></i> Calendar Linking</a>.</small></p> | ||
</div> | ||
|
||
@if(Auth::user()->can('link', $calendar)) | ||
|
||
<div id='calendar_link_hide'> | ||
|
||
@if($calendar->parent != null) | ||
<div class='row no-gutters my-1 center-text hidden calendar_link_explanation'> | ||
<p class='m-0'>This calendar is a child of | ||
<a href='/calendars/{{ $calendar->parent->hash }}/edit' | ||
target="_blank">{{ $calendar->parent->name }}</a>. | ||
Before linking any calendars to this one, you must unlink this | ||
calendar from its parent.</p> | ||
</div> | ||
@else | ||
|
||
<div class='input-group my-1'> | ||
<select class='form-control' id='calendar_link_select'></select> | ||
<div class="input-group-append"> | ||
<button type='button' class='btn btn-sm btn-secondary full' | ||
id='refresh_calendar_list_select'>Refresh | ||
</button> | ||
</div> | ||
</div> | ||
|
||
<div class='sortable' id='calendar_link_list'></div> | ||
<div class='sortable mt-1' id='calendar_new_link_list'></div> | ||
@endif | ||
</div> | ||
|
||
@else | ||
|
||
<div class='row no-gutters my-1'> | ||
<p>Link calendars together, and make this calendar's date drive the date of other | ||
calendars!</p> | ||
<p class='m-0'><a href="{{ route('subscription.pricing') }}" target="_blank">Subscribe | ||
now</a> to unlock this feature!</p> | ||
</div> | ||
|
||
@endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
@props(['calendar' => null]) | ||
|
||
<div class='row'> | ||
<div class='col-3 bold-text'>Enable:</div> | ||
<div class='col-3 text-right'> | ||
@if(request()->is('calendars/*/edit') && $calendar->isLinked()) | ||
{{ Arr::get($calendar->static_data, 'clock.enabled') ? "Yes" : "No" }} | ||
@else | ||
<label class="custom-control custom-checkbox center-text"> | ||
<input type="checkbox" class="custom-control-input static_input" id='enable_clock' | ||
data='clock' fc-index='enabled'> | ||
<span class="custom-control-indicator"></span> | ||
</label> | ||
@endif | ||
</div> | ||
<div class='render_clock col-3 bold-text'>Render:</div> | ||
<div class='render_clock col-3 text-right'> | ||
<label class="custom-control custom-checkbox center-text"> | ||
<input type="checkbox" class="custom-control-input static_input" id='render_clock' | ||
refresh='clock' data='clock' fc-index='render'> | ||
<span class="custom-control-indicator"></span> | ||
</label> | ||
</div> | ||
</div> | ||
|
||
<div class='clock_inputs'> | ||
|
||
<div class='row mt-2'> | ||
<div class='col-6 bold-text'> | ||
Hours: | ||
</div> | ||
<div class='col-6 pl-0 bold-text'> | ||
Minutes: | ||
</div> | ||
</div> | ||
|
||
<div class='row mb-2'> | ||
<div class='col-6 input-group'> | ||
@if(request()->is('calendars/*/edit') && $calendar->isLinked()) | ||
{{ Arr::get($calendar->static_data, 'clock.hours') }} | ||
@else | ||
<div class='input-group-prepend'> | ||
<button type='button' class='btn btn-sm btn-danger' | ||
onclick='adjustInput(this, "#clock_hours", -1);'><i class="fa fa-minus"></i> | ||
</button> | ||
</div> | ||
<input class='form-control form-control-sm static_input' min='1' id='clock_hours' | ||
data='clock' fc-index='hours' type='number'> | ||
<div class='input-group-append'> | ||
<button type='button' class='btn btn-sm btn-success' | ||
onclick='adjustInput(this, "#clock_hours", +1);'><i class="fa fa-plus"></i> | ||
</button> | ||
</div> | ||
@endif | ||
</div> | ||
|
||
<div class='col-6 input-group pl-0'> | ||
@if(request()->is('calendars/*/edit') && $calendar->isLinked()) | ||
{{ Arr::get($calendar->static_data, 'clock.minutes') }} | ||
@else | ||
<div class='input-group-prepend'> | ||
<button type='button' class='btn btn-sm btn-danger' | ||
onclick='adjustInput(this, "#clock_minutes", -1);'><i | ||
class="fa fa-minus"></i></button> | ||
</div> | ||
<input class='form-control form-control-sm static_input' min='1' id='clock_minutes' | ||
data='clock' fc-index='minutes' type='number'> | ||
<div class='input-group-append'> | ||
<button type='button' class='btn btn-sm btn-success' | ||
onclick='adjustInput(this, "#clock_minutes", +1);'><i class="fa fa-plus"></i> | ||
</button> | ||
</div> | ||
@endif | ||
</div> | ||
|
||
</div> | ||
|
||
<div class='row mt-2 do_render_clock'> | ||
<div class='col-6 bold-text'> | ||
Offset hours: | ||
</div> | ||
<div class='col-6 pl-0 bold-text'> | ||
Crowding: | ||
</div> | ||
</div> | ||
|
||
<div class='row mb-1 do_render_clock'> | ||
|
||
<div class='col-6 input-group'> | ||
<div class='input-group-prepend'> | ||
<button type='button' class='btn btn-sm btn-danger' | ||
onclick='adjustInput(this, "#clock_offset", -1);'><i class="fa fa-minus"></i> | ||
</button> | ||
</div> | ||
|
||
<input class='form-control form-control-sm static_input' id='clock_offset' refresh='clock' | ||
data='clock' fc-index='offset' type='number'> | ||
|
||
<div class='input-group-append'> | ||
<button type='button' class='btn btn-sm btn-success' | ||
onclick='adjustInput(this, "#clock_offset", +1);'><i class="fa fa-plus"></i> | ||
</button> | ||
</div> | ||
</div> | ||
|
||
<div class='col-6 pl-0 input-group'> | ||
<div class='input-group-prepend'> | ||
<button type='button' class='btn btn-sm btn-danger' | ||
onclick='adjustInput(this, "#clock_crowding", -1);'><i class="fa fa-minus"></i> | ||
</button> | ||
</div> | ||
|
||
<input class='form-control form-control-sm static_input' min='0' id='clock_crowding' | ||
refresh='clock' data='clock' fc-index='crowding' type='number'> | ||
|
||
<div class='input-group-append'> | ||
<button type='button' class='btn btn-sm btn-success' | ||
onclick='adjustInput(this, "#clock_crowding", +1);'><i class="fa fa-plus"></i> | ||
</button> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
|
||
|
||
</div> | ||
|
||
@if(request()->is('calendars/*/edit') && $calendar->isLinked()) | ||
<p class="mb-0 mt-3"><a onclick="linked_popup();" href='#'>Why can't I edit the clock?</a></p> | ||
@endif |
Oops, something went wrong.