-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Mustache templates as a separate type (modelled on Latte) (#4915)
* Update languages.yml * Create csvrow.mustache * Rename samples/csvrow.mustache to samples/Mustache/csvrow.mustache * Added sample file * Create pupilinfoblock.mustache * Create showallusers.mustache * Updated Vendor README with Mustache Co-authored-by: Colin Seymour <colin@github.com>
- Loading branch information
1 parent
1fa9432
commit da27b51
Showing
6 changed files
with
48 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{{knownas}} {{familyname}},{{groupdisplay}},{{homelocationdisplay}},{{currentlocationdisplay}},{{statuschangetime}},{{setbydisplay}},{{confirmedtime}},{{confirmedby}},{{pupilid}} |
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,20 @@ | ||
<div class='container pt-2'><h2>Delete user: {{usernamedisplay}}</h2> | ||
{{#error}}<div class='alert alert-danger'>{{.}}</div>{{/error}} | ||
{{#info}}<div class='alert alert-info'>{{.}}</div>{{/info}} | ||
<h3>Permanently delete {{usernamedisplay}}</h3> | ||
<form method="post" action="deleteuser.php"> | ||
<input type="hidden" name="deleteuser" value="{{deleteuser}}"> | ||
<input type="hidden" name="usertype" value="{{usertype}}"> | ||
<input type="hidden" name="makechanges" value="change"> | ||
{{#eplocation}}<input type='hidden' name='eplocation' value='{{.}}'>{{/eplocation}} | ||
{{#eppupilgroup}}<input type='hidden' name='eppupilgroup' value='{{.}}'>{{/eppupilgroup}} | ||
<div class="form-check mb-2"> | ||
<label class="form-check-label"> | ||
<input type="checkbox" class="form-check-input required check" name="understood" value="yes"> | ||
* I understand that this will permanently delete the user and any user history. | ||
</label> | ||
</div> | ||
<button type="submit" disabled class="btn btn-danger">Submit</button> | ||
<a href="{{returntourl}}" class="btn btn-light">Cancel</a> | ||
</form> | ||
</div> |
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 @@ | ||
<div class='container-fluid text-center border-top mt-2'> | ||
<p><i>Logged in as </i>{{familyname}}, {{knownas}}</p> | ||
|
||
<p>{{YourCurrentLocation}}: {{PrettyCurrentLocation}}</p> | ||
<p>{{YourHomeLocation}}: {{PrettyHomeLocation}}</p> | ||
<p><a href='setpassword.php'>Change password</a></p> | ||
<p><a href='logout.php'>Log out</a></p> | ||
</div> |
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 @@ | ||
<div class='container-fluid text-center border-top mt-2'> | ||
<p><i>Logged in as </i>{{familyname}}, {{knownas}}</p> | ||
|
||
<p>{{YourCurrentLocation}}: {{PrettyCurrentLocation}}</p> | ||
<p>{{YourHomeLocation}}: {{PrettyHomeLocation}}</p> | ||
<p><a href='setpassword.php'>Change password</a></p> | ||
<p><a href='logout.php'>Log out</a></p> | ||
</div> |
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