Various UI improvements
This commit is contained in:
@@ -1,6 +1,32 @@
|
||||
<h2>Jobs</h2>
|
||||
|
||||
{if $jobs}
|
||||
|
||||
<form name="view-jobs" id="view-jobs" action="{$base_uri}jobs" method="post">
|
||||
<fieldset>
|
||||
<legend>View</legend>
|
||||
|
||||
<label for="view-status">View only jobs with status:</label>
|
||||
<select id="view-status" name="view">
|
||||
<option value="any">Any Status</option>
|
||||
<option value="queued">Queued</option>
|
||||
<option value="running">Running</option>
|
||||
<option value="complete">Complete</option>
|
||||
<option value="failed">Failed</option>
|
||||
</select>
|
||||
|
||||
<input type="submit" name="submit" value="view" />
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
<form name="manage-jobs" id="manage-jobs" action="{$base_uri}jobs/submit" method="post">
|
||||
<fieldset>
|
||||
<legend>Bulk Actions</legend>
|
||||
|
||||
<input type="image" class="icon" name="action" id="mark-failed-top" value="mark-failed" src="{$base_uri}images/caution.png" alt="Mark all marked jobs as failed" />
|
||||
<input type="image" class="icon" name="action" id="redo-top" value="retry" src="{$base_uri}images/redo.png" alt="Repeat all marked jobs" />
|
||||
<input type="image" class="icon" name="action" id="delete-top" value="delete" src="{$base_uri}images/trash.png" alt="Delete all marked jobs" />
|
||||
</fieldset>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -8,20 +34,46 @@
|
||||
<th>Destination</th>
|
||||
<th>Title</th>
|
||||
<th>Status</th>
|
||||
<th>Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach from=$jobs item=job}
|
||||
{assign var=current_status value=$job->currentStatus()}
|
||||
<tr>
|
||||
<td><a href="{$base_uri}/job-details/id/{$job->id()}" title="View job details">{$job->name()}</a></td>
|
||||
<td><a href="{$base_uri}job-details/id/{$job->id()}" title="View job details">{$job->name()}</a></td>
|
||||
<td>{$job->destinationFilename()}</td>
|
||||
<td>{$job->title()}</td>
|
||||
<td>{$current_status->statusName()}{if $current_status->hasProgressInfo()} ({$current_status->ripProgress()}%, <em>last updated {$current_status->mtime()|date_format:"%D %T"}</em>){/if}</td>
|
||||
<td>
|
||||
{$current_status->statusName()}
|
||||
{if $current_status->hasProgressInfo()}
|
||||
<br />
|
||||
Progress: {$current_status->ripProgress()}%<br />
|
||||
At: <em>{$current_status->mtime()|date_format:"%D %T"}</em><br />
|
||||
ETA: <em>{$job->calculateETA()|formatDuration}</em>
|
||||
{/if}
|
||||
</td>
|
||||
<td>
|
||||
<fieldset>
|
||||
<input type="checkbox" name="include[]" value="{$job->id()}" />
|
||||
<input type="image" class="icon" name="action" id="mark-failed-{$job->id()}" value="mark-failed[{$job->id()}]" src="{$base_uri}images/caution.png" alt="Mark job as failed" />
|
||||
<input type="image" class="icon" name="action" id="redo-{$job->id()}" value="retry[{$job->id()}]" src="{$base_uri}images/redo.png" alt="Repeat job" />
|
||||
<input type="image" class="icon" name="action" id="delete-{$job->id()}" value="delete[{$job->id()}]" src="{$base_uri}images/trash.png" alt="Delete job" />
|
||||
</fieldset>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
<fieldset>
|
||||
<legend>Bulk Actions</legend>
|
||||
|
||||
<input type="image" class="icon" name="action" id="mark-failed-bottom" value="mark-failed" src="{$base_uri}images/caution.png" alt="Mark all marked jobs as failed" />
|
||||
<input type="image" class="icon" name="action" id="redo-bottom" value="retry" src="{$base_uri}images/redo.png" alt="Repeat all marked jobs" />
|
||||
<input type="image" class="icon" name="action" id="delete-bottom" value="delete" src="{$base_uri}images/trash.png" alt="Delete all marked jobs" />
|
||||
</fieldset>
|
||||
</form>
|
||||
{else}
|
||||
<em>There are no jobs</em>
|
||||
{/if}
|
||||
|
||||
|
||||
@@ -8,15 +8,17 @@
|
||||
to see a list of running jobs, or the <a href="{$base_uri}logs/" title="View logs">logs</a> page for more detailed progress information.
|
||||
</p>
|
||||
{else}
|
||||
<h3>{$source->filename()|htmlspecialchars}</h3>
|
||||
|
||||
<form name="setup-rips" id="setup-rips" action="{$base_uri}rips/setup-rip/submit/" method="post">
|
||||
<fieldset>
|
||||
<legend>Configure global rip options</legend>
|
||||
|
||||
|
||||
<input type="hidden" name="id" value="{$source->filenameEncoded()|escape:"html"}" />
|
||||
|
||||
<div>
|
||||
<label for="global-output-directory">Output directory</label>
|
||||
<input type="text" id="global-ouput-directory" name="rip-options[output-directory]" value="{$default_output_dir}" />
|
||||
<input type="text" id="global-ouput-directory" name="rip-options[output-directory]" value="{$default_output_directory}" />
|
||||
</div>
|
||||
|
||||
<div>
|
||||
@@ -58,7 +60,7 @@
|
||||
|
||||
<div id="available-titles">
|
||||
{foreach from=$titles item=title}
|
||||
<h3><a href="#">Title {$title->id()} (Duration: {$title->duration()}, Chapters: {$title->chapterCount()})</a></h3>
|
||||
<h3 id="configure-rip-{$title->id()}"><a href="#">Title {$title->id()} (Duration: {$title->duration()}, Chapters: {$title->chapterCount()})</a></h3>
|
||||
<div id="rips-{$title->id()}">
|
||||
<fieldset>
|
||||
<legend>Configure title rip options</legend>
|
||||
@@ -68,11 +70,16 @@
|
||||
<input type="checkbox" id="rip-title-{$title->id()}" name="rips[{$title->id()}][queue]" value="1" />
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label for="rip-name-{$title->id()}">Short Name</label>
|
||||
<input type="text" id="rip-name-{$title->id()}" name="rips[{$title->id()}][name]" value="" />
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label for="rip-audio-{$title->id()}">Audio tracks</label>
|
||||
<select id="rip-audio-{$title->id()}" name="rips[{$title->id()}][audio][]" size="5" multiple="multiple" class="rip-streams">
|
||||
{foreach from=$title->audioTracks() item=audio}
|
||||
<option value="{$audio->id()}">{$audio->name()} - {$audio->channels()} ch ({$audio->language()}) </option>
|
||||
<option value="{$audio->id()}">{$audio->name()} - {$audio->channels()} ({$audio->language()}) </option>
|
||||
{/foreach}
|
||||
</select>
|
||||
|
||||
@@ -142,7 +149,7 @@
|
||||
{literal}
|
||||
<script language="javascript">
|
||||
$(function() {
|
||||
$("#available-titles").accordion();
|
||||
$("#available-titles").accordion({active: {/literal}{$source->longestTitleIndex()}{literal}});
|
||||
$("input:submit").button();
|
||||
$("#quantizer-slider").slider({
|
||||
value:0.61,
|
||||
|
||||
Reference in New Issue
Block a user