Skip to content

Commit

Permalink
Fix the formatting of the enketo survey button
Browse files Browse the repository at this point in the history
So that it looks proper

It centers the button and ensures that it takes up all the width of the item.
e-mission/e-mission-docs#727 (comment)
and
e-mission/e-mission-docs#727 (comment)
  • Loading branch information
shankari committed May 27, 2022
1 parent 0ccab07 commit fd27504
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions www/templates/survey/enketo/summary-trip-button.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
</div>
<!-- Buttons (if confirmed) -->
<div class="row input-confirm-row">
<div ng-if="trip.userInput['SURVEY']" class="input-confirm-container col">
<button ng-click ="openPopover($event, trip, 'SURVEY')" class="button btn-input-confirm btn-input-confirm-green">
<div ng-if="trip.userInput['SURVEY']" class="input-confirm-container col" style="text-align: center;" >
<button ng-click ="openPopover($event, trip, 'SURVEY')" class="button btn-input-confirm btn-input-confirm-green" style="width: 100%;">
{{trip.userInput['SURVEY'].data.label}}
</button>
</div>
Expand All @@ -19,8 +19,8 @@
</button>
</div> -->
<!-- Buttons (if not inferred or confirmed) -->
<div ng-if="!trip.userInput['SURVEY'] && !trip.finalInference['SURVEY']" class="input-confirm-container col">
<button ng-click ="openPopover($event, trip, 'SURVEY')" class="button btn-input-confirm btn-input-confirm-red" translate>
<div ng-if="!trip.userInput['SURVEY'] && !trip.finalInference['SURVEY']" class="input-confirm-container col" style="text-align: center;">
<button ng-click ="openPopover($event, trip, 'SURVEY')" class="button btn-input-confirm btn-input-confirm-red" style="width: 100%;" translate>
{{'.choose-survey'}}
</button>
</div>
Expand Down

0 comments on commit fd27504

Please sign in to comment.