| 1 |
<div class="wrap"> |
| 2 |
|
| 3 |
<div id="errors" class="stateless-admin-notice admin-error"> |
| 4 |
<strong><?php _e('Errors encountered. Try reloading the page.', ud_get_stateless_media()->domain); ?></strong> |
| 5 |
<ul></ul> |
| 6 |
</div> |
| 7 |
|
| 8 |
<div class="metabox-holder processes-holder"> |
| 9 |
<p class="processing-hint"><strong><?php _e('Hint', ud_get_stateless_media()->domain) ?>:</strong> <?php _e('You can close this page once processing is started.', ud_get_stateless_media()->domain) ?></p> |
| 10 |
|
| 11 |
<div class="postbox-container"> |
| 12 |
<?php foreach ($processes as $process) : ?> |
| 13 |
|
| 14 |
<div class="postbox" data-id="<?php echo preg_replace('/[^a-zA-Z0-9]/', '', $process->id); ?>"> |
| 15 |
|
| 16 |
<div class="postbox-header"> |
| 17 |
<h2 class="hndle"> |
| 18 |
<div class="title-holder"><?php echo $process->name; ?></div> |
| 19 |
|
| 20 |
<span> |
| 21 |
<span title="<?php _e('Processing in progress...', ud_get_stateless_media()->domain) ?>" class="loading dashicons dashicons-update"></span> |
| 22 |
|
| 23 |
<?php if ($process->helper) : ?> |
| 24 |
<a href="javascript:;" data-position='{"edge":"left","align":"center"}' data-title="<?php echo $process->helper['title']; ?>" data-text="<?php echo $process->helper['content']; ?>" class="pointer dashicons dashicons-info"></a> |
| 25 |
<?php endif; ?> |
| 26 |
</span> |
| 27 |
</h2> |
| 28 |
</div> |
| 29 |
|
| 30 |
<div class="inside"> |
| 31 |
<ul> |
| 32 |
<li><strong><?php _e('Total Items', ud_get_stateless_media()->domain) ?>:</strong> <span><?php echo $process->total_items; ?></span></li> |
| 33 |
</ul> |
| 34 |
|
| 35 |
<?php if ($process->allow_limit) : ?> |
| 36 |
<div class="options"> |
| 37 |
<label><?php _e('Enable Limit', ud_get_stateless_media()->domain) ?> <input type="checkbox" class="limit_enabled"/></label> |
| 38 |
|
| 39 |
<label class="limit_field"> |
| 40 |
<input type="number" style="width:80px" /> |
| 41 |
</label> |
| 42 |
</div> |
| 43 |
<?php endif; ?> |
| 44 |
|
| 45 |
<?php if ($process->allow_sorting) : ?> |
| 46 |
<div class="options"> |
| 47 |
<label> |
| 48 |
<?php _e('Start from', ud_get_stateless_media()->domain) ?> |
| 49 |
<select class="order_value"> |
| 50 |
<option value="desc" selected><?php _e('newest', ud_get_stateless_media()->domain) ?></option> |
| 51 |
<option value="asc"><?php _e('oldest', ud_get_stateless_media()->domain) ?></option> |
| 52 |
</select> |
| 53 |
</label> |
| 54 |
</div> |
| 55 |
<?php endif; ?> |
| 56 |
|
| 57 |
<div class="progress"> |
| 58 |
<div class="bar-wrapper"> |
| 59 |
<div class="legend"> |
| 60 |
<strong class="total"><?php _e('Total', ud_get_stateless_media()->domain) ?>: <span></span></strong> |
| 61 |
<strong class="queued"><?php _e('Queued', ud_get_stateless_media()->domain) ?>: <span></span></strong> |
| 62 |
<strong class="processed"><?php _e('Processed', ud_get_stateless_media()->domain) ?>: <span></span></strong> |
| 63 |
</div> |
| 64 |
|
| 65 |
<div class="bar total"> |
| 66 |
<div class="bar queued"> |
| 67 |
<div class="bar processed"> </div> |
| 68 |
</div> |
| 69 |
</div> |
| 70 |
</div> |
| 71 |
</div> |
| 72 |
|
| 73 |
<div class="progress-notice"></div> |
| 74 |
|
| 75 |
<div class="actions"> |
| 76 |
<button type="button" class="button button-primary disabled"><?php _e('Run', ud_get_stateless_media()->domain) ?></button> |
| 77 |
<button type="button" class="button button-secondary disabled"><?php _e('Stop', ud_get_stateless_media()->domain) ?></button> |
| 78 |
</div> |
| 79 |
|
| 80 |
</div> |
| 81 |
</div> |
| 82 |
<?php endforeach; ?> |
| 83 |
</div> |
| 84 |
</div> |
| 85 |
|
| 86 |
</div> |
| 87 |
|