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

Subjects pages corrected and polished

parent 04d20ad0
No related branches found
No related tags found
No related merge requests found
<li><a href="#"><i class="fa fa-dashboard"></i> Dashboard</a></li>
<li class="active">
<a href="{% url 'web.views.subjects' %}">Subjects</a>
</li>
\ No newline at end of file
...@@ -7,30 +7,65 @@ ...@@ -7,30 +7,65 @@
<link rel="stylesheet" href="{% static 'AdminLTE/plugins/datatables/dataTables.bootstrap.css' %}"> <link rel="stylesheet" href="{% static 'AdminLTE/plugins/datatables/dataTables.bootstrap.css' %}">
{% endblock styles %} {% endblock styles %}
{% block page_title %}'deletesubject'{% endblock page_title %} {% block page_title %}'subjects'{% endblock page_title %}
{% block page_header %}Delete subject{% endblock page_header %} {% block page_header %}Are you sure you want to remove information concerning this subject?{% endblock page_header %}
{% block page_description %}deleting{% endblock page_description %} {% block page_description %}{% endblock page_description %}
{% block title %}{{ block.super }} - Delete subject information{% endblock %}
{% block breadcrumb %} {% block breadcrumb %}
<li><a href="#"><i class="fa fa-dashboard"></i> Dashboard</a></li> {% include "subjects/breadcrumb.html" %}
<li class="active">Workers</li>
{% endblock breadcrumb %} {% endblock breadcrumb %}
{% block maincontent %} {% block maincontent %}
<h3>Are you sure you want to remove information concerning this subject? </h3>
{% block title %}{{object_name}} Form{% endblock %}
{% block content %} {% block content %}
<form method="post" action=""> <div class="box box-info">
{{ form.as_ul }} <div class="box-header with-border">
{% csrf_token %} <a href="{% url 'web.views.subjects' %}" class="btn btn-block btn-default">Go back (without change)</a>
</div>
{% comment %} <div class="box-header with-border">
<h3 class="box-title">Details of subject</h3>
</div>{% endcomment %}
<form method="post" action="" class="form-horizontal">
{% csrf_token %}
<div class="box-body">
{% for field in form %}
<div class="form-group">
<label for="inputEmail3" class="col-sm-2 control-label">
{{ field.label }}
</label>
<div class="col-sm-10">
<!--
<input class="form-control" id="inputEmail3" placeholder="Email" type="email">
-->
{{ field }}
</div>
<button type="submit" class="btn btn-block btn-danger">Delete</button> {% if field.help_text %}
<a href="{% url 'web.views.subjects' %}" class="btn btn-block btn-default">Back</a> <span class="help-block">
{{ field.help_text }}
</span>
{% endif %}
</div>
{% endfor %}
</div><!-- /.box-body -->
</form> <div class="box-footer">
<div class="col-sm-6">
<button type="submit" class="btn btn-block btn-danger">Delete</button>
</div>
<div class="col-sm-6">
<a href="{% url 'web.views.subjects' %}" class="btn btn-block btn-default">Cancel</a>
</div>
</div><!-- /.box-footer -->
</form>
</div>
{% endblock %} {% endblock %}
......
...@@ -7,27 +7,26 @@ ...@@ -7,27 +7,26 @@
<link rel="stylesheet" href="{% static 'AdminLTE/plugins/datatables/dataTables.bootstrap.css' %}"> <link rel="stylesheet" href="{% static 'AdminLTE/plugins/datatables/dataTables.bootstrap.css' %}">
{% endblock styles %} {% endblock styles %}
{% block page_title %}'newsubject'{% endblock page_title %} {% block page_title %}'subjects'{% endblock page_title %}
{% block page_header %}Details of the patient{% endblock page_header %} {% block page_header %}Details of the subject{% endblock page_header %}
{% block page_description %}{% endblock page_description %} {% block page_description %}{% endblock page_description %}
{% block title %}{{ block.super }} - Details of patient {% endblock %} {% block title %}{{ block.super }} - Details of subject {% endblock %}
{% block breadcrumb %} {% block breadcrumb %}
<li> {% include "subjects/breadcrumb.html" %}
<a href=""><i class="fa fa-dashboard"></i> Dashboard</a>
</li>
<li class="active">
<a href="{% url 'web.views.subjects' %}">Subjects</a>
</li>
{% endblock breadcrumb %} {% endblock breadcrumb %}
{% block maincontent %} {% block maincontent %}
{% block content %} {% block content %}
<div class="box box-info"> <div class="box box-info">
<div class="box-header with-border">
<a href="{% url 'web.views.subjects' %}" class="btn btn-block btn-default">Back</a>
</div>
{% comment %} <div class="box-header with-border"> {% comment %} <div class="box-header with-border">
<h3 class="box-title">Details of patient</h3> <h3 class="box-title">Details of subject</h3>
</div>{% endcomment %} </div>{% endcomment %}
<form class="form-horizontal"> <form class="form-horizontal">
......
...@@ -7,27 +7,65 @@ ...@@ -7,27 +7,65 @@
<link rel="stylesheet" href="{% static 'AdminLTE/plugins/datatables/dataTables.bootstrap.css' %}"> <link rel="stylesheet" href="{% static 'AdminLTE/plugins/datatables/dataTables.bootstrap.css' %}">
{% endblock styles %} {% endblock styles %}
{% block page_title %}'editsubject'{% endblock page_title %} {% block page_title %}'subjects'{% endblock page_title %}
{% block page_header %}Edit subject{% endblock page_header %} {% block page_header %}Edit subject{% endblock page_header %}
{% block page_description %}editing{% endblock page_description %} {% block page_description %}{% endblock page_description %}
{% block title %}{{ block.super }} - Edit subject information{% endblock %}
{% block breadcrumb %} {% block breadcrumb %}
<li><a href="#"><i class="fa fa-dashboard"></i> Dashboard</a></li> {% include "subjects/breadcrumb.html" %}
<li class="active">Workers</li>
{% endblock breadcrumb %} {% endblock breadcrumb %}
{% block maincontent %} {% block maincontent %}
{% block title %}{{object_name}} Form{% endblock %}
{% block content %} {% block content %}
<form method="post" action=""> <div class="box box-info">
{{ form.as_ul }} <div class="box-header with-border">
{% csrf_token %} <a href="{% url 'web.views.subjects' %}" class="btn btn-block btn-default">Go back (without change)</a>
</div>
{% comment %} <div class="box-header with-border">
<h3 class="box-title">Details of subject</h3>
</div>{% endcomment %}
<form method="post" action="" class="form-horizontal">
{% csrf_token %}
<div class="box-body">
{% for field in form %}
<div class="form-group">
<label for="inputEmail3" class="col-sm-2 control-label">
{{ field.label }}
</label>
<div class="col-sm-10">
<!--
<input class="form-control" id="inputEmail3" placeholder="Email" type="email">
-->
{{ field }}
</div>
{% if field.help_text %}
<span class="help-block">
{{ field.help_text }}
</span>
{% endif %}
</div>
{% endfor %}
</div><!-- /.box-body -->
<div class="box-footer">
<div class="col-sm-6">
<button type="submit" class="btn btn-block btn-success">Save</button>
</div>
<div class="col-sm-6">
<a href="{% url 'web.views.subjects' %}" class="btn btn-block btn-default">Cancel</a>
</div>
</div><!-- /.box-footer -->
</form>
</div>
<button type="submit" class="btn btn-block btn-success">Save</button>
<a href="{% url 'web.views.subjects' %}" class="btn btn-block btn-default">Cancel</a>
</form>
{% endblock %} {% endblock %}
......
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