<div ng-controller="Umbraco.Editors.DataType.EditController">

   <umb-load-indicator ng-if="page.loading"></umb-load-indicator>

   <form name="contentForm"
      ng-submit="save()"
      novalidate
      val-form-manager>

      <umb-editor-view ng-if="!page.loading">

         <umb-editor-header
            menu="page.menu"
            name="content.name"
            name-locked="page.nameLocked"
            hide-icon="true"
            hide-description="true"
            hide-alias="true">
         </umb-editor-header>


         <umb-editor-container class="form-horizontal">

            <umb-property property="properties.selectedEditor">
                <div>
                    <select name="selectedEditor"
                           ng-model="content.selectedEditor"
                           required
                           ng-options="e.alias as e.name for e in content.availableEditors"></select>
                    <span class="help-inline" val-msg-for="selectedEditor" val-toggle-msg="required"><localize key="general_required">Required</localize></span>
                </div>

            </umb-property>

            <umb-property property="properties.selectedEditorId">
                <div>{{content.selectedEditor}}</div>
            </umb-property>


            <umb-property
                property="preValue"
                ng-repeat="preValue in preValues">

                <umb-editor model="preValue" is-pre-value="true"></umb-editor>
            </umb-property>

         </umb-editor-container>


         <umb-editor-footer>

            <umb-editor-footer-content-right>

               <umb-button
                  type="submit"
                  button-style="success"
                  state="page.saveButtonState"
                  shortcut="ctrl+s"
                  label="Save"
                  label-key="buttons_save">
               </umb-button>

            </umb-editor-footer-content-right>

         </umb-editor-footer>


      </umb-editor-view>

   </form>
</div>
