alouty Posted October 17, 2012 Share Posted October 17, 2012 Looking to replace progress-info with progress-warning,progress-success, progress-danger,progress-primary and progress-inverse for each of inner foreach. JSFIDDLE: http://jsfiddle.net/6TaQt/14/ CODE: {foreach from=$complexElements key="complexElementKey" item="complexElementItem"} <div class="row-fluid"> {foreach from=$form_fields item=form_field} {if $form_field.caption == "Language Name"} <h4><a class='danger' data-placement='above' title="Popover Title" href='#'>{display property=$form_field.id complexParent=$complexField complexStep=$complexElementKey}</a> </h4> {else} <div id="popover_content_wrapper" style="display: none" style="display:inline"> <label class="span4" for="slider">[[$form_field.caption]]</label> <div class="span8"> <div class="progress progress-info progress-striped" rel="tooltip" title="{display property=$form_field.id complexParent=$complexField complexStep=$complexElementKey}%"> <div class="bar" style="width: {display property=$form_field.id complexParent=$complexField complexStep=$complexElementKey}%;"></div> </div> </div> </div> {/if} {/foreach} </div> {/foreach} Link to comment https://forums.phpfreaks.com/topic/269560-different-color-for-bootstrap-progress-bar-inside-smarty-foreach/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.