Added support for call make_task for other scripts
This commit is contained in:
parent
e1710bf434
commit
c56366923f
6 changed files with 108 additions and 11 deletions
|
|
@ -552,7 +552,17 @@ def pastafari2_make_task():
|
|||
|
||||
url_exec=url_for('.pastafari2_make_task', send_task=1)
|
||||
|
||||
return t.load_template('maketask.phtml', title=I18n.lang('pastafari2', 'make_task', 'Make task'), form=task_first.form(t, yes_error=False, pass_values=False), url_exec=url_exec, ids=json_ids, task_file=task_path)
|
||||
links='<a href="'+url_for('admin_app.pastafari2_dashboard')+'">'+I18n.lang('pastafari2', 'servers', 'Servers')+'</a>'
|
||||
|
||||
path_module='admin_app.pastafari2_dashboard'
|
||||
|
||||
if hasattr(task_first, 'links'):
|
||||
links=task_firs.links
|
||||
|
||||
if hasattr(task_first, 'path_module'):
|
||||
links=task_firs.path_module
|
||||
|
||||
return t.load_template('maketask.phtml', title=I18n.lang('pastafari2', 'make_task', 'Make task'), form=task_first.form(t, yes_error=False, pass_values=False), url_exec=url_exec, ids=json_ids, task_file=task_path, links=links, path_module=path_module)
|
||||
|
||||
elif send_task!='':
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue