<rt-form id="{{vm.form.name}}" name="{{vm.form.name}}" novalidate>
    <div class="row rt-margin-bottom-before-box">
        <div class="col-sm-2">
            <button class="btn btn-link" type="button" id="btnClose" ng-click="vm.form.hide()">
                        <i class="fa fa-sign-out"></i> 关闭
                    </button>
        </div>
        <!-- div[.col-sm-2] -->
        <div class="col-sm-10">
            <div class="pull-right">
                <rt-button id="btnSave" rt-style="link" rt-title="保存" rt-icon="floppy-o" ng-click="vm.form.newSave();">
                </rt-button>
            </div>
        </div>
        <!-- div[.col-sm-10] -->
    </div>
    <!-- div[.row] -->
    <div class="nav-tabs-custom">
        <!-- @@表单 -->
        <ul class="nav nav-tabs">
            <li class="active">
                <a href="#A1{{vm.form.RoleCode}}" onclick="return false;" data-toggle="tab">分发安全角色</a>
            </li>
        </ul>
        <!-- ui[.nav] -->

        <div class="tab-content">
            <div class="tab-pane active" id="A1{{vm.form.RoleCode}}">
                <rt-section rt-title="将此安全角色分发到其他组织">
                    <rt-section-row>
                        <rt-input rt-type="text" rt-title="被分发的角色" rt-disabled="true" rt-col="4" ng-model="roleData.RoleName"></rt-input>
                        <rt-input rt-type="text" rt-title="新角色名称" rt-required="true" rt-disabled="true" rt-col="4" ng-model="vm.newRoleName"></rt-input>
                    </rt-section-row>
                    <rt-section-row>
                        <rt-lookup2 rt-title="组织" rt-required="true" ng-model="vm.OwningOrganizationIdList" rt-col="8" rt-multiple="true" rt-get-data-name="OwningOrganization.GetOwningOrganizationExceptSelf"
                            rt-params="{'@id':roleData.OwningOrganizationId ? roleData.OwningOrganizationId.Id :''}" rt-order-by="name asc"
                            rt-col-list="[{Code:'name',Name:'名称'}]"></rt-lookup2>
                    </rt-section-row>
                </rt-section>
            </div>
        </div>
        <!-- div[.tab-content] -->
    </div>
</rt-form>