You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.5 KiB

  1. <p class="text-success">Authentication successful!</p>
  2. <p>Please select the Trello list to post notifications to:</p>
  3. <form method="post" class="form-horizontal">
  4. {% csrf_token %}
  5. <input type="hidden" id="settings" name="settings" data-token="{{ token }}"/>
  6. <div class="form-group {{ form.value.css_classes }}">
  7. <label for="list-selector" class="col-sm-3 control-label">Post Notifications to</label>
  8. <div class="col-sm-3">
  9. <select id="list-selector" name="board_list_id" class="form-control">
  10. {% for board in data %}
  11. <optgroup label="{{ board.name }}">
  12. {% for list in board.lists %}
  13. <option
  14. data-list-id="{{ list.id }}"
  15. data-board-name="{{ board.name }}"
  16. data-list-name="{{ list.name}}"
  17. value="{{ board.id }},{{ list.id}}">{{ list.name }}</option>
  18. {% endfor %}
  19. </optgroup>
  20. {% endfor %}
  21. </select>
  22. {% if form.board_list_id.errors %}
  23. <div class="help-block">
  24. {{ form.board_list_id.errors|join:"" }}
  25. </div>
  26. {% endif %}
  27. </div>
  28. </div>
  29. <div class="form-group">
  30. <div class="col-sm-offset-3 col-sm-9">
  31. <button type="submit" class="btn btn-primary">Save Integration</button>
  32. </div>
  33. </div>
  34. </form>