Skip to content
This repository was archived by the owner on Dec 14, 2023. It is now read-only.

Commit 744d932

Browse files
author
Glen Pike
authored
Merge pull request #1425 from CoderDojo/1424-safeguarding-sponsor
1424 safeguarding sponsor Add more explanatory text about these and move fields around so they don't sit within the location / venue stuff.
2 parents 7f86327 + 0f34516 commit 744d932

File tree

3 files changed

+57
-30
lines changed

3 files changed

+57
-30
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"country-language": "^0.1.7",
3939
"cp-i18n-lib": "git+https://github.com/CoderDojo/cp-i18n-lib.git#1.0.0",
4040
"cp-permissions-plugin": "CoderDojo/cp-permissions-plugin#1.0.5",
41-
"cp-translations": "~1.0.152",
41+
"cp-translations": "~1.0.154",
4242
"cp-zen-frontend": "~1.0.144",
4343
"cuid": "1.3.8",
4444
"debug": "2.2.0",

web/public/js/directives/cd-start-dojo/venue/template.dust

Lines changed: 40 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -78,35 +78,6 @@
7878
</div>
7979
</div>
8080
</div>
81-
<div class="cd-simple-flex-grid cd-sad-venue__online">
82-
<div class="cd-simple-flex-grid__flex-1 cd-sad-venue__online">
83-
<div class="checkbox-inline">
84-
<input type="checkbox" id="online_dojo" ng-model="$ctrl.venue.onlineSessions"
85-
name="onlineSessions"
86-
ng-false-value="0"
87-
ng-true-value="1"
88-
ng-checked="$ctrl.venue.onlineSessions == 1">
89-
<label for="online_dojo">{@i18n key="This Dojo will run online (partially or completely)"/}</input>
90-
</div>
91-
<p class="help-block">{@i18n key="Check this box if your club runs online all or some of the time."/}</p>
92-
</div>
93-
</div>
94-
<div class="cd-simple-flex-grid cd-sad-venue__safeguarding">
95-
<div class="cd-simple-flex-grid__flex-1 cd-sad-venue__safeguarding">
96-
<div class="form-group">
97-
<label for="safeguardingSponsorName">{@i18n key="Safeguarding Sponsor's Name"/}</label>
98-
<input type="text" class="form-control" name="safeguardingSponsorName" id="safeguardingSponsorName"
99-
required="required"
100-
placeholder="{@i18n key="Safeguarding Sponsor's Name"/}" ng-model="$ctrl.venue.safeguardingSponsorName">
101-
</div>
102-
<div class="form-group">
103-
<label for="safeguardingSponsorEmail">{@i18n key="Safeguarding Sponsor's Email"/}</label>
104-
<input type="text" class="form-control" name="safeguardingSponsorEmail" id="safeguardingSponsorEmail"
105-
required="required"
106-
placeholder="{@i18n key="Safeguarding Sponsor's Email"/}" ng-model="$ctrl.venue.safeguardingSponsorEmail">
107-
</div>
108-
</div>
109-
</div>
11081
<div ng-show="($ctrl.venue.type === 'other')">
11182
{@i18n key="Other (please detail)"/}
11283
<input type="text" class="form-control" name="alternativeType"
@@ -130,6 +101,46 @@
130101
ng-model="$ctrl.venue.alternativeCorporate"></input>
131102
</div>
132103
</div>
104+
<div class="cd-simple-flex-grid cd-sad-venue__online">
105+
<div class="cd-simple-flex-grid__flex-1 cd-sad-venue__online">
106+
<div class="checkbox-inline">
107+
<input type="checkbox" id="online_dojo" ng-model="$ctrl.venue.onlineSessions"
108+
name="onlineSessions"
109+
ng-false-value="0"
110+
ng-true-value="1"
111+
ng-checked="$ctrl.venue.onlineSessions == 1">
112+
<label for="online_dojo">{@i18n key="This Dojo will run online (partially or completely)"/}</input>
113+
</div>
114+
<p class="help-block">{@i18n key="Check this box if your club runs online all or some of the time."/}</p>
115+
</div>
116+
</div>
117+
<div class="cd-simple-flex-grid cd-sad-venue__safeguarding">
118+
<div class="cd-simple-flex-grid__flex-1 cd-sad-venue__safeguarding">
119+
<h3>{@i18n key="Keeping your Dojo safe"/}</h3>
120+
<p>
121+
{@i18n key="To ensure the safety of young people at Dojos, we require the email address of a safeguarding sponsor."/} &nbsp;
122+
{@i18n key="An appropriate sponsor would be a person holding a manager-level position within a corporate or non-profit organisation."/} &nbsp;
123+
{@i18n key="This sponsor will help ensure that your club operates in accordance with our"/}&nbsp;
124+
<a href="https://www.raspberrypi.org/safeguarding/">{@i18n key="safeguarding policy"/}</a>&nbsp;
125+
{@i18n key="and that all your volunteers have the appropriate background checks."/}
126+
</p>
127+
<p>
128+
{@i18n key="Please fill in the details of your safeguarding sponsor below so that we can contact them."/}
129+
</p>
130+
<div class="form-group">
131+
<label for="safeguardingSponsorName">{@i18n key="Safeguarding Sponsor's Name"/}</label>
132+
<input type="text" class="form-control" name="safeguardingSponsorName" id="safeguardingSponsorName"
133+
required="required"
134+
placeholder="{@i18n key="Safeguarding Sponsor's Name"/}" ng-model="$ctrl.venue.safeguardingSponsorName">
135+
</div>
136+
<div class="form-group">
137+
<label for="safeguardingSponsorEmail">{@i18n key="Safeguarding Sponsor's Email"/}</label>
138+
<input type="text" class="form-control" name="safeguardingSponsorEmail" id="safeguardingSponsorEmail"
139+
required="required"
140+
placeholder="{@i18n key="Safeguarding Sponsor's Email"/}" ng-model="$ctrl.venue.safeguardingSponsorEmail">
141+
</div>
142+
</div>
143+
</div>
133144
<div class="form-group">
134145
<cd-dojo-map model="$ctrl.model" map="$ctrl.gmap"
135146
set-location="$ctrl.setLocation"

web/public/js/directives/dojo/lead/template.dust

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,22 @@
156156
<td ng-bind="$ctrl.dojo.private | boolToString"></td>
157157
</tr>
158158
</tbody>
159+
<thead>
160+
<th colspan="4"><h4>Safeguarding Sponsor</h4></th>
161+
</thead>
162+
<tbody>
163+
<tr>
164+
<td>Name</td>
165+
<td ng-bind="::$ctrl.lead.application.venue.safeguardingSponsorName"></td>
166+
<td></td>
167+
<td></td>
168+
</tr>
169+
<tr>
170+
<td>Email</td>
171+
<td ng-bind="::$ctrl.lead.application.venue.safeguardingSponsorEmail"></td>
172+
<td></td>
173+
<td></td>
174+
</tr>
159175
<thead>
160176
<th colspan="4"><h4>Dojo information</h4></th>
161177
</thead>

0 commit comments

Comments
 (0)