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
08533489
Commit
08533489
authored
Aug 09, 2017
by
Kaspar Vollenweider
👻
Committed by
Kaspar
Aug 09, 2017
Browse files
fix assignments views using volunteer collection view with a Record
parent
b0d01407
Changes
4
Hide whitespace changes
Inline
Side-by-side
app/views/assignments/_volunteer_index.html.slim
0 → 100644
View file @
08533489
.row
.col-xs-12
table
.table.table-striped
thead
tr
th
=
t_model
(
Client
)
th
=
t_attr
(
:state
,
Assignment
)
th
=
t_attr
(
:created_at
,
Assignment
)
th
=
t_attr
(
:created_by
)
th
colspan
=
'5'
tbody
=
render
assignments
app/views/assignments/find_client.html.slim
View file @
08533489
...
...
@@ -2,9 +2,9 @@
.col-xs-12
h1
=
@volunteer
.
contact
.
full_name
=
render
'volunteers/
columns
'
,
volunteer
s
:
@volunteer
=
render
'volunteers/
show_excerpt
'
,
volunteer:
@volunteer
h3
=
t_attr
(
:single_accompaniment
)
h3
=
t_attr
(
:single_accompaniment
,
Volunteer
)
.table-responsive
table
.table.table-striped
thead
...
...
app/views/volunteers/_show_excerpt.html.slim
0 → 100644
View file @
08533489
.table-responsive
table
.table.table-striped
thead
tr
th
=
t_attr
(
:title
,
Contact
)
th
=
t_attr
(
:city
,
Contact
)
th
=
t_attr
(
:postal_code
,
Contact
)
th
=
t_attr
(
:primary_email
,
Contact
)
th
=
t_attr
(
:birth_year
,
Volunteer
)
th
=
t_attr
(
:native_language
,
LanguageSkill
)
th
=
t_attr
(
:foreign_languages
,
LanguageSkill
)
th
=
t_attr
(
:education
,
Volunteer
)
th
=
t_attr
(
:profession
,
Volunteer
)
th
=
t_attr
(
:working_percent
,
Volunteer
)
th
=
t_attr
(
:expectations
,
Volunteer
)
th
=
t_attr
(
:interests
,
Volunteer
)
th
=
t_attr
(
:state
,
Volunteer
)
tbody
tr
td
=
t
(
"salutation.
#{
volunteer
.
salutation
}
"
)
if
volunteer
.
salutation?
td
=
volunteer
.
contact
.
full_name
td
=
volunteer
.
contact
.
city
td
=
volunteer
.
contact
.
postal_code
td
=
volunteer
.
contact
.
primary_email
td
=
volunteer
.
birth_year
.
year
if
volunteer
.
birth_year?
td
=
volunteer
.
language_skills
.
first
.
language_name
if
volunteer
.
language_skills
.
any?
td
=
render
'language_skills/show_inline'
,
language_skills:
volunteer
.
language_skills
td
=
volunteer
.
education
td
=
volunteer
.
profession
td
#{
volunteer
.
working_percent
}
%
td
=
volunteer
.
expectations
td
=
volunteer
.
interests
td
=
t
(
"simple_form.options.volunteer.state.
#{
volunteer
.
state
}
"
)
app/views/volunteers/show.html.slim
View file @
08533489
...
...
@@ -164,7 +164,7 @@ h3= t_attr(:volunteer_availability)
.row
.col-xs-12
#assignments
h3
=
t
(
'assignments'
)
=
render
'assignments/
assignments_block
'
,
assignments:
@volunteer
.
assignments
=
render
'assignments/
volunteer_index
'
,
assignments:
@volunteer
.
assignments
=
form_navigation_btn
:edit
=
form_navigation_btn
:back
Write
Preview
Supports
Markdown
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