Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
aoz-003
Commits
bf8a3d7f
Verified
Commit
bf8a3d7f
authored
Feb 27, 2018
by
Kaspar Vollenweider
👻
Browse files
going home
parent
cf36366c
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/views/volunteers/_import_account_invite.html.slim
0 → 100644
View file @
bf8a3d7f
h2
.small
Importiert
p
.text-warning
Dieses
Freiwilligenprofil
wurde
von
Access
importiert
.
-
if
volunteer
.
user
.
present?
p
.text-warning
Ein
Useraccount
wurde
bereits
erstellt
.
-
elsif
volunteer
.
user
.
blank?
&&
volunteer
.
accepted?
h3
.small
User
Account
erstellen
-
if
volunteer
.
import
.
store
[
'haupt_person'
][
'email'
].
present?
p
'
F
ür
die
Emailadresse
=
mail_to
"
#{
volunteer
.
import
.
store
[
'haupt_person'
][
'email'
]
}
",
volunteer
.import.store
['haupt_person']['email']
=
' einen '
=
link_to
"Account erstellen"
,
account_volunteer_path
(
volunteer
),
method: :put
,
class:
'btn btn-default btn-xs'
-
else
=
simple_form_for
(
volunteer
,
url:
account_volunteer_path
(
volunteer
))
do
|
f
|
=
f
.
simple_fields_for
(
:contact
)
|
c
|
app/views/volunteers/show.html.slim
View file @
bf8a3d7f
...
...
@@ -38,20 +38,9 @@ nav.navbar.section-navigation
li
=
form_navigation_btn
:back
,
with_row:
false
unless
current_user
.
volunteer?
-
if
policy
(
Volunteer
).
superadmin_privileges?
-
if
@volunteer
.
accepted?
&&
@volunteer
.
import
.
present?
-
if
@volunteer
.
user
.
present?
h2
.small
Importiert
p
.text-warning
Dieses
Freiwilligenprofil
wurde
von
Access
importiert
.
Ein
Useraccount
wurde
bereits
erstellt
.
-
if
@volunteer
.
user
.
blank?
&&
@volunteer
.
import
.
store
[
'haupt_person'
][
'email'
].
present?
h2
.small
Import
p
.text-warning
Dieses
Freiwilligenprofil
wurde
von
Access
importiert
.
h3
User
Account
erstellen
p
'
F
ür
die
Emailadresse
=
mail_to
"
#{
@volunteer
.
import
.
store
[
'haupt_person'
][
'email'
]
}
",
@volunteer
.import.store
['haupt_person']['email']
=
' einen '
=
link_to
"Account erstellen"
,
account_volunteer_path
(
@volunteer
),
method: :put
,
class:
'btn btn-default btn-xs'
-
if
@volunteer
.
import
.
present?
=
render
'import_acount_invite'
,
volunteer:
@volunteer
h2
.small
=
t
(
'checklist'
)
.table-responsive
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment