<ion-modal-view class="newcomp-modalview">
    <ion-header-bar>
        <button class="button button-clear" ng-click="cancel()">{{'cancelTitle' | translate}}</button>
        <h1 class="title">{{'createcompTitle' | translate}}</h1>
    </ion-header-bar>
    <ion-content class="create-comp-content">
        <div class="comp-logo-box">
            <img ng-src="{{logourl}}" ng-click="editlogo();">
            <div><i class="ion-edit"></i>{{'editTitle' | translate}}logo</div>
        </div>
        <form name="form" novalidate>
            <div class="list list-inset compname-div">
                <label class="item item-input" ng-class="{'true':'border-red'}[form.compname.$dirty &&form.compname.$invalid]">
                    <input type="text" name="compname" ng-model="newcompname.compname" ng-minlength="2" ng-maxlength="45"  required placeholder="{{'entercompanynameTitle'| translate }}">
                </label>
            </div>
            <button type="submit" class="create-comp-button button button-block calm" ng-disabled="form.compname.$invalid||form.compname.$pristine" ng-click="createcomp()">{{'createcompTitle'| translate }}</button>
        </form>
        <!-- <div class="line-hr">
            <div>^[\a-\z\A-\Z0-9\u4E00-\u9FA5]
                <ion-item class=" comp-item item-avatar item-icon-right" type="item-text-wrap">
                    <img ng-src="../../../img/panda.png">
                    <label for="">聚福轩</label>
                    <p><i class="ion-ios-person-outline icon-accessory ion-person"></i>管理员 李丽云</p>
                </ion-item>
                <div class="comp-op">
                    <div>
                        <label for="">已加入: 3人</label>
                        <button class="button button-outline button-calm" ng-click="tocompinfo(0,0)">申请</button>
                    </div>
                </div>
            </div>
        </div> -->
    </ion-content>
</ion-modal-view>
