<h3 ng-if="jsonEdition.name !== 'omegaJsonFile' && jsonEdition.name !== 'PCWIN'">
  <translate>model.featuretypes.edit</translate> <b>{{edit_resource.name}}</b>
</h3>

<h3  ng-if="jsonEdition.name === 'omegaJsonFile'">
  <translate>model.featuretypes.omegaWsConfg</translate>
</h3>

<h3  ng-if="jsonEdition.name === 'PCWIN'">
  <translate>model.featuretypes.pcwinConfg</translate>
</h3>

<div class="col-xs-12 btn-group">
  <button class="btn btn-default"
      ng-disabled="!isJsonValid"
      ng-click="jsonEditionChangeMode()">
    <translate ng-show="jsonEdition.options.mode === 'tree'">model.featuretypes.jsonedition.codemode</translate>
    <translate ng-show="jsonEdition.options.mode === 'code'">model.featuretypes.jsonedition.treemode</translate>
  </button>
</div>

<form
  ng-submit="editFeatureTypeJSON()"
>

  <div class="jsonEditorHeight">
    <!-- font-family should be 'monospace' to avoid alignement issues -->
    <angular-jsoneditor
      ng-model="jsonEdition.data"
      options="jsonEdition.options">
    </angular-jsoneditor>
  </div>

  <div class="form-group text-right clearfix">
    <div class="col-xs-12">
    <hr />
      <close-modale-button></close-modale-button>
      <button class="btn btn-primary" ng-disabled="!isJsonValid">
        <translate>common.save</translate>
      </button>
    </div>
  </div>
</form>
