2121 *
2222 * @param {string } title The wizard title displayed in the header
2323 * @param {boolean= } hideIndicators Hides the step indicators in the header of the wizard
24+ * @param {boolean= } activeStepTitleOnly Shows the title only for the active step in the step indicators, optional, default is false.
2425 * @param {boolean= } hideSidebar Hides page navigation sidebar on the wizard pages
2526 * @param {boolean= } hideHeader Optional value to hide the title bar. Default is false.
2627 * @param {boolean= } hideBackButton Optional value to hide the back button, useful in 2 step wizards. Default is false.
6869 </div>
6970 <pf-wizard-substep step-title="Details - Extra" next-enabled="true" step-id="details-extra" step-priority="1" show-review="true" show-review-details="true" review-template="review-second-template.html">
7071 <form class="form-horizontal">
71- <pf-form-group pf-label="Lorem" required>
72+ <pf-form-group pf-label="Lorem" pf-label-class="col-sm-3 col-md-2" pf-input-class="col-sm-9 col-md-10" required>
7273 <input id="new-lorem" name="lorem" ng-model="data.lorem" type="text" required/>
7374 </pf-form-group>
74- <pf-form-group pf-label="Ipsum">
75+ <pf-form-group pf-label="Ipsum" pf-label-class="col-sm-3 col-md-2" pf-input-class="col-sm-9 col-md-10" >
7576 <input id="new-ipsum" name="ipsum" ng-model="data.ipsum" type="text" />
7677 </pf-form-group>
7778 </form>
8081 <pf-wizard-step step-title="Second Step" substeps="false" step-id="configuration" step-priority="1" show-review="true" review-template="review-second-template.html" >
8182 <form class="form-horizontal">
8283 <h3>Wizards should make use of substeps consistently throughout (either using them or not using them). This is an example only.</h3>
83- <pf-form-group pf-label="Lorem">
84+ <pf-form-group pf-label="Lorem" pf-label-class="col-sm-3 col-md-2" pf-input-class="col-sm-9 col-md-10" >
8485 <input id="new-lorem" name="lorem" ng-model="data.lorem" type="text"/>
8586 </pf-form-group>
86- <pf-form-group pf-label="Ipsum">
87+ <pf-form-group pf-label="Ipsum" pf-label-class="col-sm-3 col-md-2" pf-input-class="col-sm-9 col-md-10" >
8788 <input id="new-ipsum" name="ipsum" ng-model="data.ipsum" type="text" />
8889 </pf-form-group>
8990 </form>
9899 <div ng-controller="DetailsGeneralController">
99100 <pf-wizard-substep step-title="General" next-enabled="detailsGeneralComplete" step-id="details-general" step-priority="0" on-show="onShow" review-template="{{reviewTemplate}}" show-review-details="true">
100101 <form class="form-horizontal">
101- <pf-form-group pf-label="Name" required>
102+ <pf-form-group pf-label="Name" pf-label-class="col-sm-3 col-md-2" pf-input-class="col-sm-9 col-md-10" required>
102103 <input id="new-name" name="name" ng-model="data.name" type="text" ng-change="updateName()" required/>
103104 </pf-form-group>
104- <pf-form-group pf-label="Description">
105+ <pf-form-group pf-label="Description" pf-label-class="col-sm-3 col-md-2" pf-input-class="col-sm-9 col-md-10" >
105106 <input id="new-description" name="description" ng-model="data.description" type="text" />
106107 </pf-form-group>
107108 </form>
@@ -312,6 +313,7 @@ angular.module('patternfly.wizard').component('pfWizard', {
312313 bindings : {
313314 title : '@' ,
314315 hideIndicators : '=?' ,
316+ activeStepTitleOnly : '<?' ,
315317 hideSidebar : '@' ,
316318 hideHeader : '@' ,
317319 hideBackButton : '@' ,
@@ -377,6 +379,7 @@ angular.module('patternfly.wizard').component('pfWizard', {
377379 ctrl . hideHeader = ctrl . hideHeader === 'true' ;
378380 ctrl . hideSidebar = ctrl . hideSidebar === 'true' ;
379381 ctrl . hideBackButton = ctrl . hideBackButton === 'true' ;
382+ ctrl . activeStepTitleOnly = ctrl . activeStepTitleOnly === true ;
380383
381384 // If a step class is given use it for all steps
382385 if ( angular . isDefined ( ctrl . stepClass ) ) {
@@ -386,7 +389,7 @@ angular.module('patternfly.wizard').component('pfWizard', {
386389 ctrl . sidebarClass = ctrl . stepClass ;
387390 }
388391 } else {
389- // No step claass give, setup the content style to allow scrolling and a fixed height
392+ // No step class give, setup the content style to allow scrolling and a fixed height
390393 if ( angular . isUndefined ( ctrl . contentHeight ) ) {
391394 ctrl . contentHeight = '300px' ;
392395 }
@@ -595,7 +598,7 @@ angular.module('patternfly.wizard').component('pfWizard', {
595598 // Check if callback is a function
596599 if ( angular . isFunction ( callback ) ) {
597600 if ( callback ( ctrl . selectedStep ) ) {
598- if ( index <= enabledSteps . length - 1 ) {
601+ if ( index < enabledSteps . length - 1 ) {
599602 // Go to the next step
600603 if ( enabledSteps [ index + 1 ] . substeps ) {
601604 enabledSteps [ index + 1 ] . resetNav ( ) ;
0 commit comments