Development

This commit is contained in:
Matthew Grotke 2026-05-25 14:12:52 -04:00
parent a78df48804
commit fc78e20f0e
4 changed files with 33 additions and 31 deletions

View file

@ -8,17 +8,17 @@ bp = Blueprint('action_actions', __name__)
_VIEW = '/view/view_actions'
@bp.route('/action/general_cardpendingchanges_save', methods=['POST'])
@bp.route('/action/actions_cardoptions_save', methods=['POST'])
@require_level('administrator')
def general_cardpendingchanges_save():
def actions_cardoptions_save():
session['apply_changes_immediately'] = 'apply_changes_immediately' in request.form
flash('Preference saved.', 'success')
return redirect(_VIEW)
@bp.route('/action/general_cardpendingchanges_applyselected', methods=['POST'])
@bp.route('/action/actions_cardpendingchanges_applyselected', methods=['POST'])
@require_level('administrator')
def general_cardpendingchanges_applyselected():
def actions_cardpendingchanges_applyselected():
items = get_dashboard_pending()
if not items:
flash('No pending changes to apply.', 'info')
@ -36,8 +36,8 @@ def general_cardpendingchanges_applyselected():
return redirect(_VIEW)
@bp.route('/action/general_cardpendingchanges_deleteselected', methods=['POST'])
@bp.route('/action/actions_cardpendingchanges_revertselected', methods=['POST'])
@require_level('administrator')
def general_cardpendingchanges_deleteselected():
def actions_cardpendingchanges_revertselected():
flash('Not yet implemented.', 'info')
return redirect(_VIEW)