Development
This commit is contained in:
parent
6732406a7e
commit
d0cfffac52
2 changed files with 11 additions and 11 deletions
|
|
@ -9,17 +9,17 @@ bp = Blueprint('action_actions', __name__)
|
|||
_VIEW = '/view/view_actions'
|
||||
|
||||
|
||||
@bp.route('/action/actions_cardoptions_save', methods=['POST'])
|
||||
@bp.route('/action/actions_cardpending_save', methods=['POST'])
|
||||
@require_level('administrator')
|
||||
def actions_cardoptions_save():
|
||||
def actions_cardpending_save():
|
||||
session['apply_changes_immediately'] = 'apply_changes_immediately' in request.form
|
||||
flash('Preference saved.', 'success')
|
||||
return redirect(_VIEW)
|
||||
|
||||
|
||||
@bp.route('/action/actions_cardpendingchanges_applynow', methods=['POST'])
|
||||
@bp.route('/action/actions_cardpending_applynow', methods=['POST'])
|
||||
@require_level('administrator')
|
||||
def actions_cardpendingchanges_applynow():
|
||||
def actions_cardpending_applynow():
|
||||
if not get_dashboard_pending():
|
||||
flash('No pending changes to apply.', 'info')
|
||||
return redirect(_VIEW)
|
||||
|
|
@ -36,9 +36,9 @@ def actions_cardpendingchanges_applynow():
|
|||
return redirect(_VIEW)
|
||||
|
||||
|
||||
@bp.route('/action/actions_cardpendingchanges_revertselected', methods=['POST'])
|
||||
@bp.route('/action/actions_cardpending_revertselected', methods=['POST'])
|
||||
@require_level('administrator')
|
||||
def actions_cardpendingchanges_revertselected():
|
||||
def actions_cardpending_revertselected():
|
||||
selected_uuids = request.form.getlist('selected_uuids')
|
||||
if not selected_uuids:
|
||||
flash('No items selected.', 'info')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue