{% extends "formwizard/profesor/wizard_base.html" %}

{% block formwizard%}
<legend> <h1 style="padding-left:3%;">Nueva actividad</h1> </legend> 

               <form method="post" action="" class="form-horizontal ">
                  {% csrf_token %}
				{% for field in form%}
					<div class="control-group">
						<label class="control-label" for="input01" style="margin-right:10%;"><p><strong>{{ field.label}}</strong></p></label>
						{% if  field.errors %}
	                        <div class="alert alert-error" style="margin-top:0.4em;width:10em;">
	                            <a class="close" data-dismiss="alert">×</a>
	                            <strong>ERROR</strong>{{ field.errors }}
	                        </div>
                        {%endif%}
						<div class="controls">						
							<p>{{field}}</p>
						</div>
					</div>

				{% endfor %}
				<br/>
                  <div id="form-edit">
				  <div class="form-actions">
				  	<div class="pull-right">
                     <button type="submit" class="btn btn-primary btn-large btn-success">Siguiente</button>
                     <a href="{%url tareas_indice informacion.asignatura %}" class="btn btn-primary btn-large btn-danger">Volver</a>
				  	</div>
                  </div>
              	</div>
			  	</form>

{% endblock %}