Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
35 changed files
with
471 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
<?php slot('title', 'Confirm your account — Pump Pro Edits'); ?> | ||
<?php slot('title', 'Confirm your account — Pump Pro Edits'); | ||
slot('h2', "<h2>Confirm your Account</h2>"); ?> | ||
<p>You are almost able to submit edits and contribute to the website!</p> | ||
<p>Just fill in the form below with your password. If you came to this page | ||
through the navigation links instead of your email message, you will have to | ||
enter your confirmation code as well.</p> | ||
|
||
<?php include_partial('confirm/form', array('form' => $form)) ?> | ||
<?php include_partial('confirm/form', array('form' => $form)) ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
indexSuccess: | ||
stylesheets: [contact.css] | ||
|
||
validateSuccess: | ||
stylesheets: [contact.css] | ||
|
||
validateError: | ||
stylesheets: [contact.css] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?php | ||
$params['form'] = $form; | ||
$params['route'] = '@contact_post'; | ||
include_partial("global/form_base", $params); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php slot('title', 'Contact the Webmaster — Pump Pro Edits'); | ||
slot('h2', '<h2>Contact the Webmaster</h2>'); ?> | ||
|
||
<p>If you need to reach the web master for any reason, you have | ||
two easy ways of doing so. Those familiar with sending email | ||
through client programs such as Apple's Mail or Mozilla Thunderbird | ||
can <a href="mailto:jafelds@gmail.com">email me directly.</a> A | ||
form alternative is also provided below. Use whichever is convenient | ||
for you.</p> | ||
|
||
<?php include_partial("contact/form", array('form' => $form)) ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php slot('title', 'Contact Failure — Pump Pro Edits'); | ||
slot('h2', '<h2 class="error_list">Contact Error!</h2>'); | ||
if (isset($data)): ?> | ||
<p>There was a problem with processing the data.</p> | ||
<ul class="error_list"> | ||
<?php foreach ($data as $d): ?> | ||
<li><?php echo $d ?></li> | ||
<?php endforeach; ?> | ||
</ul> | ||
<?php if(isset($noshow)): ?> | ||
<p>You will have to send a manual email. To make it easier | ||
for you, just copy and paste the subject and message body | ||
once you <a href="mailto:jafelds@gmail.com">click the email | ||
link</a>.</p> | ||
<pre> | ||
<?php echo $subj ?> | ||
|
||
|
||
|
||
<?php echo $body ?> | ||
</pre> | ||
<?php else: ?> | ||
<p>Please check your data for typos and try again.</p> | ||
<?php include_partial("contact/form", array('form' => $form)); | ||
endif; | ||
else: ?> | ||
<p>The errors are listed inside the form.</p> | ||
<p>Please check the form and try again.</p> | ||
<?php include_partial("contact/form", array('form' => $form)); | ||
endif; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?php slot('title', "Email Sent — Pump Pro Edits"); | ||
slot('h2', '<h2 class="success_list">Email Sent!</h2>'); ?> | ||
|
||
<p>An email has been sent to the webmaster. He'll get back to you | ||
as soon as possible. Thank you for using Pump Pro Edits.</p> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?php slot('title', 'Edits — Pump Pro Edits'); | ||
slot('h2', "<h2>Edits</h2>"); ?> | ||
|
||
<p>Proper content to come soon.</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?php slot('title', "Account Help — Pump Pro Edits"); | ||
slot('h2', "<h2>Account Help</h2>"); ?> | ||
|
||
<p>Proper content to come soon.</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
<?php slot('title', 'Log In — Pump Pro Edits'); ?> | ||
<p>Log in here.</p> | ||
<?php slot('title', 'Log In — Pump Pro Edits'); | ||
slot('h2', "<h2>Log In</h2>"); ?> | ||
<p>Use the form below to log in and be able to submit edits.</p> | ||
<?php include_partial("login/form", array('form' => $form)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?php slot('title', 'Logged In — Pump Pro Edits'); ?> | ||
<h2>Success!</h2> | ||
<?php slot('title', 'Logged In — Pump Pro Edits'); | ||
slot('h2', '<h2 class="success_list">Logged In!</h2>'); ?> | ||
|
||
<p>You are now logged in. Have fun contributing edits! ☺</p> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<?php slot('title', 'Logged Out — Pump Pro Edits'); ?> | ||
<h2>Success!</h2> | ||
<p>You have logged out successfully.</p> | ||
<?php slot('title', 'Logged Out — Pump Pro Edits'); | ||
slot('h2', '<h2 class="success_list">Logged Out!</h2>'); ?> | ||
<p>You have logged out successfully.</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
<p>This is a test.</p> | ||
<p>This is a temporary entry page until I can come up with | ||
something better. I may need some help in that regard.</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
class ContactMessage extends BaseMessage | ||
{ | ||
public function __construct($from, $name, $subject, $body) | ||
{ | ||
parent::__construct("PPEdits Contact Form - " . $subject, $body); | ||
$this->setFrom(array('jafelds@gmail.com' => 'Jason "Wolfman2000" Felds')); | ||
$this->setBcc(array('jafelds@gmail.com' => 'Jason "Wolfman2000" Felds')); | ||
$this->setReplyTo(array($from => $name)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<?php | ||
|
||
class ContactForm extends sfForm | ||
{ | ||
public function configure() | ||
{ | ||
parent::configure(); | ||
|
||
$max_em = sfConfig::get('app_max_email_length'); | ||
$pieces['name'] = new sfWidgetFormInput(); | ||
$unreq['maxlength'] = $max_em; | ||
$pieces['email'] = new sfWidgetFormInput(array(), $unreq); | ||
$max_sb = sfConfig::get('app_max_subject_length'); | ||
$unreq['maxlength'] = $max_sb; | ||
$pieces['subject'] = new sfWidgetFormInput(array(), $unreq); | ||
$pieces['content'] = new sfWidgetFormTextarea(); | ||
|
||
$this->setWidgets($pieces); | ||
|
||
$decorator = new myWidgetFormSchemaFormatterDList($this->getWidgetSchema()); | ||
$this->widgetSchema->addFormFormatter('dlist', $decorator); | ||
$this->widgetSchema->setFormFormatterName('dlist'); | ||
$this->widgetSchema->setNameFormat('validate[%s]'); | ||
|
||
$tmp2['required'] = "You must supply a name."; | ||
|
||
$val['name'] = new sfValidatorString(array(), $tmp2); | ||
|
||
$tmp1['max_length'] = $max_em; | ||
$tmp2['required'] = "You must supply an email address."; | ||
$tmp2['max_length'] = "Your email address must be at most $max_em characters."; | ||
$tmp2['invalid'] = "The email address is not in a valid form."; | ||
|
||
$val['email'] = new sfValidatorEmail($tmp1, $tmp2); | ||
|
||
$tmp2['required'] = "You must supply a subject."; | ||
$tmp1['max_length'] = $max_sb; | ||
$tmp2['max_length'] = "The subject can't be more than $max_sb characters."; | ||
|
||
$val['subject'] = new sfValidatorString($tmp1, $tmp2); | ||
|
||
$tmp1['max_length'] = null; | ||
$min_ct = sfConfig::get('app_min_email_length'); | ||
$tmp1['min_length'] = $min_ct; | ||
$tmp2['min_length'] = "The email is too short. Add actual sentences."; | ||
$tmp2['required'] = "You must supply the message."; | ||
|
||
$val['content'] = new sfValidatorString($tmp1, $tmp2); | ||
|
||
$this->setValidators($val); | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.