<md-dialog aria-label="Share test motor data dialog">
    <form ng-cloak name="shareForm">
        <md-dialog-content>
            <div class="md-dialog-content">
                <h2 class="md-title">{{ title | translate }}</h2>
                <div layout="column" layout-sm="column" layout-align="space-around">
                    {{ textContent | translate }}
                </div>
                    <md-input-container class="md-block">
                        <label>{{ "rffwhid.rffwhid_read_output_testmotors_wizard.MOTOR_TYPE_LABEL" | translate }}</label>
                        <input md-maxlength="30" required name="motor_type" ng-model="motor_type" ng-disabled="busy">
                        <div ng-messages="shareForm.motor_type.$error">
                            <div ng-message="required">{{ "THIS_FIELD_IS_REQUIRED" | translate }}</div>
                            <div ng-message="md-maxlength">{{ "FIELD_MUST_BE_LESS_THAN" | translate:{'count': 30 } }}</div>
                            <div ng-message="duplicate">{{ "DUPLICATE_VALUE" | translate }}</div>
                        </div>
                    </md-input-container>
            </div>
        </md-dialog-content>

        <md-dialog-actions layout="row" ng-show="buttons">
            <div ng-repeat="button in buttons">
                <md-button ng-click="button.action && button.action()" ng-disabled="busy">
                    {{ button.name }}
                </md-button>
            </div>
            <md-progress-circular ng-show="busy" class="md-hue-2" md-diameter="20px"></md-progress-circular>
        </md-dialog-actions>
    </form>
</md-dialog>