<!--<div class="row">
    <div class="col-xs-12">
        <h3> Numérotation automatique des dossiers </h3>
    </div>
</div>

<div class="row spbrow">
    <div class="col-xs-12">
        <div class="radio">
            <label>
                <input type="checkbox" ng-model="dossiersCfg.numerotation.auto">
                Activer la numérotation automatique des dossiers
            </label>
        </div>
    </div>

    <div ng-if="dossiersCfg.numerotation.auto">


        <div class="col-xs-8">
            <label> Éléments </label>
            <table class="table table-bordered">
                <tr>
                    <th class="text-center">
                        <div class="btn btn-xs btn-success" ng-click="addNumerotationPart()">
                            <i class="fa fa-plus"></i>
                        </div>

                    </th>
                    <th> Type </th>
                    <th> Paramétrage </th>
                    <th> Supprimer </th>
                </tr>
                <tr ng-repeat="x in dossiersCfg.numerotation.parts track by $index">
                    <td class="col-xs-1 text-center">
                        <button type="button"
                                class="btn btn-xs btn-default"
                                ng-click="moveNumerotationpart('up',$index)"
                                ng-disabled="$index==0">
                            <i class="fa fa-arrow-up"></i>
                        </button>
                        <button type="button"
                                class="btn btn-xs btn-default"
                                ng-click="moveNumerotationpart('down',$index)"
                                ng-disabled="$index==dossiersCfg.numerotation.parts.length-1">
                            <i class="fa fa-arrow-down"></i>
                        </button>
                    </td>
                    <td>
                        <select class="form-control"
                                ng-options="o.key as o.label for o in possibleNumerotationParts"
                                ng-model="x.key">
                        </select>
                    </td>
                    <td>
                        <input type="text" class="form-control" ng-model="x.format" ng-if="x.key!='index'"/>
                    </td>
                    <td class="col-xs-1 text-center">
                        <div class="btn btn-xs btn-danger" ng-click="removePartFromNumerotationCfg($index)" ng-disabled="x.key=='index'">
                            <i class="fa fa-times"></i>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
        <div class="col-xs-4">
            <label> Séparateur </label>
            <input type="text" class="form-control" ng-model="dossiersCfg.numerotation.separator" size="1" style="display: block"/>
            <label> Aperçu </label>
            <input type="text" class="form-control" ng-model="partsPreview" disabled/>
        </div>

    </div>
</div>-->

<anc-bac-dossier-configuration
  apptype="apptype"
  dossiers-cfg="dossiersCfg"
></anc-bac-dossier-configuration>

<!--<div class="row spbrow">
    <div class="col-xs-6">
    </div>
</div>

<div class="row">
    <div class="col-xs-12">

        <button type="button" class="btn btn-default pull-right pushFloatRightAdminButton" ng-click="ouvrirDossierDialog()">
            Nouveau document type
        </button>
        <a     ng-click="goToGestionModeles()"
                ng-if="xgos.isadmin"
                class="pull-right pushFloatRightAdminLink" >
            <i class="fa fa-plug"></i> Gestion des modèles du portail
        </a>
        <h3>Documents type des Dossiers</h3>
    </div>

</div>

<div class="row">
    <div class="col-xs-12">
        <table  class="table table-striped table-bordered">
            <tr>
                <th>Label</th>
                <th>
                    Modèle
                    <div class="btn btn-xs btn-default pull-right">
                        <i class="fa fa-refresh" ng-click="refreshTemplatesList(1)" ></i>
                    </div>
                </th>
                <th>Détail</th>
                <th class="col-xs-1">Actions</th>
            </tr>
            <tr ng-repeat="dossier in dossiersCfg.templates track by $index">
                <td>
                    <input type="text" class="form-control" ng-model="dossier.label"/>
                </td>
                <td>
                    <select class="form-control" ng-options="item.name as item.name for item in listTemplates"
                            ng-model="dossier.fichier"></select>
                </td>
                <td>
                    <textarea class="form-control" ng-model="dossier.detail"></textarea>
                </td>
                <td align="center" class="col-xs-1">
                    <div class="btn btn-danger btn-xs"
                         ng-click="supprimerDossierDoc($index)">
                        <i class="fa fa-times"></i>
                    </div>
                </td>
            </tr>
        </table>
    </div>
</div>-->

<!--
<div class="row">
    <div class="col-xs-12">
        <hr/>
        <div class="btn btn-primary pull-right" ng-click="enregistrerDossierCfg(dossiersCfg)">
            Enregistrer la configuration des dossiers
        </div>
    </div>
</div>-->
