Guest User

Untitled

a guest
Apr 24th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 KB | None | 0 0
  1. <div class="collection-header"><h5>{{ root_function.name|default:project.name }}</h5></div>
  2. {% for function in functions %}
  3. <a class="collection-item" href="{% url 'project_nested' project.id function.id %}">
  4. {{ function.name }}{% if function.amount > 1%}<span class="collection-item__amount">{{ function.amount }}</span>{% endif %}
  5. <a role="button" data-function="{{ function.id }}"
  6. class="collection-item__delete object-delete btn-flat waves-effect btn-floating">
  7. <i class="material-icons red-text">delete_forever</i>
  8. </a>
  9. </a>
  10. {% endfor %}
  11. {% for reference in references %}
  12. <a class="collection-item" href="{% url 'project_nested' project.id reference.refers.id %}">
  13. {{ reference.refers.name }}<span class="collection-item__amount">(reference)</span>
  14. </a>
  15. {% endfor %}
  16. {% include "./popup-form.html" with title="Add object" type="function" inputs=function_create_form project_id=project.id parent_function_id=root_function.id %}
  17. </div>
  18.  
  19. <a role="button" data-function="{{ function.id }}"
  20. class="collection-item__delete object-delete btn-flat waves-effect btn-floating">
  21. <i class="material-icons red-text">delete_forever</i>
  22. </a>
  23.  
  24. .collection-item {
  25. border-right: none;
  26. position: relative;
  27. text-overflow: ellipsis;
  28. color: $rhdhv-dark-blue;
  29.  
  30. &__delete {
  31. float: left;
  32. }
  33. }
Add Comment
Please, Sign In to add comment