|
83 | 83 | Charity number |
84 | 84 | </dt> |
85 | 85 | <dd class="mt-1 text-sm leading-5 text-gray-900 sm:mt-0 sm:col-span-2"> |
86 | | - 123456 |
| 86 | + <%= @organisation.charity_number || '<em class="text-gray-600">Not known</em>'.html_safe %> |
| 87 | + |
| 88 | + <% if @organisation.charity_number %> |
87 | 89 | <ul class="border border-gray-200 rounded-md mt-2"> |
88 | 90 | <li class="pl-3 pr-4 py-3 flex items-center justify-between text-sm leading-5 border-b"> |
89 | 91 | <em class="ml-2 flex-1 w-0 truncate text-gray-600"> |
90 | | - Data for financial year ending 31 March 2019 |
| 92 | + Data for financial year ending <%= @organisation.income_fy&.strftime("%e %B %Y") %> |
91 | 93 | </em> |
92 | 94 | </li> |
93 | 95 | <li class="pl-3 pr-4 py-3 flex items-center justify-between text-sm leading-5 border-b"> |
94 | 96 | <div class="w-0 flex-1 flex items-center ml-2"> |
95 | 97 | Employees |
96 | 98 | </div> |
97 | 99 | <div class="ml-4 flex-shrink-0"> |
98 | | - 22 |
| 100 | + <%= @organisation.employee_count || '<em class="text-gray-600">Not known</em>'.html_safe %> |
99 | 101 | </div> |
100 | 102 | </li> |
101 | 103 | <li class="pl-3 pr-4 py-3 flex items-center justify-between text-sm leading-5"> |
102 | 104 | <div class="w-0 flex-1 flex items-center ml-2"> |
103 | 105 | Volunteers |
104 | 106 | </div> |
105 | 107 | <div class="ml-4 flex-shrink-0"> |
106 | | - 8 |
| 108 | + <%= @organisation.volunteer_count || '<em class="text-gray-600">Not known</em>'.html_safe %> |
107 | 109 | </div> |
108 | 110 | </li> |
109 | 111 | <li class="pl-3 pr-4 py-3 flex items-center justify-between text-sm leading-5"> |
110 | 112 | <div class="w-0 flex-1 flex items-center ml-2"> |
111 | 113 | Income |
112 | 114 | </div> |
113 | 115 | <div class="ml-4 flex-shrink-0"> |
114 | | - £1,100,000 |
| 116 | + <%= number_to_currency(@organisation.income, unit: '£', precision: 0) || '<em class="text-gray-600">Not known</em>'.html_safe %> |
115 | 117 | </div> |
116 | 118 | </li> |
117 | 119 | </ul> |
| 120 | + <% end %> |
118 | 121 | </dd> |
119 | 122 | </div> |
120 | 123 | <div class="bg-gray-50 px-4 py-4 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6"> |
121 | 124 | <dt class="text-sm leading-5 font-medium text-gray-600"> |
122 | 125 | Company number |
123 | 126 | </dt> |
124 | 127 | <dd class="mt-1 text-sm leading-5 text-gray-900 sm:mt-0 sm:col-span-2"> |
125 | | - 123456 |
| 128 | + <%= @organisation.company_number || '<em class="text-gray-600">Not known</em>'.html_safe %> |
126 | 129 | </dd> |
127 | 130 | </div> |
128 | 131 | <div class="bg-gray-50 px-4 py-4 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6"> |
129 | 132 | <dt class="text-sm leading-5 font-medium text-gray-600"> |
130 | 133 | Location |
131 | 134 | </dt> |
132 | 135 | <dd class="mt-1 text-sm leading-5 text-gray-900 sm:mt-0 sm:col-span-2"> |
133 | | - <select> |
134 | | - <option>East Midlands</option> |
135 | | - <option>East of England</option> |
136 | | - <option>London</option> |
137 | | - <option>North East</option> |
138 | | - <option>North West</option> |
139 | | - <option>South East</option> |
140 | | - <option>South West</option> |
141 | | - <option>West Midlands</option> |
142 | | - <option>Yorkshire and The Humber</option> |
143 | | - </select> |
| 136 | + <%= @organisation.region %> |
144 | 137 | <details class="text-xs text-gray-600"> |
145 | 138 | <summary class="link">Dev notes</summary> |
146 | 139 | <p> |
|
181 | 174 | </div> |
182 | 175 | <div class="bg-white px-4 py-4 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6"> |
183 | 176 | <dt class="text-sm leading-5 font-medium text-gray-600"> |
184 | | - COVID-19 Theme & Catagory |
| 177 | + COVID-19 Theme & Category |
185 | 178 | </dt> |
186 | 179 | <dd class="mt-1 text-sm leading-5 text-gray-900 sm:mt-0 sm:col-span-2"> |
187 | 180 | <select class="w-full"> |
|
343 | 336 | </div> |
344 | 337 | <%- @organisation.actions.each do |action| %> |
345 | 338 | <div class="border-b border-gray-200 px-6 py-4 text-sm leading-5 font-medium text-gray-900"> |
346 | | - <b><%= action.start_time.strftime("%Y %b %d") %>:</b> <%= action.getString() %> |
| 339 | + <b><%= action.start_time.strftime("%Y %b %d") %>:</b> <%= action.get_string() %> |
347 | 340 | </div> |
348 | 341 | <% end %> |
349 | 342 | </div> |
|
0 commit comments