# HG changeset patch # User Sverre Rabbelier # Date 1234647093 0 # Node ID c0af9fa2f83d2066f12f7cca8bf99b192c2c4821 # Parent cd175dddc15cb9ffc80766096c194a3d843fdd78 Skip a field when it's value is not set Patch by: Sverre Rabbelier diff -r cd175dddc15c -r c0af9fa2f83d app/soc/templates/soc/templatetags/_readonly_field_as_table_row.html --- a/app/soc/templates/soc/templatetags/_readonly_field_as_table_row.html Sat Feb 14 21:18:12 2009 +0000 +++ b/app/soc/templates/soc/templatetags/_readonly_field_as_table_row.html Sat Feb 14 21:31:33 2009 +0000 @@ -11,6 +11,8 @@ See the License for the specific language governing permissions and limitations under the License. {% endcomment %} + +{% if field_value %} {{ field_label }}: @@ -19,3 +21,4 @@ {{ field_value }} +{% endif %} diff -r cd175dddc15c -r c0af9fa2f83d app/soc/templates/soc/templatetags/_readonly_field_as_twoline_table_row.html --- a/app/soc/templates/soc/templatetags/_readonly_field_as_twoline_table_row.html Sat Feb 14 21:18:12 2009 +0000 +++ b/app/soc/templates/soc/templatetags/_readonly_field_as_twoline_table_row.html Sat Feb 14 21:31:33 2009 +0000 @@ -11,6 +11,8 @@ See the License for the specific language governing permissions and limitations under the License. {% endcomment %} + +{% if field_value %} {{ field_label }}: @@ -21,5 +23,4 @@ {{ field_value }} - - +{% endif %} diff -r cd175dddc15c -r c0af9fa2f83d app/soc/templates/soc/templatetags/_readonly_multiline_field_as_table_row.html --- a/app/soc/templates/soc/templatetags/_readonly_multiline_field_as_table_row.html Sat Feb 14 21:18:12 2009 +0000 +++ b/app/soc/templates/soc/templatetags/_readonly_multiline_field_as_table_row.html Sat Feb 14 21:31:33 2009 +0000 @@ -11,6 +11,8 @@ See the License for the specific language governing permissions and limitations under the License. {% endcomment %} + +{% if field_value %} {{ field_label }}: @@ -19,3 +21,4 @@ {{ field_value|linebreaks }} +{% endif %}