managecomp.html 1.8 KB

123456789101112131415161718192021222324252627282930
  1. <ion-view view-title="{{'managecompTitle' | translate}}">
  2. <ion-nav-buttons side="right">
  3. <button class="button button-clear" ng-click="showaddcompmodel()">
  4. <i class="icon ion-android-add"></i>
  5. </button>
  6. </ion-nav-buttons>
  7. <ion-content>
  8. <div class="item item-divider divider-font">{{'hasjoinedcompTitle' | translate}}({{compdata==undefined?0:compdata.length}})</div>
  9. <div ng-if="loading" class="center init-load action-sheet-backdrop">
  10. <ion-spinner icon="android"></ion-spinner>
  11. </div>
  12. <ion-list ng-init="init()" ng-show="!loading">
  13. <div ng-repeat="comp in compdata">
  14. <ion-item class=" comp-item item-avatar item-icon-right" type="item-text-wrap">
  15. <img ng-src="{{comp.file_thumbnail_path}}">
  16. <label for="" class="item-text-wrap">{{comp.name}}&nbsp;&nbsp;({{'codeTitle' | translate}}:{{comp.id}})</label>
  17. <p><i class="ion-ios-person-outline icon-accessory ion-person"></i>{{'administratorTitle' | translate}} {{comp.compadmins}}</p>
  18. </ion-item>
  19. <div class="comp-op">
  20. <div>
  21. <label for="">{{'hadjoinedTitle' | translate}}: {{comp.usrcount}}{{'personTitle' | translate}}</label>
  22. <button class="button button-outline button-calm" ng-if="comp.op==0&&comp.usr_status==2" ng-click="tocompinfo(comp.id,0)">{{'seeTitle' | translate}}</button>
  23. <button class="button button-outline button-calm" ng-if="comp.op==1&&comp.usr_status==2" ng-click="tocompinfo(comp.id,1)">{{'editTitle' | translate}}</button>
  24. </div>
  25. </div>
  26. </div>
  27. <ion-list>
  28. </ion-content>
  29. </ion-view>