|
9 | 9 | <p id="location-form-instructions" class="location-form-elements"> |
10 | 10 | This installer will automatically detect the existing Red Hat products and tools that meet the requirements and |
11 | 11 | <b>help you install the rest of the components</b>. Before it gets started, please browse to locate the installation |
12 | | - folder or use the default location. |
| 12 | + folder or use the default location. |
13 | 13 | </p> |
14 | 14 | <p id="location-form-note" class="location-form-elements"> |
15 | 15 | Note: You can NOT choose the folder again once components start to get installed. |
|
20 | 20 | Select the installation folder |
21 | 21 | </label> |
22 | 22 | <input name="folder" type="text" id="location-browse-input-folder" class="location-browse-input" |
23 | | - ng-init="locCtrl.checkFolder()" ng-change="locCtrl.folderChanged()" ng-model="locCtrl.folder" path-validator/> |
| 23 | + ng-init="locCtrl.checkFolder()" ng-change="locCtrl.folderChanged()" ng-model="locCtrl.folder" path-validator autofocus/> |
24 | 24 | <button id="location-browse-btn" type="button" class="btn btn-primary location-browse-btn" ng-click="locCtrl.selectFolder()">Browse</button> |
25 | | - <span id="folderStatus" class="sr-only" ng-show="locationForm.folder.$invalid">(error)</span> |
26 | 25 |
|
27 | | - |
28 | | - <div ng-show="!locationForm.folder.$invalid" class="has-warning"> |
29 | | - <div id="existingFolderStatus" ng-show="locCtrl.folderExists" class="help-block has-warning"> |
| 26 | + <div ng-show="!locationForm.folder.$invalid && locCtrl.folderExists" class="has-warning"> |
| 27 | + <strong id="existingFolderStatus" class="help-block"> |
30 | 28 | <span class="pficon pficon-warning-triangle-o"></span> |
31 | | - <strong>The selected folder already exists, some files might be overwritten.</strong> |
32 | | - </div> |
33 | | - <div id="createFolderStatus" ng-show="!locCtrl.folderExists" class="help-block"> |
| 29 | + The selected folder already exists, some files might be overwritten. |
| 30 | + </strong> |
| 31 | + </div> |
| 32 | + |
| 33 | + <div ng-show="!locationForm.folder.$invalid && !locCtrl.folderExists"> |
| 34 | + <strong id="createFolderStatus" class="help-block"> |
34 | 35 | <span class="pficon pficon-info"></span> |
35 | | - <strong>The selected folder will be created.</strong> |
36 | | - </div> |
| 36 | + The selected folder will be created. |
| 37 | + </strong> |
| 38 | + </div> |
| 39 | + |
| 40 | + <div ng-show="locationForm.folder.$error" class="help-block has-error"> |
| 41 | + <ng-messages for="locationForm.folder.$error"> |
| 42 | + <ng-messages-include src="pages/location/messages.html"></ng-messages-include> |
| 43 | + </ng-messages> |
37 | 44 | </div> |
38 | | - <ng-messages for="locationForm.folder.$error"> |
39 | | - <ng-messages-include src="pages/location/messages.html"></ng-messages-include> |
40 | | - </ng-messages> |
| 45 | + |
41 | 46 | <div id="vagrantHomeStatus" ng-show="locCtrl.vagrantHomeHasSpace" class="help-block has-error"> |
42 | 47 | <span class="pficon pficon-error-circle-o"></span> |
43 | 48 | <strong> |
|
0 commit comments