Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonio Dal Cin authored and Antonio Dal Cin committed Mar 9, 2017
1 parent 26fd156 commit 9862b0b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/cells/lato_view/layout/tablerows/views/show.html.erb
@@ -1,12 +1,13 @@
<% @values.each do |val| %>
<% if !val[:value].nil? %>
<% string_value = val[:value]%>
<% if val[:value].in? [true, false] %>
<% string_value = "<div class='status round-status #{val[:value]}'></div>"%>
<% end %>
<% if val[:value].blank? %>
<% string_value = VIEW_LANG['table_rows']['value_blank'] %>
<% end %>
<tr>
<th><%= val[:title]%>:</th>
<td><%= raw string_value%></td>
</tr>
<% end %>
<% end %>
3 changes: 3 additions & 0 deletions lang/default.yml
Expand Up @@ -18,3 +18,6 @@ form_validation:
char : Numero errato di caratteri.
pass_same: I campi devono avere lo stesso valore.
check: Non puoi lasciare vuoto questo campo.

table_rows:
value_blank: Nessun valore inserito
3 changes: 3 additions & 0 deletions lang/en.yml
Expand Up @@ -18,3 +18,6 @@ form_validation:
char : Wrong number of char.
pass_same: These fields must match.
check: Field can't be empty.

table_rows:
value_blank: No value saved

0 comments on commit 9862b0b

Please sign in to comment.