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
0680928d
Commit
0680928d
authored
May 02, 2018
by
Tugce Nur Tas
Browse files
add additional info if available for involved authority
parent
a5ff5091
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/models/assignment.rb
View file @
0680928d
...
...
@@ -43,6 +43,11 @@ class Assignment < ApplicationRecord
involved_authority
&
.
contact
end
def
involved_authority_organization
department
=
involved_authority
&
.
user
&
.
department
&
.
first
&
.
contact
[
department
&
.
last_name
,
department
&
.
full_address
].
reject
(
&
:blank?
).
join
(
', '
)
end
def
involved_authority
if
client
.
involved_authority
client
.
involved_authority
.
profile
...
...
app/views/assignments/show.html.slim
View file @
0680928d
...
...
@@ -90,7 +90,7 @@ h4.m-b-10= t('assignment_pdf.creator_title')
.col-xs-7.col-input
=
@assignment
.
involved_authority_contact
.
last_name
.row
.col-xs-5
=
t
(
'assignment_pdf.function'
)
.col-xs-7.col-input
.col-xs-7.col-input
=
@assignment
.
involved_authority
&
.
profession
.row
.col-xs-5
=
t
(
'assignment_pdf.email'
)
.col-xs-7.col-input
=
@assignment
.
involved_authority_contact
.
primary_email
...
...
@@ -100,7 +100,7 @@ h4.m-b-10= t('assignment_pdf.creator_title')
.col-xs-7.col-input
=
@assignment
.
involved_authority_contact
.
first_name
.row
.col-xs-5
=
t
(
'assignment_pdf.organization'
)
.col-xs-7.col-input
.col-xs-7.col-input
=
@assignment
.
involved_authority_organization
.row
.col-xs-5
=
t
(
'assignment_pdf.telephone'
)
.col-xs-7.col-input
=
@assignment
.
involved_authority_contact
.
primary_phone
...
...
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