{% from 'stock_solutions/form.html' import stock_solution_add_form %} {% macro pane_details(stock, form) %} {% if stock.date_emptied %}
{% else %}
{% endif %}
{{ stock.owner.username }}

Prepared on {{ stock.date_created | format_date }}

{% if current_user.has_permission('Add stock solutions') %} {% endif %}

Storage place

{{ stock.storage_place }}

Conc.

{{ stock.concentration }}

Solvent

{{ stock.solvent }}

{% if stock.details %}

{{ stock.details }}

{% endif %}
{{ stock_solution_add_form(form(None, obj=stock), "chemicals.solutions.edit", "PUT", stock.id) }} {% endmacro %} {% macro solution_pane(status, pane_id, chemical, form) %}

Stock solutions

{% if current_user.has_permission('Add stock solutions') %} {% endif %}
{% for stock in chemical.stocks %} {{ pane_details(stock, form) }} {% else %}
No stock solutions found!
{% endfor %} {{ stock_solution_add_form(form(), "chemicals.solutions.add", "POST", -1, chemical.id) }}
{% endmacro %}