{% extends 'form_template.html' %} {% block form_content %}
{% if message == True %}
Operating System Added Successfully
{% elif message != False %}
{{ message }}
{% endif %}
{% csrf_token %} {% for field in form %}
{{ field }}
{% endfor %}
{% endblock %} {% block exist_content %} {% if os_obj %}
{% for obj in os_obj %}
{{ obj.os_name }}
{{ obj.os_location }}
{% endfor %}
{% else %}

No Operating System Added

{% endif %} {% endblock %}