1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-15 23:52:33 +01:00
invoiceninja/resources/views/portal/ninja2020/profile/settings/general.blade.php

97 lines
5.8 KiB
PHP
Raw Normal View History

2020-09-24 13:29:41 +02:00
<div class="mt-2 sm:mt-6">
<div class="md:grid md:grid-cols-3 md:gap-6">
<div class="md:col-span-1">
<div class="sm:px-0">
<h3 class="text-lg font-medium leading-6 text-gray-900">{{ ctrans('texts.contact_details') }}</h3>
2020-09-24 13:29:41 +02:00
</div>
</div> <!-- End of left-side -->
<div class="mt-5 md:mt-0 md:col-span-2">
<form wire:submit.prevent="submit" id="update_client">
2020-09-24 13:29:41 +02:00
@csrf
@method('PUT')
<div class="shadow overflow-hidden rounded">
<div class="px-4 py-5 bg-white sm:p-6">
<div class="grid grid-cols-6 gap-6">
<div class="col-span-6 sm:col-span-3">
<label for="first_name" class="input-label">@lang('texts.first_name')</label>
<input id="contact_first_name"
class="input w-full {{ in_array('contact_first_name', (array) session('missing_required_fields')) ? 'border border-red-400' : '' }}"
name="first_name" wire:model.defer="first_name"/>
2020-09-24 13:29:41 +02:00
@error('first_name')
<div class="validation validation-fail">
{{ $message }}
</div>
@enderror
</div>
<div class="col-span-6 sm:col-span-3">
<label for="last_name" class="input-label">@lang('texts.last_name')</label>
<input id="contact_last_name"
class="input w-full {{ in_array('contact_last_name', (array) session('missing_required_fields')) ? 'border border-red-400' : '' }}"
name="last_name" wire:model.defer="last_name"/>
2020-09-24 13:29:41 +02:00
@error('last_name')
<div class="validation validation-fail">
{{ $message }}
</div>
@enderror
</div>
<div class="col-span-6 sm:col-span-4">
<label for="email_address" class="input-label">@lang('texts.email_address')</label>
<input id="contact_email_address"
class="input w-full {{ in_array('contact_email', (array) session('missing_required_fields')) ? 'border border-red-400' : '' }}"
type="email" name="email" wire:model.defer="email"/>
2020-09-24 13:29:41 +02:00
@error('email')
<div class="validation validation-fail">
{{ $message }}
</div>
@enderror
</div>
<div class="col-span-6 sm:col-span-4">
<label for="contact_phone" class="input-label">@lang('texts.phone')</label>
<input id="contact_phone" class="input w-full" name="phone"
wire:model.defer="phone"/>
2020-09-24 13:29:41 +02:00
@error('phone')
<div class="validation validation-fail">
{{ $message }}
</div>
@enderror
</div>
<div class="col-span-6 sm:col-span-6 lg:col-span-3">
<label for="contact_password" class="input-label">@lang('texts.password')</label>
<input id="contact_password" class="input w-full" name="password"
wire:model.defer="password" type="password"/>
2020-09-24 13:29:41 +02:00
@error('password')
<div class="validation validation-fail">
{{ $message }}
</div>
@enderror
</div>
<div class="col-span-6 sm:col-span-3 lg:col-span-3">
<label for="contact_password_confirmation"
class="input-label">@lang('texts.confirm_password')</label>
<input id="contact_password_confirmation" class="input w-full"
name="password_confirmation"
wire:model.defer="password_confirmation" type="password"/>
2020-09-24 13:29:41 +02:00
@error('password_confirmation')
<div class="validation validation-fail">
{{ $message }}
</div>
@enderror
</div>
</div>
</div>
<div class="px-4 py-3 bg-gray-50 text-right sm:px-6">
<button data-ref="update-contact-details"
class="button button-primary bg-primary">{{ $saved }}</button>
2020-09-24 13:29:41 +02:00
</div>
</div>
</form>
</div> <!-- End of main form -->
</div>
</div>