Jump to content

Different Color For Bootstrap Progress Bar Inside Smarty Foreach


Recommended Posts

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}

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.