|
@@ -15,24 +15,33 @@
|
|
|
* See the License for the specific language governing permissions and
|
|
|
* limitations under the License.
|
|
|
}}
|
|
|
-<h4>{{t wizard.step1.header}}</h4>
|
|
|
-<div class="row">
|
|
|
- <div class="col-xs-6">
|
|
|
- {{view view.availableTypesSelect contentBinding="controller.availableTypes" optionLabelPath="content.displayName" multiple="true" class="type-select"}}
|
|
|
- </div>
|
|
|
- <div class="col-xs-6">
|
|
|
- <div {{bind-attr class=":control-group controller.isNameError:error"}}>
|
|
|
- <label>{{t common.name}}: {{input id="app-name-input" valueBinding="controller.newAppName"}}</label>
|
|
|
+<div id="step1">
|
|
|
+ <h4>{{t wizard.step1.header}}</h4>
|
|
|
+ <div class="row">
|
|
|
+ <div class="col-xs-6">
|
|
|
+ {{view view.availableTypesSelect contentBinding="controller.availableTypes" optionLabelPath="content.displayName" multiple="true" class="type-select"}}
|
|
|
+ </div>
|
|
|
+ <div class="col-xs-6">
|
|
|
+ <div {{bind-attr class=":control-group controller.isNameError:error"}}>
|
|
|
+ <label>{{t common.name}}: {{input id="app-name-input" valueBinding="controller.newAppName"}}</label>
|
|
|
+ </div>
|
|
|
+ {{#if controller.isNameError}}
|
|
|
+ <div class="alert alert-danger">
|
|
|
+ {{controller.nameErrorMessage}}
|
|
|
+ </div>
|
|
|
+ {{/if}}
|
|
|
+ <h5>{{t wizard.step1.description}}:</h5>
|
|
|
+ <p>
|
|
|
+ {{controller.typeDescription}}
|
|
|
+ </p>
|
|
|
</div>
|
|
|
- {{#if controller.isNameError}}
|
|
|
- <div class="alert alert-danger">
|
|
|
- {{controller.nameErrorMessage}}
|
|
|
+ {{#if controller.isAppTypesError}}
|
|
|
+ <div class="col-xs-12">
|
|
|
+ <div class="alert alert-info app-types-alert">
|
|
|
+ {{t wizard.step1.noAppTypesError}}
|
|
|
+ </div>
|
|
|
</div>
|
|
|
{{/if}}
|
|
|
- <h5>{{t wizard.step1.description}}:</h5>
|
|
|
- <p>
|
|
|
- {{controller.typeDescription}}
|
|
|
- </p>
|
|
|
</div>
|
|
|
+ <button class="btn btn-success pull-right next-btn" {{bind-attr disabled="controller.isSubmitDisabled"}} {{action submit target="controller"}}>{{t common.next}} →</button>
|
|
|
</div>
|
|
|
-<button class="btn btn-success pull-right next-btn" {{bind-attr disabled="controller.isSubmitDisabled"}} {{action submit target="controller"}}>{{t common.next}} →</button>
|