Skip to content

Commit

Permalink
a bunch more
Browse files Browse the repository at this point in the history
  • Loading branch information
DrumsnChocolate committed Nov 9, 2024
1 parent 1c7f435 commit 415a8b8
Show file tree
Hide file tree
Showing 47 changed files with 88 additions and 88 deletions.
2 changes: 1 addition & 1 deletion app/components/form/response/response-form.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{{form/response/multiple-choice-question
question
question.linkedAnswers
updateAnswers=(action 'updateMultipleChoiceAnswers')
updateAnswers=this.updateMultipleChoiceAnswers
data-test-closed-question=question.id
}}
{{else}}
Expand Down
6 changes: 3 additions & 3 deletions app/components/forms/activity-form.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<h5>{{if @model.isNew 'Activiteit aanmaken' 'Activiteit wijzigen'}}</h5>
</div>
<div class='card-body'>
<form {{action @onSubmit on='submit'}}>
<form {{on 'submit' (prevent-default @onSubmit)}}>

{{#if @model.form.hasResponses}}
<div class='alert alert-danger'>
Expand Down Expand Up @@ -106,7 +106,7 @@
<div class='col-sm-10'>
<PowerSelect
@options={{@groups}}
@onChange={{action (mut @model.group)}}
@onChange={{fn (mut @model.group)}}
@selected={{@model.group}}
@searchEnabled={{true}}
@searchField='name'
Expand Down Expand Up @@ -154,7 +154,7 @@
@errorMessage={{@errorMessage}}
>
<button
{{action @onCancel}}
{{on 'click' @onCancel}}
type="button"
class='btn btn-default'
>
Expand Down
6 changes: 3 additions & 3 deletions app/components/forms/article-form.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<h5>{{if @model.isNew 'Artikel aanmaken' 'Artikel wijzigen'}}</h5>
</div>
<div class='card-body'>
<form {{action @onSubmit on='submit'}}>
<form {{on 'submit' (prevent-default @onSubmit)}}>
<ModelForm::TextInput
@model={{@model}}
@property='title'
Expand Down Expand Up @@ -51,7 +51,7 @@
<div class='col-sm-10'>
<PowerSelect
@options={{@groups}}
@onChange={{action (mut @model.group)}}
@onChange={{fn (mut @model.group)}}
@selected={{@model.group}}
@searchEnabled={{true}}
@searchField='name'
Expand All @@ -78,7 +78,7 @@
@errors={{@model.errors}}
@errorMessage={{@errorMessage}}
>
<button {{action @onCancel}} type="button" class='btn btn-default'>Annuleren</button>
<button {{on 'click' @onCancel}} type="button" class='btn btn-default'>Annuleren</button>
</ModelForm::FormActions>
</form>
</div>
Expand Down
4 changes: 2 additions & 2 deletions app/components/forms/book-form.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<h5>{{if @model.isNew 'Boek aanmaken' 'Boek wijzigen'}}</h5>
</div>
<div class='card-body'>
<form {{action @onSubmit on='submit'}}>
<form {{on 'submit' (prevent-default @onSubmit)}}>
<ModelForm::TextInput
@model={{@model}}
@property='isbn'
Expand Down Expand Up @@ -99,7 +99,7 @@
@errorMessage={{@errorMessage}}
>
<button
{{action @onCancel}}
{{on 'click' @onCancel}}
type="button"
class='btn btn-default'
>
Expand Down
4 changes: 2 additions & 2 deletions app/components/forms/category-form.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<h5>{{if @model.isNew 'Categorie aanmaken' 'Categorie wijzigen'}}</h5>
</div>
<div class='card-body'>
<form {{action @onSubmit on='submit'}}>
<form {{on 'submit' (prevent-default @onSubmit)}}>
<ModelForm::TextInput
@model={{@model}}
@property='name'
Expand All @@ -15,7 +15,7 @@
@errors={{@model.errors}}
@errorMessage={{@errorMessage}}
>
<button {{action @onCancel}} type="button" class='btn btn-default'>
<button {{on 'click' @onCancel}} type="button" class='btn btn-default'>
Annuleren
</button>
</ModelForm::FormActions>
Expand Down
6 changes: 3 additions & 3 deletions app/components/forms/group-form.hbs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<form {{action @onSubmit on='submit'}}>
<form {{on 'submit' (prevent-default @onSubmit)}}>
<div class='card'>
<div class='card-header'>
<h5>Details</h5>
Expand Down Expand Up @@ -55,7 +55,7 @@
@errors={{@model.errors}}
@errorMessage={{@errorMessage}}
>
<button {{action @onCancel}} type="button" class='btn btn-default'>Annuleren</button>
<button {{on 'click' @onCancel}} type="button" class='btn btn-default'>Annuleren</button>
</ModelForm::FormActions>
</div>
</div>
Expand Down Expand Up @@ -136,7 +136,7 @@
<button
type='button'
class='btn btn-danger'
{{action @onRemoveMembership membership}}
{{on 'click' (fn @onRemoveMembership membership)}}
>
<FaIcon @icon='trash' />
</button>
Expand Down
10 changes: 5 additions & 5 deletions app/components/forms/mail-alias-form.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<h2>Details</h2>
</div>
<div class='card-body'>
<form {{action @onSubmit on='submit'}}>
<form {{on 'submit' (prevent-default @onSubmit)}}>
<ModelForm::TextInput
@model={{@model}}
@property='email'
Expand All @@ -29,7 +29,7 @@
<div class='col-sm-9'>
<PowerSelect
@options={{@groups}}
@onChange={{action (mut @model.moderatorGroup)}}
@onChange={{fn (mut @model.moderatorGroup)}}
@selected={{@model.moderatorGroup}}
@disabled={{@moderationTypeOpen}}
@placeholder='Moderator'
Expand Down Expand Up @@ -59,7 +59,7 @@
<div class='col-sm-9'>
<PowerSelect
@options={{@groups}}
@onChange={{action (mut @model.group)}}
@onChange={{fn (mut @model.group)}}
@selected={{@model.group}}
@disabled={{@anyUser}}
@placeholder='Groep'
Expand All @@ -81,7 +81,7 @@
<div class='col-sm-9'>
<PowerSelect
@options={{@users}}
@onChange={{action (mut @model.user)}}
@onChange={{fn (mut @model.user)}}
@selected={{@model.user}}
@disabled={{@anyGroup}}
@placeholder='Gebruiker'
Expand Down Expand Up @@ -110,7 +110,7 @@
@errorMessage={{@errorMessage}}
@formActionWrapperClass="col-sm-9"
>
<button {{action @onCancel}} type="button" class='btn btn-default'>
<button {{on 'click' @onCancel}} type="button" class='btn btn-default'>
Annuleren
</button>
</ModelForm::FormActions>
Expand Down
6 changes: 3 additions & 3 deletions app/components/forms/mandate-form.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<h5>{{if @model.isNew 'Mandaat aanmaken' 'Mandaat wijzigen'}}</h5>
</div>
<div class='card-body'>
<form {{action @onSubmit on='submit'}}>
<form {{on 'submit' (prevent-default @onSubmit)}}>
<ModelForm::DateInput
@model={{@model}}
@property='startDate'
Expand All @@ -27,7 +27,7 @@
<div class='col-sm-10'>
<PowerSelect
@options={{@users}}
@onChange={{action (mut @model.user)}}
@onChange={{fn (mut @model.user)}}
@selected={{@model.user}}
@searchEnabled={{true}}
@searchField='fullName'
Expand All @@ -41,7 +41,7 @@
</div>

<ModelForm::FormActions @model={{@model}} @errorMessage={{@errorMessage}}>
<button {{action @onCancel}} type="button" class='btn btn-default'>
<button {{on 'click' @onCancel}} type="button" class='btn btn-default'>
Annuleren
</button>
</ModelForm::FormActions>
Expand Down
6 changes: 3 additions & 3 deletions app/components/forms/photo-album-form.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<h5>{{if @model.isNew 'Fotoalbum aanmaken' 'Fotoalbum wijzigen'}}</h5>
</div>
<div class='card-body'>
<form {{action @onSubmit on='submit'}}>
<form {{on 'submit' (prevent-default @onSubmit)}}>
<ModelForm::TextInput
@model={{@model}}
@property='title'
Expand Down Expand Up @@ -39,7 +39,7 @@
<div class='col-sm-10'>
<PowerSelect
@options={{@groups}}
@onChange={{action (mut @model.group)}}
@onChange={{fn (mut @model.group)}}
@selected={{@model.group}}
@searchEnabled={{true}}
@searchField='name'
Expand Down Expand Up @@ -86,7 +86,7 @@
@errors={{@model.errors}}
@errorMessage={{@errorMessage}}
>
<button {{action @onCancel}} type='button' class='btn btn-default'>
<button {{on 'click' @onCancel}} type='button' class='btn btn-default'>
Annuleren
</button>
</ModelForm::FormActions>
Expand Down
4 changes: 2 additions & 2 deletions app/components/forms/poll-form.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<h5>{{if @model.isNew 'Poll aanmaken' 'Poll wijzigen'}}</h5>
</div>
<div class='card-body'>
<form {{action @onSubmit on='submit'}}>
<form {{on 'submit' (prevent-default @onSubmit)}}>
<ModelForm::DatetimeInput
@model={{@model}}
@property='respondFrom'
Expand Down Expand Up @@ -37,7 +37,7 @@
@errorMessage={{@errorMessage}}
>
<button
{{action @onCancel}}
{{on 'click' @onCancel}}
type="button"
class='btn btn-default'
>
Expand Down
4 changes: 2 additions & 2 deletions app/components/forms/post-form.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<h5>{{if @model.isNew 'Forumbericht aanmaken' 'Forumbericht wijzigen'}}</h5>
</div>
<div class='card-body'>
<form {{action @onSubmit on='submit'}}>
<form {{on 'submit' (prevent-default @onSubmit)}}>

<div class='row'>
<label
Expand All @@ -22,7 +22,7 @@
@errorMessage={{@errorMessage}}
>
<button
{{action @onCancel}}
{{on 'click' @onCancel}}
type="button"
class='btn btn-default'
>
Expand Down
2 changes: 1 addition & 1 deletion app/components/forms/room-advert-form.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<h5>{{if @model.isNew 'Kamer advertentie aanmaken' 'Kamer advertentie wijzigen'}}</h5>
</div>
<div class='card-body'>
<form {{action @onSubmit on='submit'}}>
<form {{on 'submit' (prevent-default @onSubmit)}}>
<ModelForm::TextInput
@model={{@model}}
@property='houseName'
Expand Down
4 changes: 2 additions & 2 deletions app/components/forms/static-page-form.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<h5>{{if @model.isNew 'Infopagina aanmaken' 'Infopagina wijzigen'}}</h5>
</div>
<div class='card-body'>
<form {{action @onSubmit on='submit'}}>
<form {{on 'submit' (prevent-default @onSubmit)}}>
<ModelForm::TextInput
@model={{@model}}
@property='title'
Expand Down Expand Up @@ -46,7 +46,7 @@
</div>

<ModelForm::FormActions @model={{@model}} @errorMessage={{@errorMessage}}>
<button {{action @onCancel}} type="button" class='btn btn-default'>
<button {{on 'click' @onCancel}} type="button" class='btn btn-default'>
Annuleren
</button>
</ModelForm::FormActions>
Expand Down
4 changes: 2 additions & 2 deletions app/components/forms/thread-form.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<h5>{{if @model.isNew 'Topic aanmaken' 'Topic wijzigen'}}</h5>
</div>
<div class='card-body'>
<form {{action @onSubmit on='submit'}}>
<form {{on 'submit' (prevent-default @onSubmit)}}>
<ModelForm::TextInput
@model={{@model}}
@property='title'
Expand Down Expand Up @@ -37,7 +37,7 @@
@errorMessage={{@errorMessage}}
>
<button
{{action @onCancel}}
{{on 'click' @onCancel}}
type="button"
class='btn btn-default'
>
Expand Down
4 changes: 2 additions & 2 deletions app/components/forms/transaction-form.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<h5>{{if @model.isNew 'Transactie aanmaken' 'Transactie wijzigen'}}</h5>
</div>
<div class='card-body'>
<form {{action @onSubmit on='submit'}}>
<form {{on 'submit' (prevent-default @onSubmit)}}>
<ModelForm::TextInput
@model={{@model}}
@property='description'
Expand Down Expand Up @@ -36,7 +36,7 @@
</div>

<ModelForm::FormActions @model={{@model}} @errorMessage={{@errorMessage}}>
<button {{action @onCancel}} type="button" class='btn btn-default'>
<button {{on 'click' @onCancel}} type="button" class='btn btn-default'>
Annuleren
</button>
</ModelForm::FormActions>
Expand Down
4 changes: 2 additions & 2 deletions app/components/forms/user-form.hbs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<form class='form' {{action @onSubmit on='submit'}}>
<form class='form' {{on 'submit' (prevent-default @onSubmit)}}>
<h5>Publieke gegevens</h5>
<p>Deze gegevens zijn zichtbaar voor alle leden en oud-leden.</p>
<ModelForm::FileInput
Expand Down Expand Up @@ -177,7 +177,7 @@
@errorMessage={{@errorMessage}}
@inputLayout='vertical'
>
<button {{action @onCancel}} type="button" class='btn btn-default'>
<button {{on 'click' @onCancel}} type="button" class='btn btn-default'>
Annuleren
</button>
</ModelForm::FormActions>
Expand Down
6 changes: 3 additions & 3 deletions app/components/forms/vacancy-form.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<h5>{{if @model.isNew 'Vacature aanmaken' 'Vacature wijzigen'}}</h5>
</div>
<div class='card-body'>
<form {{action @onSubmit on='submit'}}>
<form {{on 'submit' (prevent-default @onSubmit)}}>
<ModelForm::TextInput
@model={{@model}}
@property='title'
Expand Down Expand Up @@ -48,7 +48,7 @@
<div class='col-sm-10'>
<PowerSelect
@options={{@groups}}
@onChange={{action (mut @model.group)}}
@onChange={{fn (mut @model.group)}}
@selected={{@model.group}}
@searchEnabled={{true}}
@searchField='name'
Expand Down Expand Up @@ -76,7 +76,7 @@
@errorMessage={{@errorMessage}}
>
<button
{{action @onCancel}}
{{on 'click' @onCancel}}
type="button"
class='btn btn-default'
>
Expand Down
4 changes: 2 additions & 2 deletions app/components/forum/forum-post-new.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
</p>
<div class='card-footer'>
<div class='row justify-content-end'>
<a href='#' class='btn btn-default w-auto me-2' {{action 'cancel'}}>Annuleren</a>
<a href='#' class='btn btn-secondary w-auto' {{action 'save'}}>Opslaan</a>
<a href='#' class='btn btn-default w-auto me-2' {{on 'click' cancel}}>Annuleren</a>
<a href='#' class='btn btn-secondary w-auto' {{on 'click' save}}>Opslaan</a>
</div>
</div>
4 changes: 2 additions & 2 deletions app/components/forum/forum-post.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
<FaIcon
@icon='quote-left'
class='link-highlight'
{{on 'click' (action 'quote')}}
{{on 'click' quote}}
/>
</span>
{{/if}}
Expand All @@ -84,7 +84,7 @@
<FaIcon
@icon='code'
class='link-highlight'
{{on 'click' (action 'toggleShowMarkdown')}}
{{on 'click' toggleShowMarkdown}}
/>
</span>
</span>
Expand Down
Loading

0 comments on commit 415a8b8

Please sign in to comment.