-
Notifications
You must be signed in to change notification settings - Fork 900
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(appengine): move config template into html file (#5870)
- Loading branch information
Scott
committed
Oct 19, 2018
1 parent
e76e2e7
commit bdca8aa
Showing
2 changed files
with
61 additions
and
62 deletions.
There are no files selected for viewing
60 changes: 60 additions & 0 deletions
60
app/scripts/modules/appengine/src/serverGroup/configure/wizard/configFiles.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<div class="form-horizontal container-fluid"> | ||
<div class="form-group" ng-if="!$ctrl.isContainerImageSource()"> | ||
<div class="col-md-3 sm-label-right"> | ||
Application Root | ||
<help-field class="help-field-absolute" key="appengine.serverGroup.applicationDirectoryRoot"></help-field> | ||
</div> | ||
<div class="col-md-7"> | ||
<input type="text" | ||
class="form-control input-sm" | ||
name="applicationDirectoryRoot" | ||
ng-model="$ctrl.command.applicationDirectoryRoot"/></div> | ||
</div> | ||
|
||
<div class="form-group" ng-if="!$ctrl.isContainerImageSource()"> | ||
<div class="col-md-3 sm-label-right"> | ||
Config Filepaths <help-field key="appengine.serverGroup.configFilepaths"></help-field> | ||
</div> | ||
<div class="col-md-7"> | ||
<ui-select multiple tagging tagging-label="" style="width: 380px;" | ||
name="configFilepaths" ng-model="$ctrl.command.configFilepaths" class="form-control input-sm"> | ||
<ui-select-match>{{$item}}</ui-select-match> | ||
<ui-select-choices repeat="filepath in []"> | ||
<span ng-bind-html="filepath"></span> | ||
</ui-select-choices> | ||
</ui-select> | ||
</div> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<div class="col-md-3 sm-label-right"> | ||
Config Files | ||
<span ng-if="!$ctrl.isContainerImageSource()"> | ||
<help-field key="appengine.serverGroup.configFiles"></help-field> | ||
</span> | ||
<span ng-if="$ctrl.isContainerImageSource()"> | ||
<help-field key="appengine.serverGroup.configFilesRequired"></help-field> | ||
</span> | ||
</div> | ||
<div ng-repeat="configFile in $ctrl.command.configFiles track by $index" > | ||
<div class="col-md-7" ng-class="{'col-md-offset-3': $index > 0}" style="margin-top: 5px;"> | ||
<textarea cols="46" rows="10" | ||
class="small" | ||
spellcheck="false" | ||
ng-keydown="$ctrl.mapTabToSpaces($event)" | ||
style="font-family: Menlo, Monaco, Consolas, 'Courier New', monospace;" | ||
ng-model="$ctrl.command.configFiles[$index]"></textarea> | ||
</div> | ||
<div class="col-md-1" style="margin-top: 5px;"> | ||
<button type="button" class="btn btn-sm btn-default" ng-click="$ctrl.deleteConfigFile($index)"> | ||
<span class="glyphicon glyphicon-trash"></span> Delete | ||
</button> | ||
</div> | ||
</div> | ||
<div class="col-md-7" ng-class="{'col-md-offset-3': $ctrl.command.configFiles.length > 0}"> | ||
<button class="btn btn-block btn-add-trigger add-new" ng-click="$ctrl.addConfigFile()"> | ||
<span class="glyphicon glyphicon-plus-sign"></span> Add Config File | ||
</button> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters