<ion-view view-title="{{ 'System' | translate }}">
  <ion-content class="padding-10">
    <div class="list action-form">
      <div class="item item-button-right">{{ 'SynchroniseApp' | translate }}
        <button class="button button-positive ink" ng-click="systemctrl.synchronise()"><i class="icon ion-loop"></i></button>
      </div>
      <div class="item item-button-right">{{ 'SynchroniseSessionPlansSilhouette' | translate }}
        <div class="pull-right"></div>
        <button class="button button-positive ink" ng-click="systemctrl.syncSessions()"><i class="icon ion-loop"></i></button>
      </div>
      <div class="item item-button-right">
        <div ng-if="systemctrl.isBuyerEnable"> {{ 'SynchroniseOperations/BuyerList' | translate }}</div>
        <div ng-if="!systemctrl.isBuyerEnable">  {{ 'SynchroniseOperations' | translate }}</div>
        <div class="pull-right"></div>
        <button class="button button-positive ink" ng-click="systemctrl.syncOperations()"><i class="icon ion-loop"></i></button>
      </div>
      <div class="item item-button-right">{{ 'SynchroniseImages' | translate }}
        <div class="pull-right"></div>
        <button class="button button-positive ink" ng-click="systemctrl.syncImages()"><i class="icon ion-loop"></i></button>
      </div>
      <div class="item item-button-right">{{ 'SynchroniseUserAccounts' | translate }}
        <div class="pull-right"></div>
        <button class="button button-positive ink" ng-click="systemctrl.syncUsers()"><i class="icon ion-loop"></i></button>
      </div>
      <div class="item item-button-right">{{ 'CheckUpdates' | translate }}
        <div class="pull-right"></div>
        <button class="button button-positive ink" ng-click="systemctrl.checkUpdates()"><i class="icon ion-loop"></i></button>
      </div>
      <div class="item item-button-right">{{ 'DisableApp' | translate }}
        <div class="pull-right"></div>
        <button class="button button-large button-positive ink" ng-click="systemctrl.disable()"><i class="icon ion-log-out"></i></button>
      </div>
      <div class="item">{{ 'ChangeLanguage' | translate }}
        <div class="pull-right">        </div>
          <a ng-click="systemctrl.changeLanguage()" class="pull-right">
            <img ng-src="{{systemctrl.countryFlag}}" id="country_flag" name="country_flag" alt="" class="nf-circle nf-responsive-img nf-valign nf-profile-image-login">
          </a>
      </div>
    </div>

  </ion-content>
</ion-view>
