Switch to using icons when rendering a DN, and move the server icons to the topmenu

This commit is contained in:
2025-03-04 23:03:42 +11:00
parent 57b6b8c1f1
commit 070aabfc88
11 changed files with 199 additions and 163 deletions

View File

@@ -25,7 +25,7 @@
@switch($step)
@case(1)
<div class="row">
<div class="col-12 col-sm-6">
<div class="col-12 col-md-6">
<x-form.select
id="objectclass"
name="objectclass[]"
@@ -54,7 +54,7 @@
</form>
<div class="row d-none pt-3">
<div class="col-12 {{ $step > 1 ? 'offset-sm-2' : '' }} col-sm-4 col-lg-2">
<div class="col-12 {{ $step > 1 ? 'offset-sm-2' : '' }} col-lg-10">
<x-form.reset form="dn-create"/>
<x-form.submit action="Next" form="dn-create"/>
</div>

View File

@@ -149,7 +149,9 @@
function editmode() {
$('#dn-edit input[name="dn"]').val(dn);
$('button[id=entry-edit]').addClass('active').removeClass('btn-outline-dark').addClass('btn-outline-light');
$('button[id=entry-edit]')
.removeClass('btn-outline-dark')
.addClass('btn-dark');
// Find all input items and turn off readonly
$('input.form-control').each(function() {
@@ -201,15 +203,6 @@
$('#newattr-select').remove();
});
$('button[id=entry-edit]').on('click',function(item) {
item.preventDefault();
if ($(this).hasClass('active'))
return;
editmode();
});
$('#entry_export-download').on('click',function(item) {
item.preventDefault();