mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Revert back plain form
This commit is contained in:
parent
49b753d3fd
commit
dd9f1b1afe
@ -94,8 +94,8 @@
|
|||||||
@csrf
|
@csrf
|
||||||
|
|
||||||
<div class="grid grid-cols-12 gap-4 mt-10">
|
<div class="grid grid-cols-12 gap-4 mt-10">
|
||||||
@if($registration_fields)
|
@if($fields)
|
||||||
@foreach($registration_fields as $field)
|
@foreach($fields as $field)
|
||||||
@if($field['visible'])
|
@if($field['visible'])
|
||||||
<div class="col-span-12 md:col-span-6">
|
<div class="col-span-12 md:col-span-6">
|
||||||
<section class="flex items-center">
|
<section class="flex items-center">
|
||||||
@ -104,6 +104,8 @@
|
|||||||
class="input-label">
|
class="input-label">
|
||||||
@if(in_array($field['key'], ['custom_value1','custom_value2','custom_value3','custom_value4']))
|
@if(in_array($field['key'], ['custom_value1','custom_value2','custom_value3','custom_value4']))
|
||||||
{{ (new App\Utils\Helpers())->makeCustomField($subscription->company->custom_fields, str_replace("custom_value","client", $field['key']))}}
|
{{ (new App\Utils\Helpers())->makeCustomField($subscription->company->custom_fields, str_replace("custom_value","client", $field['key']))}}
|
||||||
|
@elseif(array_key_exists('label', $field))
|
||||||
|
{{ ctrans("texts.{$field['label']}") }}
|
||||||
@else
|
@else
|
||||||
{{ ctrans("texts.{$field['key']}") }}
|
{{ ctrans("texts.{$field['key']}") }}
|
||||||
@endif
|
@endif
|
||||||
@ -121,7 +123,7 @@
|
|||||||
type="email"
|
type="email"
|
||||||
name="{{ $field['key'] }}"
|
name="{{ $field['key'] }}"
|
||||||
value="{{ old($field['key'], $this->email ?? '') }}"
|
value="{{ old($field['key'], $this->email ?? '') }}"
|
||||||
/>
|
/>
|
||||||
@elseif($field['key'] === 'password')
|
@elseif($field['key'] === 'password')
|
||||||
<input
|
<input
|
||||||
id="{{ $field['key'] }}"
|
id="{{ $field['key'] }}"
|
||||||
@ -198,44 +200,6 @@
|
|||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mt-6">
|
|
||||||
<h1 class="text-2xl font-medium">{{ ctrans('texts.details') }}</h1>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="grid grid-cols-12 gap-4 mt-10">
|
|
||||||
@foreach($fields as $field)
|
|
||||||
@if(!array_key_exists('filled', $field))
|
|
||||||
<div class="col-span-12 md:col-span-6">
|
|
||||||
<section class="flex items-center">
|
|
||||||
<label
|
|
||||||
for="password_confirmation"
|
|
||||||
class="input-label">
|
|
||||||
{{ $field['label'] }}
|
|
||||||
</label>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
@if($field['name'] == 'client_country_id' || $field['name'] == 'client_shipping_country_id')
|
|
||||||
<select id="client_country" class="input w-full form-select bg-white" name="{{ $field['name'] }}" wire:model="{{ $field['name'] }}">
|
|
||||||
<option value="none"></option>
|
|
||||||
|
|
||||||
@foreach($countries as $country)
|
|
||||||
<option value="{{ $country->id }}">
|
|
||||||
{{ $country->iso_3166_2 }} ({{ $country->name }})
|
|
||||||
</option>
|
|
||||||
@endforeach
|
|
||||||
</select>
|
|
||||||
@else
|
|
||||||
<input class="input w-full" type="{{ $field['type'] ?? 'text' }}" name="{{ $field['name'] }}" wire:model="{{ $field['name'] }}">
|
|
||||||
@endif
|
|
||||||
|
|
||||||
@if(session()->has('validation_errors') && array_key_exists($field['name'], session('validation_errors')))
|
|
||||||
<p class="mt-2 text-gray-900 border-red-300 px-2 py-1 bg-gray-100">{{ session('validation_errors')[$field['name']][0] }}</p>
|
|
||||||
@endif
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
@endforeach
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<button
|
<button
|
||||||
type="submit"
|
type="submit"
|
||||||
class="button button-block bg-primary text-white mt-4">
|
class="button button-block bg-primary text-white mt-4">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user