Fixing style errors.
This commit is contained in:
parent
240990c022
commit
2b9b6d6789
@ -247,7 +247,7 @@ if (count($listinsetup) > 0) {
|
|||||||
print '<td>'.$langs->trans("FeatureNotYetSupported").'</td>';
|
print '<td>'.$langs->trans("FeatureNotYetSupported").'</td>';
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Api Id
|
// Api Id
|
||||||
print '<tr class="oddeven value">';
|
print '<tr class="oddeven value">';
|
||||||
print '<td><label for="'.$key[1].'">'.$langs->trans("OAUTH_ID").'</label></td>';
|
print '<td><label for="'.$key[1].'">'.$langs->trans("OAUTH_ID").'</label></td>';
|
||||||
@ -269,25 +269,25 @@ if (count($listinsetup) > 0) {
|
|||||||
print '<input style="width: 80%" type"text" name="'.$key[4].'" value="'.getDolGlobalString($key[4]).'" >';
|
print '<input style="width: 80%" type"text" name="'.$key[4].'" value="'.getDolGlobalString($key[4]).'" >';
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
} else {
|
} else {
|
||||||
$availablescopes = array_flip(explode(',', $supportedoauth2array[$keyforsupportedoauth2array]['availablescopes']));
|
$availablescopes = array_flip(explode(',', $supportedoauth2array[$keyforsupportedoauth2array]['availablescopes']));
|
||||||
$currentscopes = explode(',', getDolGlobalString($key[4]));
|
$currentscopes = explode(',', getDolGlobalString($key[4]));
|
||||||
$scopestodispay = array();
|
$scopestodispay = array();
|
||||||
foreach ($availablescopes as $keyscope => $valscope) {
|
foreach ($availablescopes as $keyscope => $valscope) {
|
||||||
if (in_array($keyscope, $currentscopes)) {
|
if (in_array($keyscope, $currentscopes)) {
|
||||||
$scopestodispay[$keyscope] = 1;
|
$scopestodispay[$keyscope] = 1;
|
||||||
} else {
|
} else {
|
||||||
$scopestodispay[$keyscope] = 0;
|
$scopestodispay[$keyscope] = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Api Scope
|
// Api Scope
|
||||||
print '<tr class="oddeven value">';
|
print '<tr class="oddeven value">';
|
||||||
print '<td>'.$langs->trans("Scopes").'</td>';
|
print '<td>'.$langs->trans("Scopes").'</td>';
|
||||||
print '<td>';
|
print '<td>';
|
||||||
foreach ($scopestodispay as $scope => $val) {
|
foreach ($scopestodispay as $scope => $val) {
|
||||||
print '<input type="checkbox" name="'.$key[4].'[]" value="'.$scope.'"'.($val ? ' checked' : '').'>';
|
print '<input type="checkbox" name="'.$key[4].'[]" value="'.$scope.'"'.($val ? ' checked' : '').'>';
|
||||||
print '<label style="margin-right: 10px" for="'.$key[4].'">'.$scope.'</label>';
|
print '<label style="margin-right: 10px" for="'.$key[4].'">'.$scope.'</label>';
|
||||||
}
|
}
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
print '<tr class="oddeven value">';
|
print '<tr class="oddeven value">';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user