Verified Commit f72cf96e authored by Kaspar Vollenweider's avatar Kaspar Vollenweider 👻
Browse files

make submit button disabled if group_assignments

parent 26dca417
......@@ -23,4 +23,4 @@ h2 class=('disabled-title' if @group_offer.group_assignments.running.any?) Endda
p.text-info.m-b-10.m-t-10.text-bigger-1
em Die Voreinstellung für das Enddatum kann auf ein beliebiges Datum angepasst werden
hr
input.btn.btn-default type='submit' name='commit' value='Gruppenangebots Ende setzen' data-disable-with='Gruppenangebot aktualisieren'
input.btn.btn-default*{ disabled: @group_offer.group_assignments.running.any? } type='submit' name='commit' value='Gruppenangebots Ende setzen' data-disable-with='Gruppenangebot aktualisieren'
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment