diff --git a/opentech/apply/funds/templates/funds/tables/table.html b/opentech/apply/funds/templates/funds/tables/table.html index d77496df9ff3d47e0b425bb7045af79eab8ae1e8..3c07838c3bfd834143377d9b3604060cfa956074 100644 --- a/opentech/apply/funds/templates/funds/tables/table.html +++ b/opentech/apply/funds/templates/funds/tables/table.html @@ -2,7 +2,14 @@ {% load django_tables2 table_tags review_tags %} {% block table.tbody.row %} - {{ block.super }} + <tr {{ row.attrs.as_html }}> + {% for column, cell in row.items %} + <td {{ column.attrs.td.as_html }}> + <span class="mobile-label {{ column.attrs.td.class }}">{{ column.header }}: </span> + {% if column.localize == None %}{{ cell }}{% else %}{% if column.localize %}{{ cell|localize }}{% else %}{{ cell|unlocalize }}{% endif %}{% endif %} + </td> + {% endfor %} + </tr> {% with submission=row.record %} <tr class="all-submissions__child" data-parent-id="{{ row.record.id }}"> diff --git a/opentech/static_src/src/sass/apply/components/_all-submissions.scss b/opentech/static_src/src/sass/apply/components/_all-submissions.scss index 34968f4fc52765295c759db8f0c6c73dd8729870..d13f4985d5f35ef25f7a014764018e2c5a15864d 100644 --- a/opentech/static_src/src/sass/apply/components/_all-submissions.scss +++ b/opentech/static_src/src/sass/apply/components/_all-submissions.scss @@ -164,6 +164,14 @@ $table-breakpoint: 'tablet-landscape'; } } + &.reviews_stats { + display: none; + + @include media-query($table-breakpoint) { + display: table-cell; + } + } + // arrow to toggle project info - added via js @include media-query($table-breakpoint) { .arrow { @@ -179,6 +187,19 @@ $table-breakpoint: 'tablet-landscape'; } } } + + > span.mobile-label { + width: 90px; + display: inline-block; + + &.phase, &.title { + display: none; + } + + @include media-query($table-breakpoint) { + display: none; + } + } } } diff --git a/opentech/static_src/src/sass/apply/components/_table.scss b/opentech/static_src/src/sass/apply/components/_table.scss index b757c6239b46d52d8ec5ea9f31a2ac1814f293d4..b8fef0cb7f0c7083e2a04e4af1830b061b5350e3 100644 --- a/opentech/static_src/src/sass/apply/components/_table.scss +++ b/opentech/static_src/src/sass/apply/components/_table.scss @@ -20,7 +20,7 @@ table { } } - // tale rows + // table rows tr { border: 1px solid $color--light-mid-grey; transition: box-shadow 0.15s ease; @@ -62,20 +62,21 @@ table { &.lead { span { - position: relative; - z-index: 1; - display: block; - padding-right: 5px; - overflow: hidden; - text-overflow: ellipsis; - background: $color--white; - - &:hover { - display: inline-block; - overflow: visible; + @include media-query($table-breakpoint) { + position: relative; + z-index: 1; + display: block; + padding-right: 5px; + overflow: hidden; + text-overflow: ellipsis; + background: $color--white; + + &:hover { + display: inline-block; + overflow: visible; + } } } - } } }