-
Notifications
You must be signed in to change notification settings - Fork 74
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
1 parent
817b1f5
commit 30e9164
Showing
5 changed files
with
214 additions
and
67 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,58 @@ | ||
/* This file is manually maintained, it is not generated from SCSS sources */ | ||
|
||
.task__selector { | ||
display: inline-block; | ||
height: 42px; | ||
margin: 0; | ||
opacity: 0.2; | ||
transform: translateX(-203px); | ||
width: 199px; | ||
} | ||
|
||
.task__selector:after { | ||
background-color: #5c5c5c; | ||
content: ' '; | ||
display: inline-block; | ||
height: 42px; | ||
transition: all 0.2s; | ||
width: 199px; | ||
} | ||
|
||
.task__selector:checked:after, | ||
.task__selector:hover:after { | ||
background-color: #000000; | ||
} | ||
|
||
.task__label { | ||
border-bottom: 1px solid #000000; | ||
border-right: 1px solid #000000; | ||
display: inline-block; | ||
font-weight: bold; | ||
margin-left: -208px; | ||
padding: 10px 20px; | ||
text-align: center; | ||
transform: translateY(-15px); | ||
width: 158px; | ||
} | ||
|
||
.task__label:first-child { | ||
margin-left: 0; | ||
} | ||
|
||
.task__panel { | ||
display: none; | ||
} | ||
|
||
.task__selector--immediate:checked ~ .task__panel--immediate, | ||
.task__selector--universal:checked ~ .task__panel--universal, | ||
.task__selector--queue-only:checked ~ .task__panel--queue-only { | ||
display: block; | ||
} | ||
|
||
.task__button--notice:hover { | ||
background-color: #ebffeb; | ||
} | ||
|
||
.task__button + .task__button { | ||
margin-left: 25px; | ||
} |
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
74 changes: 74 additions & 0 deletions
74
templates/Symbiote/QueuedJobs/Controllers/QueuedTaskRunner.ss
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,74 @@ | ||
$Header.RAW | ||
$Info.RAW | ||
|
||
<div class="task"> | ||
<label class="task__label" for="tab-universal-tasks">Queueable task</label> | ||
<input type="radio" id="tab-universal-tasks" class="task__selector task__selector--universal" name="task__selector" checked="checked" /> | ||
<label class="task__label" for="tab-immediate-tasks">Non-queueable tasks</label> | ||
<input type="radio" id="tab-immediate-tasks" class="task__selector task__selector--immediate" name="task__selector" /> | ||
<label class="task__label" for="tab-queue-only-tasks">Queueable only tasks</label> | ||
<input type="radio" id="tab-queue-only-tasks" class="task__selector task__selector--queue-only" name="task__selector" /> | ||
|
||
<div class="task__panel task__panel--universal"> | ||
<h2>Queueable tasks</h2> | ||
<p>By default these jobs will be added the job queue, rather than run immediately.</p> | ||
<% if $UniversalTasks.Count > 0 %> | ||
<div class="task__list"> | ||
<% loop $UniversalTasks %> | ||
<div class="task__item"> | ||
<div> | ||
<h3>$Title</h3> | ||
<p class="description">$Description</p> | ||
</div> | ||
<div> | ||
<a href="{$TaskLink.ATT}" class="task__button task__button--warning">Run immediately</a> | ||
<a href="{$QueueLink.ATT}" class="task__button task__button--notice">Add to queue</a> | ||
</div> | ||
</div> | ||
<% end_loop %> | ||
</div> | ||
<% end_if %> | ||
</div> | ||
|
||
<div class="task__panel task__panel--immediate"> | ||
<h2>Non-queueable tasks</h2> | ||
<p>These tasks shouldn't be added the queuejobs queue, but you can run them immediately.</p> | ||
<% if $ImmediateTasks.Count > 0 %> | ||
<div class="task__list"> | ||
<% loop $ImmediateTasks %> | ||
<div class="task__item"> | ||
<div> | ||
<h3>$Title</h3> | ||
<p class="description">$Description</p> | ||
</div> | ||
<div> | ||
<a href="{$TaskLink.ATT}" class="task__button task__button--warning">Run immediately</a> | ||
</div> | ||
</div> | ||
<% end_loop %> | ||
</div> | ||
<% end_if %> | ||
</div> | ||
|
||
<div class="task__panel task__panel--queue-only"> | ||
<h2>Queueable only tasks</h2> | ||
<p>These tasks must be be added the queuejobs queue, running it immediately is not allowed.</p> | ||
<% if $QueueOnlyTasks.Count > 0 %> | ||
<div class="task__list"> | ||
<% loop $QueueOnlyTasks %> | ||
<div class="task__item"> | ||
<div> | ||
<h3>$Title</h3> | ||
<p class="description">$Description</p> | ||
</div> | ||
<div> | ||
<a href="{$QueueLink.ATT}" class="task__button task__button--notice">Add to queue</a> | ||
</div> | ||
</div> | ||
<% end_loop %> | ||
</div> | ||
<% end_if %> | ||
</div> | ||
</div> | ||
|
||
$Footer.RAW |