fix for dates

This commit is contained in:
Adrian Hinz 2022-04-30 14:52:28 +02:00
parent f0d23f0bf0
commit 7f6f56e059
2 changed files with 8 additions and 2 deletions

View File

@ -19,7 +19,10 @@
<h4><strong>Składanie wniosków</strong></h4>
</div>
<div class="col-sm-6">
<h4>od <%= dotation.start_date_ret %><br />do <%= dotation.end_date_ret %></h4>
<h4>
<% unless dotation.start_date.blank? %>od <%= dotation.start_date_ret %><br /><% end %>
<% unless dotation.end_date.blank? %>do <%= dotation.end_date_ret %><% end %>
</h4>
</div>
</div>
</div>

View File

@ -9,7 +9,10 @@
<tr>
<td><strong>Składanie wniosków</strong></td>
<td>od <%= dotation.start_date_ret %><br />do <%= dotation.end_date_ret %></td>
<h4>
<% unless dotation.start_date.blank? %>od <%= dotation.start_date_ret %><br /><% end %>
<% unless dotation.end_date.blank? %>do <%= dotation.end_date_ret %><% end %>
</h4>
</tr>
<tr>
<td>Lokalizacja: </td>