Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Chill-project
Chill-Report
Commits
49339d78
Commit
49339d78
authored
Dec 04, 2015
by
Marc Ducobu
Browse files
Amelioration UI
parent
58cd4be3
Pipeline
#197
failed with stage
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Resources/views/Report/list.html.twig
View file @
49339d78
...
...
@@ -37,8 +37,8 @@
<td>
{%
if
report.date
%}{{
report.date
|
localizeddate
(
'long'
,
'none'
)
}}{%
endif
%}
</td>
<td>
{{
report.cFGroup.getName
(
app.request.locale
)
}}
</td>
<td>
{{
report.scope.name
|
localize_translatable_string
}}
</td>
<td><a
href=
"
{{
path
(
'report_view'
,
{
'person_id'
:
report.person.id
,
'report_id'
:
report.id
}
)
}}
"
>
{{
'View the report
'
|
trans
}}
</a></td>
<td><a
href=
"
{{
path
(
'report_edit'
,
{
'person_id'
:
report.person.id
,
'report_id'
:
report.id
}
)
}}
"
>
{{
'Update
the report
'
|
trans
}}
</a></td>
<td><a
href=
"
{{
path
(
'report_view'
,
{
'person_id'
:
report.person.id
,
'report_id'
:
report.id
}
)
}}
"
class=
"sc-button black"
>
{{
'View
'
|
trans
}}
</a></td>
<td><a
href=
"
{{
path
(
'report_edit'
,
{
'person_id'
:
report.person.id
,
'report_id'
:
report.id
}
)
}}
"
class=
"sc-button bt-update"
>
{{
'Update'
|
trans
}}
</a></td>
</tr>
{%
endfor
%}
</tbody>
...
...
Resources/views/Report/view.html.twig
View file @
49339d78
...
...
@@ -22,26 +22,23 @@
{%
block
personcontent
%}
<a
href=
"
{{
path
(
'report_edit'
,
{
'person_id'
:
entity.person.id
,
'report_id'
:
entity.id
}
)
}}
"
><i
class=
"fa fa-pencil"
></i>
{{
'Update the report'
|
trans
}}
</a>
<h2>
{{
'Details'
|
trans
}}
</h2>
<h2
class=
"chill-red"
>
{{
'Details'
|
trans
}}
</h2>
<dl>
<dt
class=
"inline"
>
{{
'Person'
|
trans
}}
</dt>
<dt>
{{
'Person'
|
trans
}}
:
</dt>
<dd>
{{
entity.person
}}
</dd>
<dt
class=
"inline"
>
{{
'Scope'
|
trans
}}
</dt>
<dt>
{{
'Scope'
|
trans
}}
:
</dt>
<dd><span
class=
"scope"
>
{{
entity.scope.name
|
localize_translatable_string
}}
</span></dd>
<dt
class=
"inline"
>
{{
'Date'
|
trans
}}
</dt>
<dt>
{{
'Date'
|
trans
}}
:
</dt>
<dd>
{{
entity.date
|
localizeddate
(
'long'
,
'none'
)
}}
</dd>
<dt
class=
"inline"
>
{{
'User'
|
trans
}}
</dt>
<dt>
{{
'User'
|
trans
}}
:
</dt>
<dd>
{{
entity.user
}}
</dd>
<dt
class=
"inline"
>
{{
'Report type'
|
trans
}}
</dt>
<dt>
{{
'Report type'
|
trans
}}
:
</dt>
<dd>
{{
entity.cFGroup.getName
(
app.request.locale
)
}}
</dd>
{{
chill_custom_fields_group_widget
(
entity.cFData
,
entity.cFGroup
)
}}
</dl>
<a
href=
"
{{
path
(
'report_edit'
,
{
'person_id'
:
entity.person.id
,
'report_id'
:
entity.id
}
)
}}
"
><i
class=
"fa fa-pencil"
></i>
{{
'Update the report'
|
trans
}}
</a>
<a
class=
"sc-button bt-update"
href=
"
{{
path
(
'report_edit'
,
{
'person_id'
:
entity.person.id
,
'report_id'
:
entity.id
}
)
}}
"
><i
class=
"fa fa-pencil"
></i>
{{
'Update the report'
|
trans
}}
</a>
{%
endblock
%}
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