mirror of
https://github.com/LDAPAccountManager/lam.git
synced 2025-10-05 19:42:31 +02:00
restyling
This commit is contained in:
parent
bc4bd05644
commit
b9febbb171
9 changed files with 19 additions and 11 deletions
Binary file not shown.
Before Width: | Height: | Size: 838 B |
9
lam/graphics/save.svg
Normal file
9
lam/graphics/save.svg
Normal file
|
@ -0,0 +1,9 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
|
||||
<g transform="matrix(.77778 0 0 .8 -1.33333 -1.6)" style="fill-rule:evenodd">
|
||||
<path d="m 7,2 10,0 c 3,0 4,1 4,4 l 0,12 c 0,3 -1,4 -4,4 L 7,22 C 4,22 3,21 3,18 L 3,6 C 3,3 4,2 7,2 z" style="fill:#268bd2"/>
|
||||
<path d="m 7,2 10,0 c 3,0 4,1 4,4 l 0,8 c 0,3 -1,4.25 -4,4.25 l -10,0 C 4,18.25 3,17 3,14 L 3,6 C 3,3 4,2 7,2 Z" style="fill:#fff;fill-opacity:0.3"/>
|
||||
</g>
|
||||
<g transform="translate(-4 -3)" style="color:#000">
|
||||
<path d="m 16.5 10 -4.5 5 -4.5 -5 2.5 0 0 -5 4 0 0 5 z" style="fill:#fff;fill-opacity:0.9"/>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 588 B |
Binary file not shown.
Before Width: | Height: | Size: 1.3 KiB |
|
@ -1881,7 +1881,7 @@ class inetOrgPerson extends baseModule implements passwordService {
|
|||
fwrite($out, $this->attributes['userCertificate;binary'][$i]);
|
||||
fclose ($out);
|
||||
$path = '../../tmp/' . $filename;
|
||||
$link = new htmlLink('', $path, '../../graphics/save.png');
|
||||
$link = new htmlLink('', $path, '../../graphics/save.svg');
|
||||
$link->setTargetWindow('_blank');
|
||||
$link->setCSSClasses(array('icon'));
|
||||
$table->addElement($link);
|
||||
|
@ -3226,7 +3226,7 @@ class inetOrgPerson extends baseModule implements passwordService {
|
|||
}
|
||||
}
|
||||
}
|
||||
$saveLink = new htmlLink('', $path, '../../graphics/save.png');
|
||||
$saveLink = new htmlLink('', $path, '../../graphics/save.svg');
|
||||
$saveLink->setTitle(_('Save'));
|
||||
$saveLink->setTargetWindow('_blank');
|
||||
$saveLink->setCSSClasses(array('icon'));
|
||||
|
|
|
@ -422,12 +422,13 @@ class TreeView {
|
|||
|
||||
if (checkIfWriteAccessIsAllowed()) {
|
||||
$row->addVerticalSpacer('2rem');
|
||||
$saveButton = new htmlLink(_('Save'), '#', '../../graphics/save.png', true);
|
||||
$saveButton = new htmlLink(_('Save'), '#', '../../graphics/save.svg', true);
|
||||
$saveButton->setId('savebutton');
|
||||
$saveButton->setOnClick('window.lam.treeview.saveAttributes(event,
|
||||
"' . getSecurityTokenName() . '",
|
||||
"' . getSecurityTokenValue() . '",
|
||||
"' . base64_encode($dn) . '");');
|
||||
$saveButton->setCSSClasses(array('icon'));
|
||||
$row->add($saveButton, 12, 12, 12, 'text-center');
|
||||
}
|
||||
|
||||
|
|
|
@ -426,11 +426,6 @@ table.collapse {
|
|||
}
|
||||
|
||||
/** buttons */
|
||||
.saveButton {
|
||||
background-image: url(../graphics/save.png) !important;
|
||||
background-position: 0px 0px !important;
|
||||
}
|
||||
|
||||
.loadProfileButton {
|
||||
background-image: url(../graphics/loadProfile.png) !important;
|
||||
background-position: 0px 0px !important;
|
||||
|
|
|
@ -458,9 +458,10 @@ printHeaderContents(_("Edit general settings"), '../..');
|
|||
$sslDelSaveGroup->addElement(new htmlSpacer('5px', null));
|
||||
// delete+download button
|
||||
if ($sslFileName != null) {
|
||||
$sslDownloadBtn = new htmlLink('', '../../tmp/' . $sslFileName, '../../graphics/save.png');
|
||||
$sslDownloadBtn = new htmlLink('', '../../tmp/' . $sslFileName, '../../graphics/save.svg');
|
||||
$sslDownloadBtn->setTargetWindow('_blank');
|
||||
$sslDownloadBtn->setTitle(_('Download CA certificates'));
|
||||
$sslDownloadBtn->setCSSClasses(array('icon'));
|
||||
$sslDelSaveGroup->addElement($sslDownloadBtn);
|
||||
$sslDeleteBtn = new htmlButton('sslCaCertDelete', 'del.svg', true);
|
||||
$sslDeleteBtn->setTitle(_('Delete all CA certificates'));
|
||||
|
|
|
@ -115,7 +115,7 @@ else {
|
|||
$delButton->addDataAttribute('oktext', _('Ok'));
|
||||
$delButton->addDataAttribute('canceltext', _('Cancel'));
|
||||
$delButton->setOnClick('window.lam.webauthn.removeOwnDevice(event, false);');
|
||||
$saveButton = new htmlButton('saveDevice' . $id, 'save.png', true);
|
||||
$saveButton = new htmlButton('saveDevice' . $id, 'save.svg', true);
|
||||
$saveButton->addDataAttribute('credential', $credentialId);
|
||||
$saveButton->addDataAttribute('dn', $result['dn']);
|
||||
$saveButton->addDataAttribute('nameelement', 'deviceName_' . $id);
|
||||
|
|
|
@ -283,7 +283,9 @@ function showMainPage(\LAM\TYPES\ConfiguredType $type, $selectedModules) {
|
|||
|
||||
// upload elements
|
||||
$row->addLabel(new htmlOutputText(_("Download sample CSV file")));
|
||||
$row->addField(new htmlLink('', 'masscreate.php?getCSV=1', '../../graphics/save.png'));
|
||||
$saveLink = new htmlLink('', 'masscreate.php?getCSV=1', '../../graphics/save.svg');
|
||||
$saveLink->setCSSClasses(array('icon'));
|
||||
$row->addField($saveLink);
|
||||
$row->addVerticalSpacer('3rem');
|
||||
$row->add(new htmlResponsiveInputFileUpload('inputfile', _("CSV file")), 12);
|
||||
$row->add(new htmlHiddenInput('typeId', $type->getId()), 12);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue