Commit 959d083f authored by Hussain Kashef's avatar Hussain Kashef

created_at added to volunteers and client views and forms

parent 95398b25
Pipeline #50633 passed with stage
in 38 minutes and 13 seconds
......@@ -6,7 +6,10 @@
= link_to t('.reactivate.button'), reactivate_client_path(f.object), class: 'btn btn-default m-t-10',
data: { confirm: t('.reactivate.confirm') }
hr.m-y-30
fieldset
ul.list-unstyled
- @client.slice(:created_at).compact.each do |key, value|
li #{t_attr(key)} #{l(value)}
.row
.col-xs-12.col-md-6
fieldset
......
......@@ -68,7 +68,9 @@ h1.m-b-20= @client.contact.full_name
tr
td= t_attr(:created_by)
td= link_to @client.user.full_name, profile_url_path(@client.user)
tr
td= t_attr(:created_at)
td= l(@client.created_at)
- if policy(Client).show_comments?
tr
td= t_attr(:comments)
......
......@@ -14,7 +14,7 @@
= acceptance_select(@volunteer, f)
- unless @volunteer.undecided?
ul.list-unstyled
- @volunteer.slice(:invited_at, :accepted_at, :undecided_at, :rejected_at, :resigned_at).compact.each do |key, value|
- @volunteer.slice(:created_at, :invited_at, :accepted_at, :undecided_at, :rejected_at, :resigned_at).compact.each do |key, value|
li #{t_attr(key)} #{l(value)}
= f.input :external, input_html: { data: { hide: ['bank-data', 'checklist'] }, class: 'volunteer-active-checkbox-changes' }
......
......@@ -83,7 +83,9 @@ h2.small Persönlicher Hintergrund
= t('volunteer_self_applicant')
- else
= link_to @volunteer.registrar.full_name, profile_url_path(@volunteer.registrar)
- if policy(Volunteer).show_comments?
tr
td= t_attr(:created_at)
td= l(@volunteer.created_at)
- [:comments, :additional_comments].each do |attribute|
tr
td= t_attr(attribute)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment