Exemple #1
0
 /**
  * Delete a routing rule.
  *
  * This method will delete a custom routing rule that has been configured
  * for the lead distribution process.
  * @param int $id The ID of the rule to be deleted.
  */
 public function actionDeleteRouting($id)
 {
     LeadRouting::model()->deleteByPk($id);
     $this->redirect(array('roundRobinRules'));
 }
Exemple #2
0
                                            }else{
                                                $("#groupCheckbox").removeAttr("checked");
                                                $("#assignedToDropdown option[value=\'\']").remove();
                                                $("#assignedToDropdown option[value=\'admin\']").remove();
                                                $("#groupType").hide();
                                            }
                                        }')));
echo "<br>";
echo CHtml::dropDownList('groupType', '', array('0' => Yii::t('admin', 'Within Group(s)'), '1' => Yii::t('admin', 'Between Group(s)')), array('id' => 'groupType', 'style' => 'display:none'));
?>
        </div>

        <div class="row">
            <?php 
echo $form->labelEx($model, 'priority');
?>
            <?php 
echo $form->dropDownList($model, 'priority', $priorityArray, array('selected' => LeadRouting::model()->count()));
?>
        </div>

    <div class="row buttons">
        <?php 
echo CHtml::submitButton($model->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Save'), array('class' => 'x2-button'));
?>
    </div>
<?php 
$this->endWidget();
?>
</div>