Skip to content

Commit

Permalink
Add Template Modification for displaying checkbox
Browse files Browse the repository at this point in the history
  • Loading branch information
CrazyHackGUT committed Oct 14, 2021
1 parent 4e11afe commit 4b2c15b
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
6 changes: 6 additions & 0 deletions _output/phrases/_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
"version_string": "1.0.0 Alpha 1",
"hash": "418b96b333e785d747ede338392dcd33"
},
"hlmod_forum_rules_accept.i_read_and_accept_forum_rules.txt": {
"global_cache": false,
"version_id": 1000011,
"version_string": "1.0.0 Alpha 1",
"hash": "03aee01a8d127da68e18fb63462bdaa7"
},
"hlmod_forum_rules_accept.label.txt": {
"global_cache": false,
"version_id": 1000011,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I read and accept <a href="{url}" target="_blank">forum rules</a>
3 changes: 3 additions & 0 deletions _output/template_modifications/_metadata.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"admin/hlmod_forum_rules_accept_forum_edit_row.json": {
"hash": "a54324f77cab384754110160be865fbf"
},
"public/hlmod_forum_rules_accept_forum_post_thread_accept.json": {
"hash": "1ef6d0c0408ec4f5e0462339463e088e"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"template": "forum_post_thread",
"description": "Adds the row for accepting forum rules",
"execution_order": 25,
"enabled": true,
"action": "str_replace",
"find": "<xf:captcharow label=\"{{ phrase('verification') }}\" />",
"replace": "$0\n<xf:if is=\"$forum.hlmod_rules_url is not empty\">\n\t<xf:checkboxrow>\n\t\t<xf:option data-xf-init=\"disabler\" data-container=\".formSubmitRow\">\n\t\t\t{{ phrase('hlmod_forum_rules_accept.i_read_and_accept_forum_rules', {'url': $forum.hlmod_rules_url}) }}\n\t\t</xf:option>\n\t</xf:checkboxrow>\n</xf:if>"
}

0 comments on commit 4b2c15b

Please sign in to comment.