<div ng-controller="ModelGUICtrl">
  <div class="row print-nav">
    <ul class="nav navbar-nav">

      <!-- Bouton d'ouverture du mode édition JSON, disponible uniquement pour les rôles rootUser et sRootUser -->
      <button  ng-if="xgos.isroot || xgos.isSuperAdmin" type="button" class="btn btn-default" ng-click="debug_json()">
        <i class="fa fa-pencil"></i>
        <translate>tools.builder.tree.debug_json</translate>
      </button>


      <li ng-hide="true">
        <button
          class="btn"
          ng-click="gridMgr.snap()"
        >
          <i ng-if="gridMgr.lock" class="fa fa-unlock"></i>

          <i ng-if="!gridMgr.lock" class="fa fa-lock"></i
          ><translate>print.models.grid_snap</translate>
        </button>
      </li>

      <!--<li> <button class="btn" ng-disabled="currentMode == 'text'" > <i class="fa fa-arrows"></i>
				</button></li>
				<li> <button class="btn" ng-disabled="currentMode == 'text'" > <i class="fa fa-search-plus"></i> </button></li>
				<li> <button class="btn" ng-disabled="currentMode == 'text'" > <i class="fa fa-search-minus"></i> </button></li>-->
    </ul>
    <ul class="nav navbar-nav navbar-right">
      <li>
        <button class="btn btn-success" ng-click="commit()">
          <i class="fa fa-check"></i>
        </button>
      </li>
      <li>
        <button class="btn btn-danger" ng-click="rollback()">
          <i class="fa fa-remove" style="color: white;"></i>
        </button>
      </li>
    </ul>
  </div>
  <div class="row">
    <div
      gui-menu
      listblocks="currentJsonModel.elements"
      jsonmodel="currentJsonModel"
      editblock="editblock"
      selectmgr="selectMgr"
      pagemgr="pageMgr"
    ></div>
    <div class="maincontent">
      <div
        class="col-md-8"
        gridmgr="gridMgr"
        pagemgr="pageMgr"
        jsonmodel="currentJsonModel"
        gui-editor
        selectmgr="selectMgr"
        drawmgr="drawMgr"
      ></div>
    </div>
  </div>
</div>
