|
@@ -13,19 +13,22 @@ display: none;
|
|
<div class="content-container content">
|
|
<div class="content-container content">
|
|
<article>
|
|
<article>
|
|
<h3>Qualification Types</h3>
|
|
<h3>Qualification Types</h3>
|
|
-<div><a href="#" id="a_add_type">Add qualification type</a></div>
|
|
|
|
|
|
+<div><button type="button" id="btn_add_type" value="Add qualification type">
|
|
|
|
+{{ icons.add_svg(s_label="add qualification type") }}
|
|
|
|
+Add qualification type
|
|
|
|
+</button></div>
|
|
{% if qualification_types %}
|
|
{% if qualification_types %}
|
|
<div class="table-container">
|
|
<div class="table-container">
|
|
<table id="tbl_types" class="data-table">
|
|
<table id="tbl_types" class="data-table">
|
|
<thead>
|
|
<thead>
|
|
<tr>
|
|
<tr>
|
|
-<th>Qualification type</th><th style="font-size: smaller;">(actions)</th>
|
|
|
|
|
|
+<th>Qualification type</th><th style="font-size: smaller;">Actions</th>
|
|
</tr>
|
|
</tr>
|
|
</thead>
|
|
</thead>
|
|
<tbody>
|
|
<tbody>
|
|
{% for type in qualification_types %}
|
|
{% for type in qualification_types %}
|
|
<tr>
|
|
<tr>
|
|
-<td>{{ type.v_qualification_type }}</td><td><a href="#{{ type.id }}" class="a_edit_type">{{ icons.edit_svg(bl_quotes=False, s_label="edit type") }}</a> <a href= "#{{ type.id }}" class="a_remove_type" >×</a></td>
|
|
|
|
|
|
+<td>{{ type.v_qualification_type }}</td><td><a href="#{{ type.id }}" class="a_edit_type">{{ icons.edit_svg(bl_quotes=False, s_label="edit type") }}</a> <a href= "#{{ type.id }}" class="a_remove_type" >{{ icons.delete_svg(s_label="remove type") }}</a></td>
|
|
</tr>
|
|
</tr>
|
|
{% endfor %}{# end of looping through qualification_types #}
|
|
{% endfor %}{# end of looping through qualification_types #}
|
|
</tbody>
|
|
</tbody>
|
|
@@ -36,7 +39,10 @@ display: none;
|
|
<article>
|
|
<article>
|
|
<h3>Qualifications</h3>
|
|
<h3>Qualifications</h3>
|
|
<div id="div_qualifications">
|
|
<div id="div_qualifications">
|
|
-<div><a href="#" id="a_add_qualification">Add qualification</a></div>
|
|
|
|
|
|
+<div><button type="button" id="btn_add_qualification" value="Add qualification>
|
|
|
|
+{{ icons.add_svg(s_label="add qualification") }}
|
|
|
|
+Add qualification
|
|
|
|
+</button></div>
|
|
<div><select id="sel_type_filter">
|
|
<div><select id="sel_type_filter">
|
|
<option value="0" selected>--all types--</option>
|
|
<option value="0" selected>--all types--</option>
|
|
{% for type in qualification_types %}
|
|
{% for type in qualification_types %}
|
|
@@ -52,7 +58,7 @@ Apply filter
|
|
<table id="tbl_qualifications" class="data-table">
|
|
<table id="tbl_qualifications" class="data-table">
|
|
<thead>
|
|
<thead>
|
|
<tr>
|
|
<tr>
|
|
-<th>Qualification type</th><th>Qualification Name</th><th>Qualification Description</th><th style="font-size: smaller;">(actions)</th>
|
|
|
|
|
|
+<th>Qualification type</th><th>Qualification Name</th><th>Qualification Description</th><th style="font-size: smaller;">Actions</th>
|
|
</tr>
|
|
</tr>
|
|
</thead>
|
|
</thead>
|
|
<tbody></tbody>
|
|
<tbody></tbody>
|
|
@@ -95,12 +101,12 @@ try {
|
|
var s_dlg_type = $("#dlg_type").html();
|
|
var s_dlg_type = $("#dlg_type").html();
|
|
var s_dlg_qualification = $("#dlg_qualification").html();
|
|
var s_dlg_qualification = $("#dlg_qualification").html();
|
|
|
|
|
|
-$("#a_add_type").click( function(event) {
|
|
|
|
|
|
+$("#btn_add_type").click( function(event) {
|
|
event.preventDefault();
|
|
event.preventDefault();
|
|
$("#dlg_type").html(s_dlg_type);
|
|
$("#dlg_type").html(s_dlg_type);
|
|
$("#dlg_type").redraw();
|
|
$("#dlg_type").redraw();
|
|
$("#dlg_type").dialog("open");
|
|
$("#dlg_type").dialog("open");
|
|
-});// end of a_add_type click event
|
|
|
|
|
|
+});// end of btn_add_type click event
|
|
|
|
|
|
$(".a_edit_type").click( function(event) {
|
|
$(".a_edit_type").click( function(event) {
|
|
event.preventDefault();
|
|
event.preventDefault();
|
|
@@ -180,12 +186,12 @@ $("#btn_type_filter").click( function(event) {
|
|
}//end of catch
|
|
}//end of catch
|
|
});// end of btn_type_filter click|sel_type_filter change event
|
|
});// end of btn_type_filter click|sel_type_filter change event
|
|
|
|
|
|
-$("#a_add_qualification").click( function(event) {
|
|
|
|
|
|
+$("#btn_add_qualification").click( function(event) {
|
|
event.preventDefault();
|
|
event.preventDefault();
|
|
$("#dlg_qualification").html(s_dlg_qualification);
|
|
$("#dlg_qualification").html(s_dlg_qualification);
|
|
$("#dlg_qualification").redraw();
|
|
$("#dlg_qualification").redraw();
|
|
$("#dlg_qualification").dialog("open");
|
|
$("#dlg_qualification").dialog("open");
|
|
-});// end of a_add_qualification click event
|
|
|
|
|
|
+});// end of btn_add_qualification click event
|
|
|
|
|
|
$("#tbl_qualifications").on("click", ".a_edit_qualification", function(event) {
|
|
$("#tbl_qualifications").on("click", ".a_edit_qualification", function(event) {
|
|
event.preventDefault();
|
|
event.preventDefault();
|