2009-10-18 18:16:19 -07:00
|
|
|
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
$(document).ready(function() {
|
|
|
|
|
$("#g-modules form").submit(function() {
|
|
|
|
|
var eDialog = '<div id="g-dialog"></div>';
|
|
|
|
|
var params = $(this).serialize();
|
|
|
|
|
var url = $(this).attr("action");
|
|
|
|
|
$("body").append(eDialog);
|
|
|
|
|
$.post($(this).attr("action"), $(this).serialize(), function(data, textStatus) {
|
|
|
|
|
$("#g-dialog").html(data);
|
|
|
|
|
$("#g-dialog").dialog({
|
|
|
|
|
bgiframe: true,
|
2009-10-22 22:29:56 -07:00
|
|
|
title: <?= t("Confirm identity provider change")->for_js() ?>,
|
2009-10-18 18:16:19 -07:00
|
|
|
resizable: false,
|
2009-10-31 14:15:17 -07:00
|
|
|
height:180,
|
2009-10-18 18:16:19 -07:00
|
|
|
modal: true,
|
|
|
|
|
overlay: {
|
2009-10-19 12:53:44 -07:00
|
|
|
backgroundColor: '#000',
|
|
|
|
|
opacity: 0.5
|
2009-10-18 18:16:19 -07:00
|
|
|
},
|
|
|
|
|
buttons: {
|
2009-10-19 12:53:44 -07:00
|
|
|
"Continue": function() {
|
2009-10-31 14:15:17 -07:00
|
|
|
$("#g-dialog form").submit();
|
2009-10-18 18:16:19 -07:00
|
|
|
},
|
|
|
|
|
Cancel: function() {
|
2009-10-31 14:15:17 -07:00
|
|
|
$(this).dialog('destroy').remove();
|
2009-10-18 18:16:19 -07:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
return false;
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
<div id="g-modules">
|
2009-10-28 12:15:52 -07:00
|
|
|
<h1> <?= t("Manage identity providers") ?> </h1>
|
2009-10-18 18:16:19 -07:00
|
|
|
<p>
|
|
|
|
|
<?= t("Choose a different user/group management provider.") ?>
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
<form method="post" action="<?= url::site("admin/identity/confirm") ?>">
|
|
|
|
|
<?= access::csrf_form_field() ?>
|
|
|
|
|
<table>
|
|
|
|
|
<tr>
|
|
|
|
|
<th> <?= t("Active") ?> </th>
|
|
|
|
|
<th> <?= t("Description") ?> </th>
|
|
|
|
|
</tr>
|
|
|
|
|
<? $i = 0 ?>
|
|
|
|
|
<? foreach ($available as $module_name => $description): ?>
|
|
|
|
|
<tr class="<?= ($i % 2 == 0) ? "g-odd" : "g-even" ?>">
|
|
|
|
|
<? $data = array("name" => "provider"); ?>
|
|
|
|
|
<td> <?= form::radio($data, $module_name, $module_name == $active) ?> </td>
|
|
|
|
|
<td> <?= t($description) ?> </td>
|
|
|
|
|
</tr>
|
|
|
|
|
<? $i++ ?>
|
|
|
|
|
<? endforeach ?>
|
|
|
|
|
</table>
|
|
|
|
|
<input type="submit" value="<?= t("Change")->for_html_attr() ?>" />
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|