2009-08-13 23:09:10 +00:00
|
|
|
<div class="wrap">
|
|
|
|
<h2>Manage Transcripts</h2>
|
|
|
|
|
|
|
|
<h3>Queued Transcripts</h3>
|
|
|
|
|
2009-08-14 02:13:46 +00:00
|
|
|
<h3>Languages</h3>
|
|
|
|
|
2009-08-13 23:09:10 +00:00
|
|
|
<ul id="language-holder">
|
2009-08-14 02:13:46 +00:00
|
|
|
<?php foreach ($options['languages'] as $language) {
|
2009-08-13 23:09:10 +00:00
|
|
|
$default = false;
|
|
|
|
if (is_array($language)) {
|
2009-08-14 02:13:46 +00:00
|
|
|
$default = $language['default'];
|
|
|
|
$code = $language['code'];
|
2009-08-13 23:09:10 +00:00
|
|
|
}
|
2009-08-14 02:13:46 +00:00
|
|
|
if (is_string($language)) { $code = $language; }
|
2009-08-13 23:09:10 +00:00
|
|
|
?>
|
|
|
|
<li>
|
2009-08-14 02:13:46 +00:00
|
|
|
<strong><?php echo $this->all_languages[$code] ?></strong>
|
|
|
|
| <a class="verify" href="<?php echo add_query_arg(array('wdts[code]' => $code, 'wdts[action]' => 'delete'), $nonce_url) ?>">Delete</a>
|
2009-08-13 23:09:10 +00:00
|
|
|
</li>
|
|
|
|
<?php } ?>
|
|
|
|
</ul>
|
2009-08-14 02:13:46 +00:00
|
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
|
|
var basic_languages = [ <?php echo implode(",", $basic_languages) ?> ];
|
|
|
|
var all_languages = [ <?php echo implode(",", $all_languages) ?> ];
|
|
|
|
|
|
|
|
var language_map = { <?php echo implode(",\n", $language_map_pairs) ?> };
|
|
|
|
|
|
|
|
$$('a.verify').each(function(a) {
|
|
|
|
Event.observe(a, 'click', function(e) {
|
|
|
|
if (!confirm("You are about to delete this language from the available list. Continue?")) {
|
|
|
|
Event.stop(e);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|