Make sponsorship details more compact
authorMagnus Hagander <magnus@hagander.net>
Wed, 12 Sep 2018 08:29:26 +0000 (10:29 +0200)
committerMagnus Hagander <magnus@hagander.net>
Wed, 12 Sep 2018 08:29:26 +0000 (10:29 +0200)
This was done in 7f3bc68469a13f2ac0531cef39f42d54cfe0c6e1 for the signup
form, but should also be done for the individual sponsor dashboard.

template/confsponsor/sponsor.html

index b305586dd3e2c012a847e3a80a777b719d425fb0..814be64cdf1dae244cb2df073fe8a454d98b3791 100644 (file)
@@ -76,8 +76,8 @@ Click on the benefit in the list below to claim it:
 <div id="unclaimedlist">
 {%for b in unclaimedbenefits%}
  <div class="card">
-   <div class="card-header" id="unclaimed_h_{{b.id}}">
-     <h5 class="mb-0">
+   <div class="card-header p-0" id="unclaimed_h_{{b.id}}">
+     <h5 class="m-0">
        <button class="btn btn-link" data-toggle="collapse" data-target="#unclaimed_b_{{b.id}}" aria-expanded="false" aria-controls="unclaimed_b_{{b.id}}">{{b}}</a>
      </h5>
    </div>
@@ -100,8 +100,8 @@ The following benefits have already been claimed:
 <div id="claimedbenefits">
 {%for b in claimedbenefits%}
  <div class="card">
-   <div class="card-header" id="claimed_h_{{b.id}}">
-     <h5 class="mb-0">
+   <div class="card-header p-0" id="claimed_h_{{b.id}}">
+     <h5 class="m-0">
        <button class="btn btn-link" data-toggle="collapse" data-target="#claimed_b_{{b.id}}" aria-expanded="false" aria-controls="claimed_b_{{b.id}}">{{b.benefit}}{%if not b.confirmed%} <i>(Not yet confirmed by the organizers)</i>{%endif%}{%if b.declined%} <b>(This benefit has been declined)</b>{%endif%}</a>
      </h5>
    </div>
@@ -119,8 +119,8 @@ The following benefits have already been claimed:
 
 {%for b in noclaimbenefits%}
  <div class="card">
-   <div class="card-header" id="unclaimed_h_{{b.id}}">
-     <h5 class="mb-0">
+   <div class="card-header p-0" id="unclaimed_h_{{b.id}}">
+     <h5 class="m-0">
        <button class="btn btn-link" data-toggle="collapse" data-target="#unclaimed_b_{{b.id}}" aria-expanded="false" aria-controls="unclaimed_b_{{b.id}}">{{b}}</button>
      </h5>
    </div>