<ion-view view-title="{{'joincompTitle'| translate }}">
    <ion-content ng-init="init()">
        <div class="joincomp-tip " ng-if="is_show_jointip">
            <div class="title">
                <label for=""><i class="ion-ios-checkmark-outline"></i></label>
                <label for="">{{'successjointipTitle'| translate }}</label>
            </div>
        </div>
        <div class="comp-logo-box">

        </div>
        <form name="form" novalidate>
            <div class="list list-inset compname-div">
                <label class="item item-input" ng-class="{'true':'border-red'}[form.compid.$dirty &&form.compid.$invalid]">
                    <input type="tel" name="compid" ng-model="data.compid" ng-pattern="/^[1-9]\d{0,10}$/" required placeholder="{{'entercompanycodetipTitle'| translate }}">
                </label>
                <!--<span class="colorred" ng-show="form.compid.$dirty &&form.compid.$invalid">&nbsp;&nbsp;请输入正确的公司代号</span>-->
            </div>
            <button type="submit" class="create-comp-button button button-block calm" ng-disabled="form.compid.$invalid||form.compid.$pristine" ng-click="joincomp()">{{'joincompTitle'| translate }}</button>
        </form>
        <div class="line-hr" ng-if="addedcomp.compid!=undefined">
            <div>
                <ion-item class=" comp-item item-avatar item-icon-right" type="item-text-wrap">
                    <img ng-src="{{file_thumbnail_path}}">
                    <label for="">{{addedcomp.name}}</label>
                    <p><i class="ion-ios-person-outline icon-accessory ion-person"></i>{{'administratorTitle' | translate}} {{addedcomp.compadmin}}</p>
                </ion-item>
                <div class="comp-op">
                    <div>
                        <label for="">{{'hadjoinedTitle' | translate}}: {{addedcomp.usrcount}}{{'personTitle' | translate}}</label>
                        <!-- <button class="button button-outline button-calm" ng-click="tocompinfo(0,0)">申请</button> -->
                    </div>
                </div>
            </div>
        </div>
    </ion-content>
</ion-view>
