diff --git a/public/css/fixes.css b/public/css/fixes.css index fb6c723..f34e96e 100644 --- a/public/css/fixes.css +++ b/public/css/fixes.css @@ -297,7 +297,7 @@ select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__ font-weight: 800; } -div#objectclass .input-group-delete { +div#objectClass .input-group-delete { position: relative; float: inline-end; bottom: 30px; diff --git a/resources/themes/architect/views/layouts/partials/htmlheader.blade.php b/resources/themes/architect/views/layouts/partials/htmlheader.blade.php index b6d809b..51839d2 100644 --- a/resources/themes/architect/views/layouts/partials/htmlheader.blade.php +++ b/resources/themes/architect/views/layouts/partials/htmlheader.blade.php @@ -10,7 +10,7 @@ - {{ config('app.name') }} - @yield('htmlheader_title','🥇 The BEST ldap admin tool!') + {{ config('app.name') }} - @yield('htmlheader_title','🥇 An LDAP Administration Tool') diff --git a/resources/views/components/attribute/layout.blade.php b/resources/views/components/attribute/layout.blade.php index e139abe..080e7f0 100644 --- a/resources/views/components/attribute/layout.blade.php +++ b/resources/views/components/attribute/layout.blade.php @@ -1,7 +1,7 @@
(! $edit)])>
-
+
{{ $slot }}
diff --git a/resources/views/components/attribute/widget/options.blade.php b/resources/views/components/attribute/widget/options.blade.php index 4cdde6e..c62c012 100644 --- a/resources/views/components/attribute/widget/options.blade.php +++ b/resources/views/components/attribute/widget/options.blade.php @@ -90,7 +90,7 @@ type: 'POST', beforeSend: function() {}, success: function(data) { - $('#{{ $o->name_lc }}').append(data); + $('#{{ $o->name }}').append(data); }, error: function(e) { if (e.status != 412) @@ -182,9 +182,15 @@ }); } + data.must.concat(attrs).forEach(function(attr) { + var x = $('#'+attr).find('input'); + + x.css('background-color','#f0c0c0').attr('readonly',true).attr('placeholder',x.val()).val(''); + }); + + // remove the Add Values box + // Remove any keyed in values // @todo remove any required attributes that are no longer defined as a result of removing this OC - console.log('Remove required attributes of:'+item); - console.log(attrs); }, error: function(e) { if (e.status != 412) @@ -206,17 +212,17 @@ @case('App\Classes\LDAP\Attribute') @default @php($clone=TRUE) - (! $new)]) id="{{ $o->name_lc }}"> @lang('Add Value') + (! $new)]) id="{{ $o->name }}-addnew"> @lang('Add Value') @section('page-scripts') @if($clone && $edit && $o->can_addvalues)