Commit 06dfef72 authored by Tobias Buckdahn's avatar Tobias Buckdahn

Added form to propose techniques, linked in menu

parent d3b19ce4
......@@ -135,7 +135,7 @@ media:
auto_metadata_exif: false
upload_limit: 52428800
session:
enabled: false
enabled: true
initialize: true
timeout: 1800
name: brickcamp
......
......@@ -5,14 +5,11 @@ icon: icon.png
content:
items:
# - '@page.descendants': '/techs/rotations'
# - '@page.descendants': '/techs/offsets'
# - '@page.descendants': '/techs/patterns'
# - '@page.descendants': '/techs/shapes'
- '@page.self': '/parts'
- '@page.descendants': '/techs/order-by/part-count'
# - '@page.descendants': '/techs/volume'
- '@page.descendants': '/techs/order-by/volume'
- '@page.descendants': '/techs/order-by/date'
- '@page.self': '/techs/add'
filter:
published: true
---
---
title: Propose Tech
icon: icon.png
image: image.png
form:
name: propose_tech
fields:
-
id: propose_tech_title
name: title
label: 'Title'
placeholder: 'Brick 2 x 4 with Magic'
type: text
validate:
required: true
-
id: propose_tech_email
name: email
type: honeypot
-
id: propose_tech_source
name: source
label: 'Source URL'
placeholder: 'https://example.com/all-about-magic-brick-2x4'
type: url
validate:
required: true
-
id: propose_tech_function
name: function
type: checkboxes
label: 'Function'
options:
rotation: 'Rotation'
offset: 'Offset'
pattern: 'Pattern'
shape: 'Shape'
else: 'Something else (see Comment)'
validate:
required: true
-
id: propose_tech_comment
name: comment
label: 'Comment'
placeholder: 'Add details or explanation if needed.'
type: textarea
-
name: image
label: 'Image'
type: file
multiple: true
accept:
- 'image/*'
destination: 'user/data/files'
avoid_overwriting: true
validate:
required: false
-
id: propose_tech_name
name: name
type: honeypot
-
id: propose_tech_person
name: person
label: 'E-Mail'
placeholder: 'me@example.com'
type: email
description: "Optional. If questions arise, help is needed ... or just to Thank You."
buttons:
-
type: submit
value: Submit Proposal
process:
- email:
subject: "[Brick.Camp] Proposed Tech named \"{{ form.value.title|e }}\""
body: "{% include 'partials/mail/add.html.twig' %}"
attachments:
- image
- message: "Thanks for your proposal!"
- reset: true
---
In case you find an interesting technique missing on this site, please submit it here.
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="800"
height="800"
viewBox="0 0 211.66666 211.66666"
version="1.1"
id="svg8"
inkscape:export-filename="/home/bucki/Dokumente/Coding/Brick.Camp/user/pages/21.tech/00.drafts/icon.png"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96"
inkscape:version="0.92.4 (unknown)"
sodipodi:docname="icon.svg">
<defs
id="defs2" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="0.49497475"
inkscape:cx="22.884735"
inkscape:cy="459.11887"
inkscape:document-units="mm"
inkscape:current-layer="g836"
showgrid="false"
units="px"
width="200px"
inkscape:window-width="1920"
inkscape:window-height="1053"
inkscape:window-x="0"
inkscape:window-y="27"
inkscape:window-maximized="1" />
<metadata
id="metadata5">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Ebene 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-85.333307)">
<g
id="g826"
transform="translate(38.481003,-23.499847)">
<g
id="g836"
transform="matrix(2.8603515,0,0,2.8603515,-157.66503,23.682073)">
<path
inkscape:connector-curvature="0"
id="path830"
d="m 68.958841,95.797081 c -0.03124,-0.0312 -0.0568,-4.35559 -0.0568,-9.60966 v -9.552867 l -9.630834,-0.02153 -9.630833,-0.02153 -0.02153,-9.685224 c -0.01575,-7.086772 0.0041,-9.716062 0.07387,-9.800167 0.07932,-0.09557 1.706143,-0.114942 9.65236,-0.114942 h 9.556967 v -9.556967 c 0,-7.946218 0.01937,-9.573044 0.114943,-9.65236 0.0841,-0.0698 2.713394,-0.08962 9.800166,-0.07387 l 9.685224,0.02153 0.02153,9.630472 0.02153,9.630472 9.58814,0.02153 9.588126,0.02153 v 9.779 9.779 l -9.588126,0.02153 -9.588137,0.02153 -0.02153,9.588133 -0.02153,9.58814 -9.743368,0.0215 c -5.358852,0.0118 -9.768927,-0.004 -9.800166,-0.0353 z"
style="fill:#c9b58b;stroke-width:0.69921476;stroke:#716241;stroke-opacity:1;stroke-miterlimit:4;stroke-dasharray:none" />
<path
inkscape:connector-curvature="0"
id="path828"
d="m 69.026145,95.662671 c -0.02195,-0.0582 -0.04933,-4.37304 -0.06084,-9.5885 L 68.944375,76.5915 59.334708,76.54917 49.725042,76.50684 v -9.694333 -9.694333 l 9.609666,-0.04233 9.609667,-0.04233 0.04233,-9.609667 0.04233,-9.609667 h 9.694333 9.694334 l 0.04233,9.609667 0.04233,9.609667 9.567332,0.04233 9.567326,0.04233 0.0215,9.715138 0.0215,9.715138 -9.588856,0.02153 -9.588852,0.02153 -0.02153,9.588501 -0.02153,9.5885 h -9.696629 c -7.67957,0 -9.704932,-0.022 -9.736544,-0.10583 z m 19.179897,-9.757837 0.04233,-9.567334 9.567332,-0.04233 9.567326,-0.04233 V 66.812507 57.372174 L 97.794894,57.350644 88.20676,57.329114 88.18523,47.698642 88.1637,38.06817 h -9.440334 -9.440333 l -0.04233,9.609667 -0.04233,9.609667 -9.609667,0.04233 -9.609666,0.04233 v 9.440333 9.440333 l 9.609666,0.04233 9.609667,0.04233 0.02093,9.482667 c 0.01151,5.215464 0.03895,9.530454 0.06098,9.588864 0.03186,0.0845 1.968883,0.1018 9.461739,0.0847 l 9.421683,-0.0215 z m -10.710333,5.846847 c -0.998507,-0.24775 -1.175323,-0.32181 -1.905,-0.79793 -0.442384,-0.28866 -0.891871,-0.54721 -0.998862,-0.57457 -0.13037,-0.0333 -0.407177,-0.37448 -0.839278,-1.03437 -0.614579,-0.93857 -0.653843,-1.02822 -0.839108,-1.91598 -0.243518,-1.16688 -0.245458,-1.455675 -0.01763,-2.624695 0.181357,-0.930562 0.192852,-0.956432 0.867833,-1.953178 0.675243,-0.997131 0.697035,-1.018923 1.694167,-1.694166 0.996745,-0.674981 1.022615,-0.686477 1.953178,-0.867833 1.169019,-0.227831 1.457813,-0.225891 2.624697,0.01763 0.889217,0.185571 0.976321,0.223818 1.926166,0.845753 0.547159,0.358266 0.994834,0.701126 0.994834,0.761912 0,0.06078 0.253399,0.507283 0.563111,0.992218 0.523427,0.819563 0.582638,0.962435 0.840186,2.027336 l 0.277074,1.145633 -0.275503,1.14036 c -0.253083,1.04757 -0.323473,1.21931 -0.864978,2.11041 l -0.589474,0.97004 -0.970042,0.58947 c -0.888279,0.53979 -1.066381,0.61301 -2.113041,0.86862 -0.62865,0.15352 -1.16205,0.27628 -1.185333,0.27278 -0.02328,-0.003 -0.537634,-0.12924 -1.143,-0.27944 z m 2.343888,-0.37561 c 0.936694,-0.21897 1.132708,-0.29915 1.926757,-0.78819 l 0.883978,-0.54442 0.544674,-0.88398 c 0.496137,-0.80521 0.56734,-0.98147 0.799034,-1.97804 l 0.254359,-1.09405 -0.233102,-1.022614 c -0.260571,-1.143108 -0.286337,-1.204 -0.934861,-2.209294 -0.254316,-0.394223 -0.462394,-0.749498 -0.462394,-0.789501 0,-0.0771 -1.229383,-0.918987 -1.653786,-1.132516 -0.138167,-0.06952 -0.70417,-0.214114 -1.257783,-0.321326 l -1.00657,-0.194932 -1.067763,0.202077 c -1.047268,0.198197 -1.084017,0.212862 -1.914431,0.763934 -0.990548,0.657339 -1.130459,0.798906 -1.792006,1.813223 -0.474889,0.728122 -0.506818,0.811631 -0.699609,1.829764 l -0.202011,1.066825 0.194932,1.00657 c 0.107212,0.55361 0.251809,1.11961 0.321326,1.25778 0.213529,0.4244 1.055415,1.65379 1.132517,1.65379 0.04,0 0.391826,0.20585 0.781832,0.45744 0.390005,0.2516 0.799232,0.50643 0.909393,0.5663 0.217737,0.11832 1.947782,0.56169 2.247847,0.57607 0.101688,0.005 0.654138,-0.10084 1.227667,-0.23491 z M 58.191708,72.447677 c -0.998506,-0.247746 -1.175322,-0.321808 -1.905,-0.797927 -0.442383,-0.288659 -0.891871,-0.547213 -0.998861,-0.574565 -0.13037,-0.03333 -0.407178,-0.374482 -0.839278,-1.034375 -0.614579,-0.93857 -0.653843,-1.028222 -0.839109,-1.915977 -0.243517,-1.166883 -0.245457,-1.455677 -0.01763,-2.624697 0.181356,-0.930562 0.192852,-0.956433 0.867833,-1.953178 0.675243,-0.997131 0.697035,-1.018923 1.694166,-1.694166 0.996746,-0.674981 1.022616,-0.686477 1.953178,-0.867834 1.16902,-0.22783 1.457814,-0.22589 2.624698,0.01763 0.889217,0.185571 0.97632,0.223817 1.926166,0.845753 0.547159,0.358266 0.994834,0.701126 0.994834,0.761911 0,0.06079 0.253399,0.507283 0.563111,0.992218 0.523427,0.819564 0.582638,0.962436 0.840186,2.027337 l 0.277074,1.145637 -0.275503,1.140363 c -0.253083,1.047562 -0.323474,1.219303 -0.864978,2.110404 l -0.589475,0.970041 -0.970041,0.589475 c -0.888279,0.53979 -1.066381,0.613003 -2.113041,0.868614 -0.62865,0.153527 -1.16205,0.276281 -1.185334,0.272787 -0.02328,-0.0035 -0.537633,-0.129247 -1.143,-0.279448 z m 2.343889,-0.375608 c 0.936693,-0.218966 1.132708,-0.29915 1.926757,-0.788189 l 0.883978,-0.544423 0.544673,-0.883979 c 0.496138,-0.805206 0.567341,-0.981471 0.799034,-1.978035 l 0.25436,-1.094056 -0.233102,-1.02261 c -0.260571,-1.143108 -0.286337,-1.204 -0.934861,-2.209294 -0.254316,-0.394223 -0.462394,-0.749498 -0.462394,-0.789501 0,-0.0771 -1.229383,-0.918987 -1.653786,-1.132516 -0.138167,-0.06952 -0.704171,-0.214114 -1.257783,-0.321326 l -1.00657,-0.194932 -1.067763,0.202077 c -1.047268,0.198197 -1.084017,0.212862 -1.914432,0.763933 -0.990547,0.65734 -1.130458,0.798907 -1.792005,1.813224 -0.474889,0.728122 -0.506818,0.811631 -0.699609,1.829764 l -0.202011,1.066822 0.194932,1.00657 c 0.107212,0.553612 0.251809,1.119616 0.321326,1.257783 0.213529,0.424403 1.055415,1.653786 1.132516,1.653786 0.04,0 0.391827,0.205851 0.781833,0.457447 0.390005,0.251595 0.799232,0.506428 0.909393,0.566294 0.217737,0.118327 1.947782,0.561696 2.247847,0.576069 0.101688,0.0049 0.654138,-0.100838 1.227667,-0.234908 z m 16.960112,0.377246 c -0.996489,-0.248729 -1.176798,-0.324407 -1.905,-0.799565 -0.442384,-0.288659 -0.891871,-0.547213 -0.998862,-0.574565 -0.13037,-0.03333 -0.407177,-0.374482 -0.839278,-1.034375 -0.614579,-0.93857 -0.653843,-1.028222 -0.839108,-1.915977 -0.243518,-1.166883 -0.245458,-1.455677 -0.01763,-2.624697 0.181357,-0.930562 0.192852,-0.956433 0.867833,-1.953178 0.675243,-0.997131 0.697035,-1.018923 1.694167,-1.694166 0.996745,-0.674981 1.022615,-0.686477 1.953178,-0.867834 1.170329,-0.228086 1.459143,-0.225983 2.624697,0.0191 0.900174,0.189283 0.9632,0.217633 1.883833,0.847415 0.523875,0.358368 0.9525,0.699382 0.9525,0.757808 0,0.05843 0.272204,0.504176 0.604899,0.990557 0.58431,0.854228 0.614348,0.923321 0.882519,2.029965 l 0.27762,1.145637 -0.275127,1.140363 c -0.264719,1.097224 -0.299288,1.177195 -0.91382,2.114029 l -0.638694,0.973667 -0.963532,0.604306 c -0.879403,0.551542 -1.048545,0.623981 -1.937198,0.829647 -0.535517,0.123937 -1.049867,0.239123 -1.143,0.255967 -0.09313,0.01685 -0.664634,-0.093 -1.27,-0.244105 z m 2.343888,-0.37492 c 0.960788,-0.222455 1.109349,-0.284528 1.889445,-0.789461 0.820944,-0.531373 0.86495,-0.576127 1.448482,-1.473061 0.572674,-0.880247 0.613141,-0.975888 0.835708,-1.975116 l 0.233892,-1.050078 -0.240568,-1.062598 c -0.233742,-1.032447 -0.259916,-1.092272 -0.922423,-2.10838 -0.664898,-1.019775 -0.701852,-1.058876 -1.485955,-1.572292 -0.776014,-0.508121 -0.84121,-0.533538 -1.866587,-0.7277 l -1.062487,-0.20119 -1.052364,0.202134 c -1.026077,0.197084 -1.073514,0.21615 -1.899031,0.763278 -0.99033,0.656362 -1.130265,0.797897 -1.792006,1.812511 -0.474889,0.728122 -0.506818,0.811631 -0.699609,1.829764 l -0.202011,1.066822 0.194932,1.00657 c 0.107212,0.553612 0.251809,1.119616 0.321326,1.257783 0.213529,0.424403 1.055415,1.653786 1.132517,1.653786 0.04,0 0.391826,0.205851 0.781832,0.457447 0.390005,0.251595 0.799232,0.506428 0.909393,0.566294 0.217737,0.118327 1.947782,0.561696 2.247847,0.576069 0.101688,0.0049 0.654138,-0.09979 1.227667,-0.232582 z m 16.960117,0.37492 C 95.80322,72.200586 95.622912,72.124908 94.894709,71.64975 94.452325,71.361091 94.002838,71.102537 93.895847,71.075185 93.765477,71.041855 93.48867,70.700703 93.056569,70.04081 92.44199,69.10224 92.402727,69.012588 92.217461,68.124833 c -0.243518,-1.166883 -0.245457,-1.455677 -0.01763,-2.624697 0.181357,-0.930562 0.192852,-0.956433 0.867833,-1.953178 0.675243,-0.997131 0.697036,-1.018923 1.694167,-1.694166 0.996745,-0.674981 1.022616,-0.686477 1.953183,-0.867834 1.17032,-0.228086 1.45914,-0.225983 2.62469,0.0191 0.900176,0.189283 0.963196,0.217633 1.883826,0.847415 0.52388,0.358368 0.9525,0.699382 0.9525,0.757808 0,0.05843 0.27222,0.504176 0.60492,0.990557 0.60435,0.883498 0.60514,0.8854 0.83939,2.027328 l 0.23448,1.143 -0.23283,1.143 c -0.23229,1.140361 -0.2343,1.145248 -0.87069,2.116666 l -0.63787,0.973667 -0.96353,0.604306 c -0.8794,0.551542 -1.04855,0.623981 -1.937196,0.829647 -0.53552,0.123937 -1.04987,0.239123 -1.143,0.255967 -0.0931,0.01685 -0.66463,-0.093 -1.27,-0.244105 z m 2.34388,-0.37492 c 0.960786,-0.222455 1.109346,-0.284528 1.889436,-0.789461 0.82112,-0.531483 0.86482,-0.575941 1.44813,-1.473061 0.59655,-0.917482 0.60305,-0.933734 0.79582,-1.989342 l 0.19437,-1.064302 -0.20254,-1.051222 c -0.20248,-1.050899 -0.20275,-1.05154 -0.88254,-2.094155 -0.6628,-1.016553 -0.70034,-1.056252 -1.4841,-1.569443 -0.77601,-0.508121 -0.84121,-0.533538 -1.866586,-0.7277 l -1.06248,-0.20119 -1.05236,0.202134 c -1.026081,0.197084 -1.073518,0.21615 -1.899035,0.763278 -0.99033,0.656362 -1.130265,0.797897 -1.792006,1.812511 -0.474888,0.728122 -0.506818,0.811631 -0.699609,1.829764 l -0.20201,1.066822 0.194931,1.00657 c 0.107213,0.553612 0.251809,1.119616 0.321326,1.257783 0.21353,0.424403 1.055415,1.653786 1.132517,1.653786 0.04,0 0.391826,0.205851 0.781832,0.457447 0.390005,0.251595 0.799232,0.506428 0.909393,0.566294 0.217737,0.118327 1.947781,0.561696 2.247841,0.576069 0.10169,0.0049 0.65414,-0.09979 1.22767,-0.232582 z M 77.495709,53.143677 c -0.998507,-0.247747 -1.175323,-0.321808 -1.905,-0.797927 -0.442384,-0.288659 -0.891871,-0.547213 -0.998862,-0.574565 -0.13037,-0.03333 -0.407177,-0.374482 -0.839278,-1.034375 -0.614579,-0.93857 -0.653843,-1.028222 -0.839108,-1.915977 -0.243518,-1.166883 -0.245458,-1.455677 -0.01763,-2.624697 0.181357,-0.930562 0.192852,-0.956433 0.867833,-1.953178 0.675243,-0.997131 0.697035,-1.018923 1.694167,-1.694166 0.996745,-0.674982 1.022615,-0.686477 1.953178,-0.867834 1.169019,-0.22783 1.457813,-0.22589 2.624697,0.01763 0.889217,0.185571 0.976321,0.223817 1.926166,0.845752 0.547159,0.358266 0.994834,0.701127 0.994834,0.761912 0,0.06079 0.253399,0.507283 0.563111,0.992218 0.523427,0.819563 0.582638,0.962436 0.840186,2.027337 l 0.277074,1.145637 -0.275503,1.140363 c -0.253083,1.047562 -0.323473,1.219302 -0.864978,2.110404 l -0.589474,0.970041 -0.970042,0.589475 c -0.888279,0.53979 -1.066381,0.613003 -2.113041,0.868614 -0.62865,0.153527 -1.16205,0.276281 -1.185333,0.272786 -0.02328,-0.0035 -0.537634,-0.129246 -1.143,-0.279447 z m 2.343888,-0.375608 c 0.936694,-0.218966 1.132708,-0.299151 1.926757,-0.788189 l 0.883978,-0.544423 0.544674,-0.883979 c 0.496137,-0.805206 0.56734,-0.981471 0.799034,-1.978035 l 0.254359,-1.094057 -0.233102,-1.02261 c -0.260571,-1.143107 -0.286337,-1.203999 -0.934861,-2.209293 -0.254316,-0.394224 -0.462394,-0.749498 -0.462394,-0.789501 0,-0.0771 -1.229383,-0.918987 -1.653786,-1.132516 -0.138167,-0.06952 -0.70417,-0.214114 -1.257783,-0.321327 l -1.00657,-0.194931 -1.067763,0.202076 c -1.047268,0.198198 -1.084017,0.212863 -1.914431,0.763934 -0.990548,0.65734 -1.130459,0.798906 -1.792006,1.813224 -0.474889,0.728122 -0.506818,0.811631 -0.699609,1.829764 l -0.202011,1.066822 0.194932,1.00657 c 0.107212,0.553612 0.251809,1.119615 0.321326,1.257783 0.213529,0.424403 1.055415,1.653786 1.132517,1.653786 0.04,0 0.391826,0.20585 0.781832,0.457447 0.390005,0.251595 0.799232,0.506428 0.909393,0.566294 0.217737,0.118327 1.947782,0.561696 2.247847,0.576069 0.101688,0.0049 0.654138,-0.100838 1.227667,-0.234908 z"
style="fill:#9c8d70;stroke-width:0.69921476;stroke-miterlimit:4;stroke-dasharray:none;stroke:#716241;stroke-opacity:1" />
</g>
</g>
</g>
</svg>
---
title: Support Us
image: image.png
sitemap:
ignore: true
pageconfig:
parent: /tech/drafts
pagefrontmatter:
visible: true
status: draft
template: tech
form:
name: addpage-tech
fields:
-
name: title
label: Title
type: text
validate:
required: true
-
name: image
label: 'Image to upload'
type: file
multiple: false
accept:
- 'image/*'
destination: '@self'
-
name: taxonomy.part
label: 'Part IDs (comma separated)'
type: text
-
name: email
type: honeypot
buttons:
-
type: submit
value: Submit
process:
-
addpage: null
-
redirect: '@self'
---
\ No newline at end of file
---
title: Support
image: image.png
sitemap:
ignore: true
form:
name: addpage-tech
fields:
-
name: title
label: Title
type: text
validate:
required: true
-
name: image
label: 'Image to upload'
type: file
multiple: false
accept:
- 'image/*'
destination: '@self'
-
name: taxonomy.part
label: 'Parts'
description: 'Coma-seperated list of part IDs'
type: text
-
name: email
type: honeypot
buttons:
-
type: submit
value: Submit
process:
-
redirect: '@self'
---
\ No newline at end of file
......@@ -8,15 +8,17 @@ menu-items:
- '@page.self': '/techs/offsets'
- '@page.self': '/techs/patterns'
- '@page.self': '/techs/shapes'
- '@page.self': '/techs/add'
- '@page.self': '/techs/more'
order:
by: default
dir: asc
# custom:
# - techs/parts
# - techs/rotations
# - techs/patterns
# - techs/shapes
# - techs/offsets
custom:
- 'rotations'
- 'offsets'
- 'patterns'
- 'shapes'
- 'add'
- 'more'
url_taxonomy_filters: false
---
......@@ -33,7 +33,8 @@ html {
text-decoration: underline;
}
#header .navbar-nav .nav-item:last-child .d-none {
#header .navbar-nav .nav-item:nth-last-child(1) .d-none,
#header .navbar-nav .nav-item:nth-last-child(2) .d-none {
display: none !important;
}
......@@ -266,4 +267,11 @@ form .dropzone .dz-preview .dz-error-message::after{
.dz-success-mark svg #Oval-2{
fill:green;
}
.form-description {
display: block;
margin-top: .25rem;
font-size: 80%;
/* color: #6c757d; */
}
\ No newline at end of file
......@@ -10,7 +10,7 @@
<div class="container">
<a class="navbar-brand mr-1" href="{{ base_url == '' ? '/' : base_url }}" alt="{{ config.site.title }}">
<img src="{{ media['theme://images/logo_icon.svg'].url }}" class="img-fluid" title="Home" alt="{{ config.site.title }}" width="32px" height="32px">
<span class="brand-text">{{ config.site.title }}</span>
<span class="brand-text d-none d-lg-inline">{{ config.site.title }}</span>
</a>
<div class="collapse navbar-collapse">
......
Hi BrickCamp,<br/>
<br/>
I want to submit the following entry to the website: <br/>
<br/>
{% include 'partials/mail/data.html.twig' %}
<br/>
This message was sent via <a href="https://brick.camp/">a form on BrickCamp</a>.<br/>
<br/>
Greetings<br/>
The BrickCamp Form Bot
\ No newline at end of file
{% macro render_field(form, fields, scope) %}
{% import _self as self %}
{% for index, field in fields %}
{% set input = attribute(field, "input@") %}
{% if input is null or input == true %}
{% if form.value(scope ~ field.name) %}
{% block field %}
<div>
{% block field_label %}
<strong>{{ field.label|t|e }}</strong>:
{% endblock %}
{% block field_value %}
{% if field.type == 'checkboxes' %}
{% set use_keys = field.use is defined and field.use == 'keys' %}
{% for key,value in form.value(scope ~ field.name) %}
{% set index = (use_keys ? key : value) %}
{{ field.options[index]|e ~ ', ' }}
{% endfor %}
{% elseif field.type == 'checkbox' %}
{{ (form.value(scope ~ field.name) == 1) ? "PLUGIN_FORM.YES"|t|e : "PLUGIN_FORM.NO"|t|e }}
{% elseif field.type == 'select' %}
{{ field.options[form.value(scope ~ field.name)]|e }}
{% elseif field.type == 'file' %}
<em>See attachment</em>
{% else %}
{{ string(form.value(scope ~ field.name))|nl2br }}
{% endif %}
{% endblock %}
</div>
{% endblock %}
{% endif %}
{% else %}
{% if field.fields %}
{% set new_scope = field.nest_id ? scope ~ field.name ~ '.' : scope %}
{{ self.render_field(form, field.fields, new_scope) }}
{% endif %}
{% endif %}
{% endfor %}
{% endmacro %}
{% import _self as macro %}
{{ macro.render_field(form, form.fields, '') }}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment