{{> headers/_Title title="console.authorization.resourceTypes.edit.newResourceType"
    helpLink="backstage.authz.resourceTypes"}}

<div class="panel multiple-panels panel-content">
    <div class="panel panel-default panel-collapse form-horizontal">
        <div class="panel-heading">
            <h4 class="panel-title">
                <a class="no-caret">{{t "common.form.details"}}</a>
            </h4>
        </div>
        <div class="panel-body" id="resTypeSetting"></div>
    </div>

    <div class="panel panel-default panel-collapse">
        <div class="panel-heading">
            <h4 class="panel-title">
                <a class="no-caret">{{t "console.authorization.resourceTypes.edit.specifyPatterns"}}</a>
            </h4>
        </div>
        <div class="panel-body form-group">
            <p class="panel-description">{{t "console.authorization.resourceTypes.edit.patternsDescription"}}</p>
            <div class="form-inline" id="resTypePatterns"></div>
        </div>
    </div>

    <div class="panel panel-default panel-collapse">
        <div class="panel-heading">
            <h4 class="panel-title">
                <a class="no-caret">{{t "console.authorization.resourceTypes.edit.specifyActions"}}</a>
            </h4>
        </div>
        <div class="panel-body form-group">
            <p class="panel-description">{{t "console.authorization.resourceTypes.edit.actionsDescription"}}</p>
            <div class="form-inline" id="resTypeActions"></div>
        </div>
    </div>

    <div class="panel-footer clearfix">
        <div class="pull-right">
            <a class="btn btn-default" href="{{routeTo 'realmsResourceTypes' realmPath}}">{{t "common.form.cancel"}}</a>
            <button id="saveChanges" class="btn btn-primary" type="button">
                {{t "console.authorization.resourceTypes.edit.createResourceType"}}
            </button>
        </div>
    </div>
</div>
