Form elements disabled issue solved..
This commit is contained in:
		| @@ -49,7 +49,7 @@ | ||||
|                                 @if ((session('company_id') != $item->id)) | ||||
|                                     {{ Form::bulkActionGroup($item->id, $item->name) }} | ||||
|                                 @else | ||||
|                                     {{ Form::bulkActionGroup($item->id, $item->name, ['disabled' => 'disabled']) }} | ||||
|                                     {{ Form::bulkActionGroup($item->id, $item->name, ['disabled' => 'true']) }} | ||||
|                                 @endif | ||||
|                             </td> | ||||
|                             <td class="col-sm-2 col-md-2 col-lg-1 col-xl-1 d-none d-sm-block"><a class="col-aka">{{ $item->id }}</a></td> | ||||
|   | ||||
| @@ -19,7 +19,7 @@ | ||||
|                 <div class="row"> | ||||
|                     {{ Form::textGroup('name', trans('general.name'), 'font') }} | ||||
|  | ||||
|                     {{ Form::textGroup('class_disabled', trans_choice('general.types', 1), 'bars', ['required' => 'required', 'disabled' => 'disabled'], $classes[$report->class]) }} | ||||
|                     {{ Form::textGroup('class_disabled', trans_choice('general.types', 1), 'bars', ['required' => 'required', 'disabled' => 'true'], $classes[$report->class]) }} | ||||
|                     {{ Form::hidden('class', $report->class) }} | ||||
|  | ||||
|                     {{ Form::textareaGroup('description', trans('general.description'), null, null, ['rows' => '3', 'required' => 'required']) }} | ||||
|   | ||||
| @@ -19,7 +19,7 @@ | ||||
|             {{ Form::selectGroup('account_id', trans_choice('general.accounts', 1), 'university', $accounts, setting('default.account'), ['required' => 'required', 'v-model' => 'transaction_form.account_id', 'v-error' => 'payment.errors.get("account_id")', 'v-error-message' => 'payment.errors.get("account_id")', 'change' => 'onChangePaymentAccount']) }} | ||||
|  | ||||
|             @stack('currency_code_input_start') | ||||
|                 {{ Form::textGroup('currency', trans_choice('general.currencies', 1), 'exchange-alt', ['disabled' => 'disabled', 'v-model' => 'transaction_form.currency', 'v-error' => 'payment.errors.get("currency")', 'v-error-message' => 'payment.errors.get("currency")'], $currencies[$bill->currency_code]) }} | ||||
|                 {{ Form::textGroup('currency', trans_choice('general.currencies', 1), 'exchange-alt', ['disabled' => 'true', 'v-model' => 'transaction_form.currency', 'v-error' => 'payment.errors.get("currency")', 'v-error-message' => 'payment.errors.get("currency")'], $currencies[$bill->currency_code]) }} | ||||
|             @stack('currency_code_input_end') | ||||
|  | ||||
|             {{ Form::textareaGroup('description', trans('general.description'), '', null, ['rows' => '3', 'v-model' => 'transaction_form.description', 'v-error' => 'payment.errors.get("description")', 'v-error-message' => 'payment.errors.get("description")']) }} | ||||
|   | ||||
| @@ -18,7 +18,7 @@ | ||||
|  | ||||
|             {{ Form::selectGroup('account_id', trans_choice('general.accounts', 1), 'university', $accounts, setting('default.account'), ['required' => 'required', 'v-model' => 'transaction_form.account_id', 'v-error' => 'payment.errors.get("account_id")', 'v-error-message' => 'payment.errors.get("account_id")', 'change' => 'onChangePaymentAccount']) }} | ||||
|  | ||||
|             {{ Form::textGroup('currency', trans_choice('general.currencies', 1), 'exchange-alt', ['disabled' => 'disabled', 'v-model' => 'transaction_form.currency', 'v-error' => 'payment.errors.get("currency")', 'v-error-message' => 'payment.errors.get("currency")'], $currencies[$invoice->currency_code]) }} | ||||
|             {{ Form::textGroup('currency', trans_choice('general.currencies', 1), 'exchange-alt', ['disabled' => 'true', 'v-model' => 'transaction_form.currency', 'v-error' => 'payment.errors.get("currency")', 'v-error-message' => 'payment.errors.get("currency")'], $currencies[$invoice->currency_code]) }} | ||||
|  | ||||
|             {{ Form::textareaGroup('description', trans('general.description'), '', null, ['rows' => '3', 'v-model' => 'transaction_form.description', 'v-error' => 'payment.errors.get("description")', 'v-error-message' => 'payment.errors.get("description")']) }} | ||||
|  | ||||
|   | ||||
| @@ -40,7 +40,7 @@ | ||||
|  | ||||
|                     {{ Form::fileGroup('attachment', trans('general.attachment')) }} | ||||
|  | ||||
|                     {{ Form::selectGroup('document_id', trans_choice('general.bills', 1), 'file-invoice', [], null, ['disabled' => 'disabled']) }} | ||||
|                     {{ Form::selectGroup('document_id', trans_choice('general.bills', 1), 'file-invoice', [], null, ['disabled' => 'true']) }} | ||||
|                 </div> | ||||
|             </div> | ||||
|  | ||||
|   | ||||
| @@ -67,7 +67,7 @@ | ||||
|                     @endif | ||||
|  | ||||
|                     @if ($payment->bill) | ||||
|                         {{ Form::textGroup('document', trans_choice('general.bills', 1), 'file-invoice', ['disabled' => 'disabled'], $payment->bill->bill_number) }} | ||||
|                         {{ Form::textGroup('document', trans_choice('general.bills', 1), 'file-invoice', ['disabled' => 'true'], $payment->bill->bill_number) }} | ||||
|                         {{ Form::hidden('document_id', $payment->bill->id) }} | ||||
|                     @endif | ||||
|                 </div> | ||||
|   | ||||
| @@ -42,7 +42,7 @@ | ||||
|                                 {{ Form::checkbox('create_user', '1', 1, [ | ||||
|                                     'id' => 'create_user', | ||||
|                                     'class' => 'custom-control-input', | ||||
|                                     'disabled' => 'disabled' | ||||
|                                     'disabled' => 'true' | ||||
|                                 ]) }} | ||||
|  | ||||
|                                 <label class="custom-control-label" for="create_user"> | ||||
|   | ||||
| @@ -23,7 +23,7 @@ | ||||
|  | ||||
|                     {{ Form::dateGroup('invoiced_at', trans('invoices.invoice_date'), 'calendar', ['id' => 'invoiced_at', 'class' => 'form-control datepicker', 'required' => 'required', 'date-format' => 'Y-m-d', 'autocomplete' => 'off'], request()->get('invoiced_at', Date::now()->toDateString())) }} | ||||
|  | ||||
|                     {{ Form::dateGroup('due_at', trans('invoices.due_date'), 'calendar', ['id' => 'due_at', 'class' => 'form-control datepicker', 'required' => 'required', 'date-format' => 'Y-m-d', 'autocomplete' => 'off'], request()->get('due_at', Date::parse(request()->get('invoiced_at', Date::now()->toDateString()))->addDays(setting('invoice.payment_terms', 0))->toDateString())) }} | ||||
|                     {{ Form::dateGroup('due_at', trans('invoices.due_date'), 'calendar', ['id' => 'due_at', 'class' => 'form-control datepicker', 'required' => 'required', 'date-format' => 'Y-m-d', 'autocomplete' => 'off']) }} | ||||
|  | ||||
|                     {{ Form::textGroup('invoice_number', trans('invoices.invoice_number'), 'file', ['required' => 'required'], $number) }} | ||||
|  | ||||
|   | ||||
| @@ -40,7 +40,7 @@ | ||||
|  | ||||
|                     {{ Form::fileGroup('attachment', trans('general.attachment')) }} | ||||
|  | ||||
|                     {{ Form::selectGroup('document_id', trans_choice('general.invoices', 1), 'file-invoice', [], null, ['disabled' => 'disabled']) }} | ||||
|                     {{ Form::selectGroup('document_id', trans_choice('general.invoices', 1), 'file-invoice', [], null, ['disabled' => 'true']) }} | ||||
|                 </div> | ||||
|             </div> | ||||
|  | ||||
|   | ||||
| @@ -67,7 +67,7 @@ | ||||
|                     @endif | ||||
|  | ||||
|                     @if ($revenue->invoice) | ||||
|                         {{ Form::textGroup('document', trans_choice('general.invoices', 1), 'file-invoice', ['disabled' => 'disabled'], $revenue->invoice->invoice_number) }} | ||||
|                         {{ Form::textGroup('document', trans_choice('general.invoices', 1), 'file-invoice', ['disabled' => 'true'], $revenue->invoice->invoice_number) }} | ||||
|                         {{ Form::hidden('document_id', $revenue->invoice->id) }} | ||||
|                     @endif | ||||
|                 </div> | ||||
|   | ||||
| @@ -21,7 +21,7 @@ | ||||
|                     {{ Form::textGroup('name', trans('general.name'), 'font') }} | ||||
|  | ||||
|                     @if ($type_disabled) | ||||
|                         {{ Form::selectGroup('type', trans_choice('general.types', 1), 'bars', $types, $category->type, ['required' => 'required', 'disabled' => 'disabled']) }} | ||||
|                         {{ Form::selectGroup('type', trans_choice('general.types', 1), 'bars', $types, $category->type, ['required' => 'required', 'disabled' => 'true']) }} | ||||
|                         <input type="hidden" name="type" value="{{ $category->type }}" /> | ||||
|                     @else | ||||
|                         {{ Form::selectGroup('type', trans_choice('general.types', 1), 'bars', $types, $category->type) }} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user