Skip to content
Snippets Groups Projects
Commit 161aee79 authored by Jacek Lebioda's avatar Jacek Lebioda
Browse files

Corrections

parent 79a92a74
No related branches found
No related tags found
No related merge requests found
...@@ -37,11 +37,11 @@ ...@@ -37,11 +37,11 @@
<div class="col-sm-6"> <div class="col-sm-6">
{% for field in form %} {% for field in form %}
<div class="form-group {% if field.errors %}has-error{% endif %}"> <div class="form-group {% if field.errors %}has-error{% endif %}">
<label for="{# TODO #}" class="col-sm-2 control-label"> <label for="{# TODO #}" class="col-sm-4 control-label">
{{ field.label }} {{ field.label }}
</label> </label>
<div class="col-sm-10"> <div class="col-sm-8">
{{ field|add_class:'form-control' }} {{ field|add_class:'form-control' }}
</div> </div>
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<div class="box-header with-border"> <div class="box-header with-border">
<h3 class="box-title">To be implemented</h3> <h3 class="box-title">To be implemented</h3>
<div class="box-tools pull-right"> <div class="box-tools center">
<button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button> <button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
</div> </div>
<!-- /.box-tools --> <!-- /.box-tools -->
...@@ -35,209 +35,230 @@ ...@@ -35,209 +35,230 @@
<!-- /.box-body --> <!-- /.box-body -->
</div> </div>
<div>
<h3>Monday</h3>
<h3>Monday</h3> <div class="new-availability">
{% if avmon %} <a href="{% url 'web.views.doctoradd' %}" class="btn btn-app">
<table id="tabmon" class="table table-bordered table-striped"> <i class="fa fa-plus"></i>
<thead> Add new avaibility</a>
<tr> </div>
<th>No.</th>
<th>From</th>
<th>Until</th>
<th>Remove</th>
</tr>
</thead>
<tbody>
{% for record in avmon %}
<tr>
<td> {{forloop.counter}} </td>
<td> {{record.availFro}} </td>
<td> {{record.availTil}} </td>
<td><a href="{% url 'web.views.availdelete' id record.id %}" type="button" class="btn btn-block btn-default">Delete</a></td>
</tr>
{% endfor %}
</tbody>
</table>
{% else %}
<p>No avaibilities on Monday.</p>
{% endif %}
<div> {% if avmon %}
<a href="{% url 'web.views.doctoradd' %}" class="btn btn-app"> <table id="tabmon" class="table table-bordered table-striped">
<i class="fa fa-plus"></i> <thead>
Add new avaibility</a> <tr>
<th>No.</th>
<th>From</th>
<th>Until</th>
<th>Remove</th>
</tr>
</thead>
<tbody>
{% for record in avmon %}
<tr>
<td> {{forloop.counter}} </td>
<td> {{record.availFro}} </td>
<td> {{record.availTil}} </td>
<td><a href="{% url 'web.views.availdelete' id record.id %}" type="button" class="btn btn-block btn-default">Delete</a></td>
</tr>
{% endfor %}
</tbody>
</table>
{% else %}
<p>No avaibilities on Monday.</p>
{% endif %}
</div> </div>
<h3>Tuesday</h3> <hr />
{% if avtue %}
<table id="tabtue" class="table table-bordered table-striped">
<thead>
<tr>
<th>No.</th>
<th>From</th>
<th>Until</th>
<td> Remove </td>
</tr>
</thead>
<tbody>
{% for record in avtue %}
<tr>
<td> {{forloop.counter}} </td>
<td> {{record.availFro}} </td>
<td> {{record.availTil}} </td>
<td><a href="{% url 'web.views.availdelete' id record.id %}" type="button" class="btn btn-block btn-default">Delete</a></td>
</tr>
{% endfor %}
</tbody>
</table>
{% else %}
<p>No avaibilities on Tuesday.</p>
{% endif %}
<div> <div>
<a href="{% url 'web.views.doctoradd' %}" class="btn btn-app"> <h3>Tuesday</h3>
<i class="fa fa-plus"></i>
Add new avaibility</a> <div class="new-availability">
<a href="{% url 'web.views.doctoradd' %}" class="btn btn-app">
<i class="fa fa-plus"></i>
Add new avaibility</a>
</div>
{% if avtue %}
<table id="tabtue" class="table table-bordered table-striped">
<thead>
<tr>
<th>No.</th>
<th>From</th>
<th>Until</th>
<td> Remove </td>
</tr>
</thead>
<tbody>
{% for record in avtue %}
<tr>
<td> {{forloop.counter}} </td>
<td> {{record.availFro}} </td>
<td> {{record.availTil}} </td>
<td><a href="{% url 'web.views.availdelete' id record.id %}" type="button" class="btn btn-block btn-default">Delete</a></td>
</tr>
{% endfor %}
</tbody>
</table>
{% else %}
<p>No avaibilities on Tuesday.</p>
{% endif %}
</div> </div>
<h3>Wednesday</h3> <hr />
{% if avwed %}
<table id="tabwed" class="table table-bordered table-striped">
<thead>
<tr>
<th>No.</th>
<th>From</th>
<th>Until</th>
<td> Remove </td>
</tr>
</thead>
<tbody>
{% for record in avwed %}
<tr>
<td> {{forloop.counter}} </td>
<td> {{record.availFro}} </td>
<td> {{record.availTil}} </td>
<td><a href="{% url 'web.views.availdelete' id record.id %}" type="button" class="btn btn-block btn-default">Delete</a></td>
</tr>
{% endfor %}
</tbody>
</table>
{% else %}
<p>No avaibilities on Wednesday.</p>
{% endif %}
<div> <div>
<a href="{% url 'web.views.doctoradd' %}" class="btn btn-app"> <h3>Wednesday</h3>
<i class="fa fa-plus"></i>
Add new avaibility</a> <div class="new-availability">
<a href="{% url 'web.views.doctoradd' %}" class="btn btn-app">
<i class="fa fa-plus"></i>
Add new avaibility</a>
</div>
{% if avwed %}
<table id="tabwed" class="table table-bordered table-striped">
<thead>
<tr>
<th>No.</th>
<th>From</th>
<th>Until</th>
<td> Remove </td>
</tr>
</thead>
<tbody>
{% for record in avwed %}
<tr>
<td> {{forloop.counter}} </td>
<td> {{record.availFro}} </td>
<td> {{record.availTil}} </td>
<td><a href="{% url 'web.views.availdelete' id record.id %}" type="button" class="btn btn-block btn-default">Delete</a></td>
</tr>
{% endfor %}
</tbody>
</table>
{% else %}
<p>No avaibilities on Wednesday.</p>
{% endif %}
</div> </div>
<h3>Thursday</h3> <hr />
{% if avthu %}
<table id="tabmon" class="table table-bordered table-striped">
<thead>
<tr>
<th>No.</th>
<th>From</th>
<th>Until</th>
<td> Remove </td>
</tr>
</thead>
<tbody>
{% for record in avthu %}
<tr>
<td> {{forloop.counter}} </td>
<td> {{record.availFro}} </td>
<td> {{record.availTil}} </td>
<td><a href="{% url 'web.views.availdelete' id record.id %}" type="button" class="btn btn-block btn-default">Delete</a></td>
</tr>
{% endfor %}
</tbody>
</table>
{% else %}
<p>No avaibilities on Thursday.</p>
{% endif %}
<div> <div>
<a href="{% url 'web.views.doctoradd' %}" class="btn btn-app"> <h3>Thursday</h3>
<i class="fa fa-plus"></i>
Add new avaibility</a> <div class="new-availability">
<a href="{% url 'web.views.doctoradd' %}" class="btn btn-app">
<i class="fa fa-plus"></i>
Add new avaibility</a>
</div>
{% if avthu %}
<table id="tabmon" class="table table-bordered table-striped">
<thead>
<tr>
<th>No.</th>
<th>From</th>
<th>Until</th>
<td> Remove </td>
</tr>
</thead>
<tbody>
{% for record in avthu %}
<tr>
<td> {{forloop.counter}} </td>
<td> {{record.availFro}} </td>
<td> {{record.availTil}} </td>
<td><a href="{% url 'web.views.availdelete' id record.id %}" type="button" class="btn btn-block btn-default">Delete</a></td>
</tr>
{% endfor %}
</tbody>
</table>
{% else %}
<p>No avaibilities on Thursday.</p>
{% endif %}
</div> </div>
<h3>Friday</h3> <hr />
{% if avfri %}
<table id="tabmon" class="table table-bordered table-striped">
<thead>
<tr>
<th>No.</th>
<th>From</th>
<th>Until</th>
<td> Remove </td>
</tr>
</thead>
<tbody>
{% for record in avfri %}
<tr>
<td> {{forloop.counter}} </td>
<td> {{record.availFro}} </td>
<td> {{record.availTil}} </td>
<td><a href="{% url 'web.views.availdelete' id record.id %}" type="button" class="btn btn-block btn-default">Delete</a></td>
</tr>
{% endfor %}
</tbody>
</table>
{% else %}
<p>No avaibilities on Friday.</p>
{% endif %}
<div> <div>
<a href="{% url 'web.views.doctoradd' %}" class="btn btn-app"> <h3>Friday</h3>
<i class="fa fa-plus"></i>
Add new avaibility</a> <div class="new-availability">
<a href="{% url 'web.views.doctoradd' %}" class="btn btn-app">
<i class="fa fa-plus"></i>
Add new avaibility</a>
</div>
{% if avfri %}
<table id="tabmon" class="table table-bordered table-striped">
<thead>
<tr>
<th>No.</th>
<th>From</th>
<th>Until</th>
<td> Remove </td>
</tr>
</thead>
<tbody>
{% for record in avfri %}
<tr>
<td> {{forloop.counter}} </td>
<td> {{record.availFro}} </td>
<td> {{record.availTil}} </td>
<td><a href="{% url 'web.views.availdelete' id record.id %}" type="button" class="btn btn-block btn-default">Delete</a></td>
</tr>
{% endfor %}
</tbody>
</table>
{% else %}
<p>No avaibilities on Friday.</p>
{% endif %}
</div> </div>
<h3>Saturday</h3> <hr />
{% if avsat %}
<table id="tabmon" class="table table-bordered table-striped">
<thead>
<tr>
<th>No.</th>
<th>From</th>
<th>Until</th>
<th>Remove</th>
</tr>
</thead>
<tbody>
{% for record in avsat %}
<tr>
<td> {{forloop.counter}} </td>
<td> {{record.availFro}} </td>
<td> {{record.availTil}} </td>
<td><a href="{% url 'web.views.availdelete' id record.id %}" type="button" class="btn btn-block btn-default">Delete</a></td>
</tr>
{% endfor %}
</tbody>
</table>
{% else %}
<p>No avaibilities on Saturday.</p>
{% endif %}
<div> <div>
<a href="{% url 'web.views.doctoradd' %}" class="btn btn-app"> <h3>Saturday</h3>
<i class="fa fa-plus"></i>
Add new avaibility</a> <div class="new-availability">
<a href="{% url 'web.views.doctoradd' %}" class="btn btn-app">
<i class="fa fa-plus"></i>
Add new avaibility</a>
</div>
{% if avsat %}
<table id="tabmon" class="table table-bordered table-striped">
<thead>
<tr>
<th>No.</th>
<th>From</th>
<th>Until</th>
<th>Remove</th>
</tr>
</thead>
<tbody>
{% for record in avsat %}
<tr>
<td> {{forloop.counter}} </td>
<td> {{record.availFro}} </td>
<td> {{record.availTil}} </td>
<td><a href="{% url 'web.views.availdelete' id record.id %}" type="button" class="btn btn-block btn-default">Delete</a></td>
</tr>
{% endfor %}
</tbody>
</table>
{% else %}
<p>No avaibilities on Saturday.</p>
{% endif %}
</div> </div>
</div> </div>
......
...@@ -37,11 +37,11 @@ ...@@ -37,11 +37,11 @@
<div class="col-sm-6"> <div class="col-sm-6">
{% for field in form %} {% for field in form %}
<div class="form-group {% if field.errors %}has-error{% endif %}"> <div class="form-group {% if field.errors %}has-error{% endif %}">
<label for="inputEmail3" class="col-sm-2 control-label"> <label for="inputEmail3" class="col-sm-4 control-label">
{{ field.label }} {{ field.label }}
</label> </label>
<div class="col-sm-10"> <div class="col-sm-8">
{{ field|add_class:'form-control' }} {{ field|add_class:'form-control' }}
</div> </div>
......
...@@ -22,10 +22,8 @@ ...@@ -22,10 +22,8 @@
{% endblock breadcrumb %} {% endblock breadcrumb %}
{% block maincontent %} {% block maincontent %}
<div class="row"> <div>
<div class="col-md-5"> <div>
<h3>Visits</h3>
{% if visit_list %} {% if visit_list %}
<table id="visit_table" class="table table-bordered table-striped"> <table id="visit_table" class="table table-bordered table-striped">
<thead> <thead>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment