Skip to content

Instantly share code, notes, and snippets.

@Workman
Created May 22, 2023 08:32
Show Gist options
  • Save Workman/d3d0867536957b64d66edc1c8790eb18 to your computer and use it in GitHub Desktop.
Save Workman/d3d0867536957b64d66edc1c8790eb18 to your computer and use it in GitHub Desktop.
res = html(:template).render(params) do %Q(
<h1 class="my-3">Validate Emails</h1>
<div class="row">
<div class="col-12">
<div class="py-3">
<form action='/requests' method='post' id="validate_email">
Check an email to validate if they are valid prior to sending.
<div class="row">
<div class="col-8">
<textarea name="emails" style="width:100%;height:400px;display:none"></textarea>
<input name="email" style="width:100%;">
</div>
<div class="col-4">
<input type="submit">
</div>
</div>
</form>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="py-3">
<table class="table" id="results">
<thead>
<tr>
<th>*</th>
<th>Email</th>
<th>Valid?</th>
<th>Notes</th>
<th>Website</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
</div>
)
end
send_body(res)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment