Untitled

mail@pastecode.io avatar
unknown
golang
11 days ago
3.1 kB
2
Indexable
Never
func GenerateAZCaRe4MeHTMLRow(serialNumber int, patientInitials string, patientEnrolmentID int,
	drugDosageAndRedemptionQuantity string, batchID string) string {
	return fmt.Sprintf(`
		<tr>
        <td
          align="left"
          style="padding: 8px;margin: 0; border: 1px solid #f6f6f6;"
        >
          <span
            style="
              margin: 0; 
              webkit-text-size-adjust: none; 
              -ms-text-size-adjust: none;
              mso-line-height-rule: exactly;
              font-family: arial, 'helvetica neue', helvetica,sans-serif;
              line-height: 24px;
              color: #131313;
              font-size: 16px;
            "
          >
            %[1]d
          </span>
        </td>
        <td
          align="left"
          style="padding: 8px;margin: 0; border: 1px solid #f6f6f6;"
        >
          <span
            style="
              margin: 0; 
              webkit-text-size-adjust: none; 
              -ms-text-size-adjust: none;
              mso-line-height-rule: exactly;
              font-family: arial, 'helvetica neue', helvetica,sans-serif;
              line-height: 24px;
              color: #131313;
              font-size: 16px;
            "
          >
            %[2]s
          </span>
        </td>
        <td
          align="left"
          style="padding: 8px;margin: 0; border: 1px solid #f6f6f6;"
        >
          <span
            style="
              margin: 0; 
              webkit-text-size-adjust: none; 
              -ms-text-size-adjust: none;
              mso-line-height-rule: exactly;
              font-family: arial, 'helvetica neue', helvetica,sans-serif;
              line-height: 24px;
              color: #131313;
              font-size: 16px;
            "
          >
            %[3]d
          </span>
        </td>
        <td
          align="left"
          style="padding: 8px;margin: 0; border: 1px solid #f6f6f6;"
        >
          <span
            style="
              margin: 0; 
              webkit-text-size-adjust: none; 
              -ms-text-size-adjust: none;
              mso-line-height-rule: exactly;
              font-family: arial, 'helvetica neue', helvetica,sans-serif;
              line-height: 24px;
              color: #131313;
              font-size: 16px;
              white-space: pre-line;
            "
          >
            %[4]s
          </span>
        </td>
        <td
          align="left"
          style="padding: 8px;margin: 0; border: 1px solid #f6f6f6;"
        >
          <span
            style="
              margin: 0; 
              webkit-text-size-adjust: none; 
              -ms-text-size-adjust: none;
              mso-line-height-rule: exactly;
              font-family: arial, 'helvetica neue', helvetica,sans-serif;
              line-height: 24px;
              color: #131313;
              font-size: 16px;
            "
          >
            %[5]s
          </span>
        </td>
      </tr>
	`,
		serialNumber,
		patientInitials,
		patientEnrolmentID,
		drugDosageAndRedemptionQuantity,
		batchID,
	)
}
Leave a Comment