{{#contentFor "headerTitle"}}
{{__ "Send message"}}
{{/contentFor}}
{{#contentFor "headerButtonLeft"}}
{{>ionNavBackButton}}
{{/contentFor}}
{{#contentFor "headerButtonRight"}}
{{/contentFor}}
{{#if dataReady}}
{{#ionView}}
{{#ionContent}}
{{__ "Send message"}}
{{#if error}}
{{__ error}}
{{/if}}
{{#if actionId}}
{{{__ "Send a message to all participants of name" name=scope.name}}}
{{else}}
{{#if equals scopeVar 'organizations'}}
{{{__ "Send a message to all members of name" name=scope.name}}}
{{else if equals scopeVar 'projects'}}
{{{__ "Send a message to all contributors to name" name=scope.name}}}
{{else if equals scopeVar 'events'}}
{{{__ "Send a message to all participants of name" name=scope.name}}}
{{/if}}
{{/if}}
{{{__ "Be careful to use in moderation to prevent important things"}}}
{{#autoForm id="formMessages" schema=SchemasMessagesRest type="method" meteormethod="sendEmailScope" template="ionic" class=""}}
{{> afQuickField name='subject' label-type='placeholder' autofocus=''}}
{{> afQuickField name='text' label-type='placeholder' rows=8}}
{{/autoForm}}
{{/ionContent}}
{{/ionView}}
{{else}}
{{> loading}}
{{/if}}
{{#ionModal customTemplate=true}}
{{/ionModal}}