mirror of
https://github.com/vale981/dirkules
synced 2025-03-04 17:01:40 -05:00
prepared function for generation
This commit is contained in:
parent
cbb4b0ea97
commit
4d1a62597d
2 changed files with 7 additions and 2 deletions
|
@ -16,7 +16,7 @@
|
|||
<i class="plus icon"></i> Freigabe hinzufügen
|
||||
</div>
|
||||
</a>
|
||||
<a href="{{ url_for('.index') }}">
|
||||
<a href="{{ url_for('.generate') }}">
|
||||
<div class="ui primary labeled icon button">
|
||||
<i class="magic icon"></i> Generieren
|
||||
</div>
|
||||
|
|
|
@ -35,5 +35,10 @@ def config():
|
|||
def add():
|
||||
form = SambaAddForm(request.form)
|
||||
if request.method == 'POST' and form.validate():
|
||||
return redirect(url_for('samba'))
|
||||
return redirect(url_for('.index'))
|
||||
return render_template('samba/add.html', form=form)
|
||||
|
||||
|
||||
@bp_samba.route('/generate')
|
||||
def generate():
|
||||
return redirect(url_for('.index'))
|
||||
|
|
Loading…
Add table
Reference in a new issue