Skip to content

Instantly share code, notes, and snippets.

@selvinortiz
Created July 3, 2013 00:22
Show Gist options
  • Save selvinortiz/5914469 to your computer and use it in GitHub Desktop.
Save selvinortiz/5914469 to your computer and use it in GitHub Desktop.
SpamGuard:Test
{% extends "_abstract/master.twig" %}
{% set title = "Spam Guard" %}
{% set bodyId = "spamguard" %}
{% block content %}
{% if spam is defined %}
{% set email = spam.email %}
{% set author = spam.author %}
{% set content = spam.content %}
{% set message = spam.message %}
{% set __email = spam.getError('email') %}
{% set __author = spam.getError('author') %}
{% set __content = spam.getError('content') %}
{% else %}
{% set email = "" %}
{% set author = "" %}
{% set content = "" %}
{% set message = "You are free to run some tests on this demo to see if Akismet will work for you." %}
{% set __email = "" %}
{% set __author = "" %}
{% set __content = "" %}
{% endif %}
<div class="row main">
<div class="full">
<div role="main">
<h2>Spam Guard (Testing Suite)</h2>
<p style="">{{ message|raw }}</p>
<form method="post" action="" class="forms">
<input type="hidden" name="action" id="action" value="spamGuard/spam/isSpam"/>
<fieldset>
<ul>
<li>
<label for="email" class="bold">Email</label>
<input type="email" name="email" id="email" size="40" value="{{ email }}" />
<br>
<span class="error">{{ __email }}</span>
</li>
<li>
<label for="author" class="bold">Name</label>
<input type="text" name="author" id="author" value="{{ author }}" size="40" />
<br>
<span class="error">{{ __author }}</span>
</li>
<li>
<fieldset>
<section><label for="content" class="bold">Textarea</label></section>
<textarea id="content" name="content" class="width-100" style="height: 100px;">{{ content }}</textarea>
<br>
<span class="error">{{ __content }}</span>
</fieldset>
</li>
<li class="push">
<input type="submit" name="submit" class="btn" value="Submit" />
</li>
</ul>
</fieldset>
</form>
</div>
</div><p></p>
</div>
{% endblock %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment