Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% for key in keys %}
- <th>
- <div class="card-body">
- <label for="{{ key }}">Should We import this column?</label>
- <input id="{{ key }}" name="import[]" value="{{ key }}" type="checkbox">
- </div>
- </th>
- {% endfor %}
- <input id="name" name="import[]" value="name" type="checkbox">
- <input id="name" name="import[]" value="email" type="checkbox">
- <input id="name" name="import[]" value="category" type="checkbox">
- # from request.POST array
- 'import[]' = 'email' # whichever I selected last
- import = [
- 'email',
- 'name'
- ]
Add Comment
Please, Sign In to add comment