<h3 ng-if="editModalIsNew"><translate>model.network.create</translate></h3>
<h3 ng-if="!editModalIsNew"><translate>model.network.edit</translate></h3>

<form
  ng-submit="editNetwork()"
  class="form-horizontal"
  role="form"
>
  <div ng-model="tabs.activeTab" bs-tabs>
    <div ng-repeat="tab in tabs" title="{{tab.title|translate}}" bs-pane>
      <ng-include src="tab.content" />
    </div>
  </div>

  <div class="form-group text-right">
    <div class="col col-xs-12">
      <close-modale-button></close-modale-button>
      <button
        class="btn btn-primary"
        ng-disabled="!dLBEdgesData.leftData.length || !dLBNodesData.leftData.length || (isNewResource &&
        (currentResources|arrayMap:'name').indexOf(edit_resource.name)!=-1)"
      >
        <translate>common.save</translate>
      </button>
    </div>
  </div>
</form>
