/** 审批不通过按钮 */


var angular = require('angular');
require('../modules');
require('../services/DefaultWorkflowService');

var module = angular.module('flowmodulebutton.directives');

/**
  <sino-flow-approve-button
    record-id="" 业务id
    flow-type="" 流程类型
    subflag-value="" 流程状态 默认'3'
    title="" 文件名称
    show="" 展示的权限 默认false
    flag="" 停止的方式 默认'0'
  >
  </sino-flow-approve-button>
 */
module.directive('sinoFlowNotApproveButton', function(DefaultWorkflowService) {
  return {
    restrict: 'E',
    require: '^sinoFlowButtonBar',
    template: '<sino-flow-base-finish-button tag="审批不通过" button-id="notApprove" subflag-value="3"></sino-flow-base-finish-button>',
    replace: true
  }
});
