<ion-modal-view>
    <ion-header-bar class="bar bar-positive">
        <h1 class="title">Cliente</h1>
        <div class="buttons">
            <button class="button button-clear ion-camera bar-icon" ng-disabled="!customer.name" ng-click="takePicture()"></i></button>
            <button class="button button-clear ion-checkmark-round bar-icon" type="submit" form="customer-form" ng-disabled="!customer.name"></button>
        </div>
   </ion-header-bar>
    <ion-content>
        <div>
            <a style="display:block;" href="">
                <img class="profile" ng-src="data:image/png;base64,{{ customer.image_small || '[encoded data, 16204 characters]' }}">
            </a>
        </div>
        <form id="customer-form" ng-submit="save()">
            <div class="list">
                <input type="hidden" ng-model="customer.customer" ng-init="customer.customer = 1">
                <label class="item item-input item-stacked-label">
                    <span class="input-label">Nombre</span>
                    <input type="text" autofocus="autofocus" ng-model="customer.name">
                </label>
                <label class="item item-input item-stacked-label">
                    <span class="input-label">Ciudad</span>
                    <input type="text" ng-model="customer.city">
                </label>
                <label class="item item-input item-stacked-label">
                    <span class="input-label item-stacked-label">Celular</span>
                    <input type="tel" ng-model="customer.mobile">
                </label>
                <label class="item item-input item-stacked-label">
                    <span class="input-label">Teléfono</span>
                    <input type="tel" ng-model="customer.phone">
                </label>
                <label class="item item-input item-stacked-label">
                    <span class="input-label">Fax</span>
                    <input type="tel" ng-model="customer.fax">
                </label>
                <label class="item item-input item-stacked-label">
                    <span class="input-label">Email</span>
                    <input type="email" ng-model="customer.email">
                </label>
                <label class="item item-input item-stacked-label">
                    <span class="input-label">Dirección</span>
                    <input type="text" ng-model="customer.street">
                </label>
                <label class="item item-input item-stacked-label">
                    <span class="input-label">Dirección</span>
                    <input type="text" ng-model="customer.street2">
                </label>
                <label class="item item-input item-stacked-label">
                    <span class="input-label">Nota</span>
                    <textarea rows="8" cols="40" ng-model="customer.comment"></textarea>
                </label>
            </div>
        </form>
    </ion-content>
</ion-modal-view>
