<div ng-controller="Umbraco.Editors.ParameterEditorController as vm">

    <form novalidate name="parameterForm" val-form-manager>

        <umb-editor-view>

            <umb-editor-header name="model.title"
                               name-locked="true"
                               hide-alias="true"
                               hide-icon="true"
                               hide-description="true">
            </umb-editor-header>

            <umb-editor-container>

                <umb-box>

                    <umb-box-content class="block-form">

                        <umb-control-group label="@general_name" description="">
                            <input type="text" ng-model="model.parameter.label" umb-auto-focus required />
                        </umb-control-group>

                        <umb-control-group label="@general_alias" description="">
                            <input type="text" ng-model="model.parameter.key" required />
                        </umb-control-group>

                        <umb-control-group label="Editor" description="">
                            <select  required class="input-block-level" ng-model="model.parameter.editor" ng-options="i.alias as (i.name) for i in model.editors"></select>
                        </umb-control-group>


                    </umb-box-content>
                </umb-box>

            </umb-editor-container>

            <umb-editor-footer>
                <umb-editor-footer-content-right>
                    <umb-button type="button"
                                button-style="link"
                                label-key="general_close"
                                action="vm.close()">
                    </umb-button>
                    <umb-button type="button"
                                button-style="success"
                                label-key="general_submit"
                                state="vm.saveButtonState"
                                action="vm.submit(model)">
                    </umb-button>
                </umb-editor-footer-content-right>
            </umb-editor-footer>
            '
        </umb-editor-view>

    </form>

</div>
