Skip to content

Commit 4065115

Browse files
Merge pull request #253 from CodeForPhilly/develop
Release: v3.1.0
2 parents 8301c00 + c27b1c8 commit 4065115

File tree

5 files changed

+52
-14
lines changed

5 files changed

+52
-14
lines changed

.github/workflows/k8s-destroy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Delete PR Deployment
2828
run: |
2929
kubectl config set-context --current --namespace="${KUBE_NAMESPACE}"
30-
kubectl delete deployment,replicaset,ingress,all -l "app.kubernetes.io/instance=${RELEASE_NAME}"
30+
helm uninstall "${RELEASE_NAME}"
3131
kubectl delete secret "${RELEASE_NAME}-tls"
3232
3333
- name: Deactivate Github Deployment

.holo/sources/skeleton-v2.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[holosource]
22
url = "https://github.com/JarvusInnovations/emergence-skeleton-v2"
3-
ref = "refs/tags/v2.8.7"
3+
ref = "refs/tags/v2.10.0"

.vscode/launch.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
{
3+
// Use IntelliSense to learn about possible attributes.
4+
// Hover to view descriptions of existing attributes.
5+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
6+
"version": "0.2.0",
7+
"configurations": [
8+
{
9+
"name": "Listen for XDebug",
10+
"type": "php",
11+
"request": "launch",
12+
"port": 9000,
13+
"pathMappings": {
14+
"/hab/svc/php-runtime/var/site": "${workspaceRoot}"
15+
},
16+
"ignore": [
17+
"**/vendor/**/*.php",
18+
"**/src-compat/File.php"
19+
]
20+
}
21+
]
22+
}

html-templates/contact/contact.tpl

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77

88
{if RemoteSystems\ReCaptcha::$siteKey}
99
<script src='https://www.google.com/recaptcha/api.js'></script>
10+
<script>
11+
function onSubmit(token) {
12+
document.getElementById('contact-form').submit();
13+
}
14+
</script>
1015
{/if}
1116
{/block}
1217

@@ -20,7 +25,7 @@
2025

2126
{contentBlock "contact-introduction"}
2227

23-
<form action="/contact" method="POST" class="contact-form">
28+
<form action="/contact" method="POST" class="contact-form" id="contact-form">
2429
{if $validationErrors}
2530
<div class="alert alert-danger">
2631
{_ "Please double-check the fields highlighted below."}
@@ -31,19 +36,21 @@
3136

3237
{field inputName=Name label=Name error=$validationErrors.Name required=true attribs='autofocus autocapitalize="words"'}
3338
{field inputName=Email label=Email error=$validationErrors.Email type=email required=true}
34-
{field inputName=Phone label=Phone error=$validationErrors.Phone type=tel hint='{_ "Optional. Include your area code."}'}
39+
{field inputName=Phone label=Phone error=$validationErrors.Phone type=tel hint=_("Optional. Include your area code.")}
3540

3641
{textarea inputName=Message label=Message error=$validationErrors.Message required=true}
3742

38-
{if RemoteSystems\ReCaptcha::$siteKey}
39-
<div class="form-group g-recaptcha" data-sitekey="{RemoteSystems\ReCaptcha::$siteKey|escape}"></div>
40-
{/if}
41-
4243
{if $validationErrors.ReCaptcha}
4344
<p class="text-danger">{$validationErrors.ReCaptcha}</p>
4445
{/if}
4546

46-
<button type="submit" class="btn btn-primary">{_ Send}</button>
47+
{if RemoteSystems\ReCaptcha::$siteKey}
48+
<button type="submit" class="btn btn-primary g-recaptcha" data-sitekey="{RemoteSystems\ReCaptcha::$siteKey|escape}" data-callback='onSubmit' data-action='submit'>
49+
{else}
50+
<button type="submit" class="btn btn-primary">
51+
{/if}
52+
{_ "Send"}
53+
</button>
4754
</form>
4855

4956
</div>

html-templates/register/register.tpl

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77

88
{if RemoteSystems\ReCaptcha::$siteKey}
99
<script src='https://www.google.com/recaptcha/api.js'></script>
10+
<script>
11+
function onSubmit(token) {
12+
document.getElementById('register').submit();
13+
}
14+
</script>
1015
{/if}
1116
{/block}
1217

@@ -65,12 +70,16 @@
6570
<input type="password" class="form-control" id="PasswordConfirm" name="PasswordConfirm" value="{refill field=PasswordConfirm}">
6671
</div>
6772

68-
{if RemoteSystems\ReCaptcha::$siteKey}
69-
<div class="form-group g-recaptcha" data-sitekey="{RemoteSystems\ReCaptcha::$siteKey|escape}"></div>
70-
{/if}
71-
7273
<div class="form-group">
73-
<p><button type="submit" class="btn btn-primary">{_ "Create Account"}</button></p>
74+
<p>
75+
{if RemoteSystems\ReCaptcha::$siteKey}
76+
<button type="submit" class="btn btn-primary g-recaptcha" data-sitekey="{RemoteSystems\ReCaptcha::$siteKey|escape}" data-callback='onSubmit' data-action='submit'>
77+
{else}
78+
<button type="submit" class="btn btn-primary">
79+
{/if}
80+
{_ "Create Account"}
81+
</button>
82+
</p>
7483
<p class="help-block">{_ "Already have an account?"} <a href="/login{tif $.request.return ? cat('?return=', escape($.request.return, url))}">{_ "Log in"}</a></p>
7584
</div>
7685
{/strip}

0 commit comments

Comments
 (0)