Skip to content

Commit ad9ffc2

Browse files
committed
WIP installer is loading view
1 parent e05fcf7 commit ad9ffc2

File tree

4 files changed

+26
-26
lines changed

4 files changed

+26
-26
lines changed

src/UmbracoFileSystemProviders.Azure.Installer/Configurator/Views/Configure.htm

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,34 @@
1212
<div>
1313
<fieldset>
1414
<legend><h4>To complete installation, please enter the required parameters for the Azure storage provider below</h4></legend>
15-
<form name="paramForm" class="form-horizontal" role="form">
15+
<ng-form name="paramForm" class="form-horizontal" role="form">
1616
<div ng-repeat="param in parameters" class="control-group">
17-
<ng-form name="form">
18-
<label class="control-label" for="{{param.key}}" style="width:160px">{{ capitalizeFirstLetter(param.key) }}</label>
19-
<div class="controls">
20-
<span ng-if="getInputType(param.key) === 'checkbox'" ng-include="'/App_Plugins/UmbracoFileSystemProviders/Azure/Install/Configurator/Views/checkbox.htm'"></span>
21-
<span ng-if="getInputType(param.key) === 'text'" ng-include="'/App_Plugins/UmbracoFileSystemProviders/Azure/Install/Configurator/Views/textfield.htm'"></span>
22-
</div>
23-
<span data-ng-show="{{'form.' + param.key + '.$dirty && form.' + param.key + '.$error.required'}}">Required!</span>
24-
</ng-form>
17+
<label class="control-label" for="{{param.key}}" style="width:160px">{{ capitalizeFirstLetter(param.key) }}</label>
18+
<div class="controls">
19+
<span ng-if="getInputType(param.key) === 'checkbox'">
20+
<input class="input-block-level"
21+
style="width:600px"
22+
name="{{param.key}}"
23+
type="checkbox"
24+
ng-model="param.value"
25+
ng-true-value="'true'"
26+
ng-false-value="'false'"
27+
ng-init="param.value">
28+
</span>
29+
<span ng-if="getInputType(param.key) === 'text'">
30+
<input class="input-block-level"
31+
style="width:600px"
32+
name="{{param.key}}"
33+
type="text"
34+
ng-model="param.value"
35+
required>
36+
</span>
37+
</div>
38+
<span data-ng-show="{{'paramForm.' + param.key + '.$dirty && paramForm.' + param.key + '.$error.required'}}">Required!</span>
39+
2540
</div>
26-
<button preventDefault class="btn btn-primary" ng-disabled="paramForm.$invalid" ng-click="submitForm($event)">Save</button>
27-
</form>
41+
<button preventDefault class="btn btn-primary" ng-click="paramForm.$valid && submitForm($event)">Save</button>
42+
</ng-form>
2843
</fieldset>
2944
</div>
3045
</div>

src/UmbracoFileSystemProviders.Azure.Installer/Configurator/Views/checkbox.htm

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/UmbracoFileSystemProviders.Azure.Installer/Configurator/Views/textfield.htm

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/UmbracoFileSystemProviders.Azure.Installer/UmbracoFileSystemProviders.Azure.Installer.csproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,9 +316,7 @@
316316
</ItemGroup>
317317
<ItemGroup>
318318
<Content Include="Configurator\Controllers\Configure.js" />
319-
<Content Include="Configurator\Views\checkbox.htm" />
320319
<Content Include="Configurator\Views\configure.htm" />
321-
<Content Include="Configurator\Views\textfield.htm" />
322320
</ItemGroup>
323321
<ItemGroup>
324322
<ProjectReference Include="..\UmbracoFileSystemProviders.Azure\UmbracoFileSystemProviders.Azure.csproj">

0 commit comments

Comments
 (0)