Skip to content

Instantly share code, notes, and snippets.

@Workman
Created May 22, 2023 08:32
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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