mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 19:44:35 -04:00
* Fix for comparing delete contacts change diffKeys to diff() * Client create * Client Settings * Working on localization * Refactor DataTables * protyping blade vs pure vue * Rebuild test module * Generic notes module * Small Client Notes Module * Tests for TabMenu Trait * implements tab pills in client screen * Integrate Modules
123 lines
6.6 KiB
Vue
123 lines
6.6 KiB
Vue
<template>
|
|
<div>
|
|
<ul class="nav nav-tabs" role="tablist">
|
|
<li class="nav-item">
|
|
<a class="nav-link active" data-toggle="tab" href="#billing" role="tab" aria-controls="billing">{{ trans('texts.billing_address') }}</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" data-toggle="tab" href="#shipping" role="tab" aria-controls="shipping">{{ trans('texts.shipping_address') }}</a>
|
|
</li>
|
|
</ul>
|
|
<div class="tab-content">
|
|
<div class="tab-pane active" id="billing" role="tabpanel">
|
|
<button type="button" class="btn btn-sm btn-light" v-on:click="$emit('copy', 'copy_shipping')"> {{ trans('texts.copy_shipping') }}</button>
|
|
<div class="card-body">
|
|
<div class="form-group row">
|
|
<label for="name" class="col-sm-3 col-form-label text-right">{{ trans('texts.address1') }}</label>
|
|
<div class="col-sm-9">
|
|
<input type="text" :placeholder="trans('texts.address1')" v-model="client.address1" class="form-control">
|
|
<div v-if="client.errors.has('address1')" class="text-danger" v-text="client.errors.get('address1')"></div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group row">
|
|
<label for="name" class="col-sm-3 col-form-label text-right">{{ trans('texts.address2') }}</label>
|
|
<div class="col-sm-9">
|
|
<input type="text":placeholder="trans('texts.address2')" v-model="client.address2" class="form-control">
|
|
<div v-if="client.errors.has('address2')" class="text-danger" v-text="client.errors.get('address2')"></div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group row">
|
|
<label for="name" class="col-sm-3 col-form-label text-right">{{ trans('texts.city') }}</label>
|
|
<div class="col-sm-9">
|
|
<input type="text":placeholder="trans('texts.city')" v-model="client.city" class="form-control">
|
|
<div v-if="client.errors.has('city')" class="text-danger" v-text="client.errors.get('city')"></div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group row">
|
|
<label for="name" class="col-sm-3 col-form-label text-right">{{ trans('texts.state') }}</label>
|
|
<div class="col-sm-9">
|
|
<input type="text" :placeholder="trans('texts.state')" v-model="client.state" class="form-control">
|
|
<div v-if="client.errors.has('state')" class="text-danger" v-text="client.errors.get('state')"></div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group row">
|
|
<label for="name" class="col-sm-3 col-form-label text-right">{{ trans('texts.postal_code') }}</label>
|
|
<div class="col-sm-9">
|
|
<input type="text" :placeholder="trans('texts.postal_code')" v-model="client.postal_code" class="form-control">
|
|
<div v-if="client.errors.has('postal_code')" class="text-danger" v-text="client.errors.get('postal_code')"></div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group row">
|
|
<label for="name" class="col-sm-3 col-form-label text-right">{{ trans('texts.country') }}</label>
|
|
<div class="col-sm-9">
|
|
<input type="text" :placeholder="trans('texts.country')" v-model="client.country" class="form-control">
|
|
<div v-if="client.errors.has('country')" class="text-danger" v-text="client.errors.get('country')"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="tab-pane" id="shipping" role="tabpanel">
|
|
<button type="button" class="btn btn-sm btn-light" v-on:click="$emit('copy',' copy_billing')"> {{ trans('texts.copy_billing') }}</button>
|
|
<div class="form-group row">
|
|
<label for="name" class="col-sm-3 col-form-label text-right">{{ trans('texts.address1') }}</label>
|
|
<div class="col-sm-9">
|
|
<input type="text" :placeholder="trans('texts.address1')" v-model="client.shipping_address1" class="form-control">
|
|
<div v-if="client.errors.has('shipping_address1')" class="text-danger" v-text="client.errors.get('shipping_address1')"></div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group row">
|
|
<label for="name" class="col-sm-3 col-form-label text-right">{{ trans('texts.address2') }}</label>
|
|
<div class="col-sm-9">
|
|
<input type="text" :placeholder="trans('texts.address2')" v-model="client.shipping_address2" class="form-control">
|
|
<div v-if="client.errors.has('shipping_address2')" class="text-danger" v-text="client.errors.get('shipping_address2')"></div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group row">
|
|
<label for="name" class="col-sm-3 col-form-label text-right">{{ trans('texts.city') }}</label>
|
|
<div class="col-sm-9">
|
|
<input type="text" :placeholder="trans('texts.city')" v-model="client.shipping_city" class="form-control">
|
|
<div v-if="client.errors.has('shipping_city')" class="text-danger" v-text="client.errors.get('shipping_city')"></div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group row">
|
|
<label for="name" class="col-sm-3 col-form-label text-right">{{ trans('texts.state') }}</label>
|
|
<div class="col-sm-9">
|
|
<input type="text" :placeholder="trans('texts.state')" v-model="client.shipping_state" class="form-control">
|
|
<div v-if="client.errors.has('shipping_state')" class="text-danger" v-text="client.errors.get('shipping_state')"></div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group row">
|
|
<label for="name" class="col-sm-3 col-form-label text-right">{{ trans('texts.postal_code') }}</label>
|
|
<div class="col-sm-9">
|
|
<input type="text" :placeholder="trans('texts.postal_code')" v-model="client.shipping_postal_code" class="form-control">
|
|
<div v-if="client.errors.has('shipping_postal_code')" class="text-danger" v-text="client.errors.get('shipping_postal_code')"></div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group row">
|
|
<label for="name" class="col-sm-3 col-form-label text-right">{{ trans('texts.country') }}</label>
|
|
<div class="col-sm-9">
|
|
<input type="text" :placeholder="trans('texts.country')" v-model="client.shipping_country" class="form-control">
|
|
<div v-if="client.errors.has('shipping_country')" class="text-danger" v-text="client.errors.get('shipping_country')"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
props: ['client']
|
|
}
|
|
</script> |