Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ChristopherDosin/d82e289e891d1952fe4d0367b772665a to your computer and use it in GitHub Desktop.
Save ChristopherDosin/d82e289e891d1952fe4d0367b772665a to your computer and use it in GitHub Desktop.
quali.twig
<form class="profile-form" method="post" accept-charset="UTF-8" enctype="multipart/form-data">
{{ actionInput('users/save-user') }}
{{ csrfInput() }}
{{ hiddenInput('userId', currentUser.id) }}
<input type="hidden" name="fields[qualification]" value="">
{% for item in currentUser.qualification %}
<input type="hidden" name="fields[qualification][]" value="{{ item.id }}">
{% endfor %}
<input type="hidden" name="fields[qualification][new1][enabled]" value="1">
<input type="hidden" name="fields[qualification][new1][type]" value="workExperience">
<div class="grid-x grid-margin-x">
<div class="cell small-12 large-6">
<label for="qJobTitle">
Positionsbezeichnung*
<input type="text" name="fields[qualification][new1][fields][position]" placeholder="Deine Position ..." required>
</label>
<label for="qCompany">
Unternehmen*
<input type="text" name="fields[qualification][new1][fields][company]" placeholder="Das Unternehmen ..." required>
</label>
</div>
<div class="cell small-12 large-6">
<label for="textEdit" class="text-edit-label">
Kurzbeschreibung
<textarea name="fields[qualification][new1][fields][description]" class="text-edit"></textarea>
</label>
</div>
<div class="cell small-12 add-qual">
<span class="pflicht">* Pflichtfeld</span>
<button class="button secondary add-button">
Hinzufügen
</button>
</div>
</div>
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment