1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-11 05:32:39 +01:00
invoiceninja/resources/views/client/partial/contact_details.blade.php

56 lines
3.1 KiB
PHP
Raw Normal View History

<div class="card-body">
<div class="form-group row">
2019-09-26 15:00:51 +02:00
<label for="name" class="col-sm-3 col-form-label text-right">@lang::get('texts.first_name')</label>
<div class="col-sm-9">
<input name="id" type="hidden" v-model="contact.client_id" value="{{ $client->present()->id ?: -1}}">
2019-09-26 15:00:51 +02:00
<input ref="first_name" name="first_name" placeholder="@lang::get('texts.first_name')" class="form-control" v-model="contact.first_name">
<div v-if="form.errors.has('contacts.'+key+'.first_name')" class="text-danger" v-text="form.errors.get('contacts.'+key+'.first_name')"></div>
</div>
</div>
<div class="form-group row">
2019-09-26 15:00:51 +02:00
<label for="name" class="col-sm-3 col-form-label text-right">@lang::get('texts.last_name')</label>
<div class="col-sm-9">
2019-09-26 15:00:51 +02:00
<input name="last_name" placeholder="@lang::get('texts.last_name')" class="form-control" v-model="contact.last_name">
<div v-if="form.errors.has('contacts.'+key+'.last_name')" class="text-danger" v-text="form.errors.get('contacts.'+key+'.last_name')"></div>
</div>
</div>
<div class="form-group row">
2019-09-26 15:00:51 +02:00
<label for="name" class="col-sm-3 col-form-label text-right">@lang::get('texts.email')</label>
<div class="col-sm-9">
2019-09-26 15:00:51 +02:00
<input name="email" placeholder="@lang::get('texts.email')" class="form-control" v-model="contact.email">
<div v-if="form.errors.has('contacts.'+key+'.email')" class="text-danger" v-text="form.errors.get('contacts.'+key+'.email')"></div>
</div>
</div>
<div class="form-group row">
2019-09-26 15:00:51 +02:00
<label for="name" class="col-sm-3 col-form-label text-right">@lang::get('texts.phone')</label>
<div class="col-sm-9">
2019-09-26 15:00:51 +02:00
<input name="phone" placeholder="@lang::get('texts.phone')" class="form-control" v-model="contact.phone">
<div v-if="form.errors.has('contacts.'+key+'.phone')" class="text-danger" v-text="form.errors.get('contacts.'+key+'.phone')"></div>
</div>
</div>
<div class="form-group row">
2019-09-26 15:00:51 +02:00
<label for="name" class="col-sm-3 col-form-label text-right">@lang::get('texts.custom_value1')</label>
<div class="col-sm-9">
2019-09-26 15:00:51 +02:00
<input name="custom_value1" placeholder="@lang::get('texts.custom_value1')" class="form-control" v-model="contact.custom_value1">
<div v-if="form.errors.has('contacts.'+key+'.custom_value1')" class="text-danger" v-text="form.errors.get('contacts.'+key+'.custom_value1')"></div>
</div>
</div>
<div class="form-group row">
2019-09-26 15:00:51 +02:00
<label for="name" class="col-sm-3 col-form-label text-right">@lang::get('texts.custom_value2')</label>
<div class="col-sm-9">
2019-09-26 15:00:51 +02:00
<input name="custom_value2" placeholder="@lang::get('texts.custom_value2')" class="form-control" v-model="contact.custom_value2">
<div v-if="form.errors.has('contacts.'+key+'.custom_value2')" class="text-danger" v-text="form.errors.get('contacts.'+key+'.custom_value2')"></div>
</div>
</div>
<div class="float-right">
<button type="button" class="btn btn-danger" v-on:click="remove(contact)"> {{ trans('texts.remove_contact') }}</button>
</div>
</div>