Exemplo n.º 1
0
def provider_add():
    form = OpenStackForm()
    if form.validate_on_submit():
        openstack.add_provider(form)
        flash(_('OpenStack informations added'))
        return redirect(url_for("openstack.provider_list"))
    return render_template('openstack_provider_add.html', form=form)
Exemplo n.º 2
0
def provider_add():
    form = OpenStackForm()
    if form.validate_on_submit():
        openstack.add_provider(form)
        flash(_('OpenStack informations added'))
        return redirect(url_for("openstack.provider_list"))
    return render_template('openstack_provider_add.html', form=form)
Exemplo n.º 3
0
def provider_edit(id):
    provider = openstack.get_provider(id)
    form = OpenStackForm(obj=provider)
    if form.validate_on_submit():
        openstack.edit_provider(form, provider)
        flash(_('OpenStack provider edit'))
        return redirect(url_for("openstack.provider_list"))
    return render_template('openstack_provider_edit.html', form=form)
Exemplo n.º 4
0
def provider_edit(id):
    provider = openstack.get_provider(id)
    form = OpenStackForm(obj=provider)
    if form.validate_on_submit():
        openstack.edit_provider(form, provider)
        flash(_('OpenStack provider edit'))
        return redirect(url_for("openstack.provider_list"))
    return render_template('openstack_provider_edit.html', form=form)