Skip to content

Commit

Permalink
Merge pull request #129 from rentonsa/LUC023A-14
Browse files Browse the repository at this point in the history
LUC023A-14 Feedback form
  • Loading branch information
rentonsa authored Jun 21, 2018
2 parents d1e4362 + b661ad9 commit 68c9ddb
Showing 1 changed file with 6 additions and 34 deletions.
40 changes: 6 additions & 34 deletions application/views/feedback.php
Original file line number Diff line number Diff line change
@@ -1,40 +1,12 @@
<?php
$email_address = $this->config->item('skylight_adminemail');
?>
<div class="feedback_form">

<h1>Feedback</h1>

<p>Please contact us with your suggestions or questions below.</p>
<?php echo validation_errors(); ?>
<p>Please contact us with your suggestions or questions at <a href="mailto:<?php echo $email_address ?>"><?php echo $email_address ?></a>.</p>

<script src="https://www.google.com/recaptcha/api.js" async defer></script>

<form>
<?php echo form_open($form_prefix.'feedback'); ?>
<div class="form-group">
<label for="name">Name:</label>
<input type="text" class="form-control" id="name" value="<?php echo set_value('name'); ?>">
</div>
<div class="form-group">
<label for="email">Email address:</label>
<input type="email" class="form-control" id="email" value="<?php echo set_value('email'); ?>">
</div>
<div class="form-group">
<label for="feedback">Message:</label>
<textarea type="text" id="feedback" name="feedback" rows="15" cols="80" /><?php echo set_value('feedback'); ?></textarea>
</div>

<div class="form-group">
<div class="g-recaptcha" data-sitekey="6Lftij0UAAAAAKGve8mTK0JDHl5jnazeBYlEc8Sx"></div>
<!--<div class="g-recaptcha" data-sitekey="6LdICVoUAAAAAJJHzP3XW7Y7yc9PtjeD5IcCUPC_"></div>-->
<div id="html_element"></div>

<button type="submit" class="btn btn-custom">Submit</button>
<script src="https://www.google.com/recaptcha/api.js?onload=onloadCallback&render=explicit"
async defer>
</script>
</div>
</form>
<br>
<br>

<h3>Privacy Statement </h3>
<p>Information about you: how we use it and with whom we share it
Expand All @@ -50,9 +22,9 @@
We will hold the personal data you provided us for 6 years. We do not use profiling or automated decision-making processes.
</p>
<p>
If you have any questions, please contact: CRC Services Manager [email protected]
If you have any questions, please contact: <a href="mailto:<?php echo $email_address ?>"><?php echo $email_address ?></a>
</p>
<p><a href="https://www.ed.ac.uk/records-management/notice" target="_blank">Continued privacy statement</a></p>
<p><a href="https://www.ed.ac.uk/records-management/notice" target="_blank">University privacy statement</a></p>


</div>

0 comments on commit 68c9ddb

Please sign in to comment.