Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix an HTML error in Calculate.tpl #15102

Merged
merged 1 commit into from
Sep 5, 2019

Conversation

mlutfy
Copy link
Member

@mlutfy mlutfy commented Aug 22, 2019

Overview

There was an HTML error with a 'span' tag that was not closed correctly because the markup was outside the condition.

I also did a bit of code-style cleanup.

Most of it is NFC, except that I added the string "for this participant" now moved inside the span. It doesn't make sense to have it outside.

Before

<div id="pricesetTotal" class="crm-section section-pricesetTotal">
--
   <div class="label
   " id="pricelabel">
   Total Fee(s)</span>
   for this participant      </div>
   <div class="content calc-value"  id="pricevalue" ></div>
   </div>

Screen Shot 2019-09-05 at 7 17 25 PM

After

<div id="pricesetTotal" class="crm-section section-pricesetTotal">
--
   <div id="pricelabel" class="label ">
   <span id='amount_sum_label'>Total Fee(s) for this participant</span>
   </div>
   <div class="content calc-value"  id="pricevalue"></div>
  </div>

And on a membership page

<div id="pricesetTotal" class="crm-section section-pricesetTotal">
--
<div id="pricelabel" class="label ">
   <span id='amount_sum_label'>Total Amount</span>
   </div>
   <div class="content calc-value"  id="pricevalue"></div>
   </div>

No noticeable visible change

@civibot
Copy link

civibot bot commented Aug 22, 2019

(Standard links)

@civibot civibot bot added the master label Aug 22, 2019
@eileenmcnaughton
Copy link
Contributor

test this please

@eileenmcnaughton
Copy link
Contributor

Code looks good - if someone does an r-run & confirms the html this is mergeable

@eileenmcnaughton
Copy link
Contributor

I tested this locally & edited my findings in the PR template above. Summary = yes, this fixes a broken html tag.

Merging

@eileenmcnaughton eileenmcnaughton merged commit 42b1aab into civicrm:master Sep 5, 2019
@mlutfy
Copy link
Member Author

mlutfy commented Sep 5, 2019

thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants