managecomp.html 1.7 KB

12345678910111213141516171819202122232425262728
  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. <ion-spinner ng-if="loading" class="center init-load" icon="android"></ion-spinner>
  10. <ion-list ng-init="init()" ng-show="!loading">
  11. <div ng-repeat="comp in compdata">
  12. <ion-item class=" comp-item item-avatar item-icon-right" type="item-text-wrap">
  13. <img ng-src="{{comp.file_thumbnail_path}}">
  14. <label for="" class="item-text-wrap">{{comp.name}}&nbsp;&nbsp;({{'codeTitle' | translate}}:{{comp.id}})</label>
  15. <p><i class="ion-ios-person-outline icon-accessory ion-person"></i>{{'administratorTitle' | translate}} {{comp.compadmins}}</p>
  16. </ion-item>
  17. <div class="comp-op">
  18. <div>
  19. <label for="">{{'hadjoinedTitle' | translate}}: {{comp.usrcount}}{{'personTitle' | translate}}</label>
  20. <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>
  21. <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>
  22. </div>
  23. </div>
  24. </div>
  25. <ion-list>
  26. </ion-content>
  27. </ion-view>