<!-- Modified agreed view -->
<div ng-if="viewChangeRecommendations.mode == 'modified_agreed'">
    <div style="text-align: right;">
      <button class="btn btn-default btn-danger btn-sm" os-perms="motions.can_manage"
          ng-bootbox-confirm="{{ 'Do you want to delete the final print template?' | translate }}"
          ng-bootbox-confirm-action="viewChangeRecommendations.deleteModifiedFinalVersion(motion, version)">
        <i class="fa fa-trash"></i>
        <translate>Delete final print template</translate>
      </button>
    </div>
    <div id="view-modified-agreed-inline-editor" ng-bind-html="motion.getModifiedFinalVersionWithLineBreaks(version) | trusted"
      class="motion-text motion-text-original line-numbers-{{ lineNumberMode }}"
      contenteditable="{{ modifiedFinalVersionInlineEditing.isEditable }}">
    </div>
    <div class="motion-save-toolbar" ng-class="{ 'visible': modifiedFinalVersionInlineEditing.active && modifiedFinalVersionInlineEditing.changed }">
        <div class="changed-hint" translate>The modified final version have been changed.</div>
        <button type="button" ng-click="modifiedFinalVersionInlineEditing.save()" class="btn btn-primary" translate>
            Save
        </button>
        <button type="button" ng-click="modifiedFinalVersionInlineEditing.revert()" class="btn btn-default" translate>
            Revert
        </button>
        <label ng-if="motion.state.versioning && config('motions_allow_disable_versioning')">
            <input type="checkbox" ng-model="modifiedFinalVersionInlineEditing.trivialChange" value="1">
            <span translate>Trivial change</span>
        </label>
    </div>
</div>
