Compare commits
No commits in common. "240b46aa9ea0b999ae8339b6bcb10c87b1e2d3b5" and "55f08bd9593629cdf403e07771640e29ba274dab" have entirely different histories.
240b46aa9e
...
55f08bd959
@ -51,9 +51,6 @@
|
|||||||
$('attribute#krbTicketFlags').find('i')
|
$('attribute#krbTicketFlags').find('i')
|
||||||
.on('click',function() {
|
.on('click',function() {
|
||||||
var item = $(this);
|
var item = $(this);
|
||||||
if ($('form#dn-edit').attr('readonly'))
|
|
||||||
return;
|
|
||||||
|
|
||||||
var key = Number(item.attr('id').substring(1));
|
var key = Number(item.attr('id').substring(1));
|
||||||
|
|
||||||
if (item.data('old') === undefined)
|
if (item.data('old') === undefined)
|
||||||
|
@ -220,7 +220,7 @@
|
|||||||
<!-- All other attributes -->
|
<!-- All other attributes -->
|
||||||
@default
|
@default
|
||||||
@php($clone=TRUE)
|
@php($clone=TRUE)
|
||||||
<button @class(['btn','btn-sm','btn-outline-primary','mt-3','addable','d-none'=>(! $new)]) id="{{ $o->name }}-addnew"><i class="fas fa-fw fa-plus"></i> @lang('Add Value')</button>
|
<span @class(['btn','btn-sm','btn-outline-primary','mt-3','addable','d-none'=>(! $new)]) id="{{ $o->name }}-addnew"><i class="fas fa-fw fa-plus"></i> @lang('Add Value')</span>
|
||||||
|
|
||||||
@section('page-scripts')
|
@section('page-scripts')
|
||||||
@if($clone && $edit && $o->can_addvalues)
|
@if($clone && $edit && $o->can_addvalues)
|
||||||
|
@ -85,7 +85,7 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Our password type
|
// Our password type
|
||||||
$('attribute#userPassword .form-select').each(function() {
|
$('div#userPassword .form-select').each(function() {
|
||||||
$(this).prop('disabled',false);
|
$(this).prop('disabled',false);
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
<div class="tab-content">
|
<div class="tab-content">
|
||||||
<!-- All Attributes -->
|
<!-- All Attributes -->
|
||||||
<div class="tab-pane active" id="attributes" role="tabpanel">
|
<div class="tab-pane active" id="attributes" role="tabpanel">
|
||||||
<form id="dn-edit" method="POST" class="needs-validation" action="{{ url('entry/update/pending') }}" novalidate readonly>
|
<form id="dn-edit" method="POST" class="needs-validation" action="{{ url('entry/update/pending') }}" novalidate>
|
||||||
@csrf
|
@csrf
|
||||||
|
|
||||||
<input type="hidden" name="dn" value="">
|
<input type="hidden" name="dn" value="">
|
||||||
@ -156,12 +156,9 @@
|
|||||||
function editmode() {
|
function editmode() {
|
||||||
$('#dn-edit input[name="dn"]').val(dn);
|
$('#dn-edit input[name="dn"]').val(dn);
|
||||||
|
|
||||||
$('form#dn-edit').attr('readonly',false);
|
|
||||||
$('button[id=entry-edit]')
|
$('button[id=entry-edit]')
|
||||||
.removeClass('btn-outline-dark')
|
.removeClass('btn-outline-dark')
|
||||||
.addClass('btn-dark')
|
.addClass('btn-dark');
|
||||||
.addClass('opacity-100')
|
|
||||||
.attr('disabled',true);
|
|
||||||
|
|
||||||
// Find all input items and turn off readonly
|
// Find all input items and turn off readonly
|
||||||
$('input.form-control').each(function() {
|
$('input.form-control').each(function() {
|
||||||
@ -173,13 +170,13 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Our password type
|
// Our password type
|
||||||
$('attribute#userPassword .form-select').each(function() {
|
$('div#userPassword .form-select').each(function() {
|
||||||
$(this).prop('disabled',false);
|
$(this).prop('disabled',false);
|
||||||
})
|
})
|
||||||
|
|
||||||
$('.row.d-none').removeClass('d-none');
|
$('.row.d-none').removeClass('d-none');
|
||||||
$('button.addable.d-none').removeClass('d-none');
|
$('.addable.d-none').removeClass('d-none');
|
||||||
$('button.deletable.d-none').removeClass('d-none');
|
$('.deletable.d-none').removeClass('d-none');
|
||||||
|
|
||||||
@if($o->getMissingAttributes()->count())
|
@if($o->getMissingAttributes()->count())
|
||||||
$('#newattr-select.d-none').removeClass('d-none');
|
$('#newattr-select.d-none').removeClass('d-none');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user