def ivr_edit(id):
    my_ivr = ivr.edit(id)
    actions = ivrActions()
    if not my_ivr:
        flash('Sorry the is no IVR !')
        return redirect(url_for("ivr.ivr_list"))
    return render_template('ivr_edit.html', name=my_ivr.name, nodes=json.loads(my_ivr.nodes), \
                                            connections=json.loads(my_ivr.connections), \
                                            context=my_ivr.context, \
                                            actions=json.loads(actions.getJsonactions()), id=id)
Exemple #2
0
def ivr_edit(id):
    my_ivr = ivr.edit(id)
    actions = ivrActions()
    if not my_ivr:
        flash('Sorry the is no IVR !')
        return redirect(url_for("ivr.ivr_list"))
    return render_template('ivr_edit.html', name=my_ivr.name, nodes=json.loads(my_ivr.nodes), \
                                            connections=json.loads(my_ivr.connections), \
                                            context=my_ivr.context, \
                                            actions=json.loads(actions.getJsonactions()), id=id)
def ivr_add():
    actions = ivrActions()
    return render_template('ivr_add.html', actions=json.loads(actions.getJsonactions()))
Exemple #4
0
def ivr_add():
    actions = ivrActions()
    return render_template('ivr_add.html',
                           actions=json.loads(actions.getJsonactions()))