Last active
January 2, 2018 18:57
-
-
Save SamsadSajid/9a0f9f45929bdc5dbd7ac539bb2e0640 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% extends 'dashboard/test.html' %} | |
{% load staticfiles %} | |
{% load i18n %} | |
{% block content %} | |
<!-- page content --> | |
<div class="right_col" role="main"> | |
<div class=""> | |
<div class="page-title"> | |
<div class="title_left"> | |
<h3>Product Module</h3> | |
</div> | |
</div> | |
<div class="clearfix"></div> | |
<div class="row"> | |
<div class="col-md-12 col-sm-12 col-xs-12"> | |
{% if messages %} | |
{% for message in messages %} | |
<div class="alert alert-{{ message.tags }} alert-dismissable"> | |
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> | |
{{ message }} | |
</div> | |
{% endfor %} | |
{% endif %} | |
<div class="x_panel"> | |
<div class="x_title"> | |
<h2>Add an Item</h2> | |
<div class="clearfix"></div> | |
</div> | |
<div class="x_content"> | |
<div class="col-md-9 col-sm-9 col-xs-12"> | |
<div class="profile_title"> | |
<div class="col-md-6"> | |
<h2>Product Description</h2> | |
</div> | |
</div> | |
<form role="form" class="form-horizontal" method="post" action="{% url 'officer:add_product' %}" | |
enctype="multipart/form-data"> | |
{% csrf_token %} | |
{% for field in form.visible_fields %} | |
<div class="form-group{% if field.errors %} has-error{% endif %}"> | |
<label for="{{ field.label }}" class="col-sm-2 control-label">{{ field.label }}</label> | |
<div class="col-sm-10"> | |
{{ field }} | |
{% if field.help_text %} | |
<span class="help-block">{{ field.help_text }}</span> | |
{% endif %} | |
{% for error in field.errors %} | |
<label class="control-label">{{ error }}</label> | |
{% endfor %} | |
</div> | |
</div> | |
{% endfor %} | |
<div class="form-group"> | |
<div class="col-sm-offset-2 col-sm-10"> | |
<button type="submit" class="btn btn-primary">{% trans 'Save' %}</button> | |
</div> | |
</div> | |
</form> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
<!-- /page content --> | |
{% endblock %} | |
{% block js %} | |
{% endblock %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment