Fixing elfinder + ckeditor + course and session loaders see #7006 + BT#7058
parent
14fb89e5b1
commit
08840adb8f
@ -1,34 +1,34 @@ |
|||||||
{{javascript}} |
{{javascript}} |
||||||
|
|
||||||
{% for message in messages %} |
{% for message in messages %} |
||||||
{{ message }} |
{{ message }} |
||||||
{% endfor %} |
{% endfor %} |
||||||
|
|
||||||
{% if is_allowed_to_edit %} |
{% if is_allowed_to_edit %} |
||||||
<div class="btn-toolbar actions-bar" > |
<div class="btn-toolbar actions-bar" > |
||||||
<div class="btn-group"> |
<div class="btn-group"> |
||||||
<a href="{{root}}&action=listing" class="btn" title="{{'ImportCSV'|get_lang}}"> |
<a href="{{root}}&action=listing" class="btn" title="{{'ImportCSV'|get_lang}}"> |
||||||
<i class="size-32 icon-back"></i> |
<i class="size-32 icon-back"></i> |
||||||
</a> |
</a> |
||||||
</div> |
</div> |
||||||
<div class="btn-group edit new"> |
<div class="btn-group edit new"> |
||||||
{% for type in types %} |
{% for type in types %} |
||||||
<a href="{{root}}&action=add&description_type={{type.id}}" class="btn "> |
<a href="{{root}}&action=add&description_type={{type.id}}" class="btn "> |
||||||
<img title="{{type.title}}" alt="{{type.title}}" src="{{type.icon|icon(32)}} "> |
<img title="{{type.title}}" alt="{{type.title}}" src="{{type.icon|icon(32)}} "> |
||||||
</a> |
</a> |
||||||
{% endfor %} |
{% endfor %} |
||||||
</div> |
</div> |
||||||
</div> |
</div> |
||||||
{% endif %} |
{% endif %} |
||||||
|
|
||||||
|
|
||||||
{% if type.question %} |
{% if type.question %} |
||||||
<div class="normal-message"> |
<div class="normal-message"> |
||||||
<div> |
<div> |
||||||
<strong>{{'QuestionPlan'|get_lang}}</strong> |
<strong>{{'QuestionPlan'|get_lang}}</strong> |
||||||
</div> |
</div> |
||||||
{{type.question}} |
{{type.question}} |
||||||
</div> |
</div> |
||||||
{% endif %} |
{% endif %} |
||||||
|
|
||||||
{{form.return_form()}} |
{{form.return_form()}} |
||||||
@ -1,109 +1,109 @@ |
|||||||
{{javascript}} |
{{javascript}} |
||||||
|
|
||||||
<script type="text/javascript"> |
<script type="text/javascript"> |
||||||
|
|
||||||
{% if is_allowed_to_edit %} |
{% if is_allowed_to_edit %} |
||||||
var sec_token = '{{sec_token}}'; |
var sec_token = '{{sec_token}}'; |
||||||
{% endif %} |
{% endif %} |
||||||
|
|
||||||
|
|
||||||
function delete_entry(name, btn){ |
function delete_entry(name, btn){ |
||||||
if(!confirm("{{'ConfirmYourChoice'|get_lang}}")){ |
if(!confirm("{{'ConfirmYourChoice'|get_lang}}")){ |
||||||
return false; |
return false; |
||||||
} |
} |
||||||
|
|
||||||
var item = $('#'+name); |
var item = $('#'+name); |
||||||
var id = item.attr('data-id'); |
var id = item.attr('data-id'); |
||||||
var c_id = item.attr('data-c_id'); |
var c_id = item.attr('data-c_id'); |
||||||
|
|
||||||
var f = function(data){ |
var f = function(data){ |
||||||
if(data.success){ |
if(data.success){ |
||||||
item.remove(); |
item.remove(); |
||||||
} |
} |
||||||
message.update(data); |
message.update(data); |
||||||
$(btn).removeClass("loading"); |
$(btn).removeClass("loading"); |
||||||
}; |
}; |
||||||
CourseDescription.del(c_id, id, f); |
CourseDescription.del(c_id, id, f); |
||||||
$(btn).addClass("loading"); |
$(btn).addClass("loading"); |
||||||
} |
} |
||||||
|
|
||||||
function delete_all(){ |
function delete_all(){ |
||||||
if(!confirm("{{'ConfirmYourChoice'|get_lang}}")){ |
if(!confirm("{{'ConfirmYourChoice'|get_lang}}")){ |
||||||
return false; |
return false; |
||||||
} |
} |
||||||
|
|
||||||
var f = function(data){ |
var f = function(data){ |
||||||
if(data.success){ |
if(data.success){ |
||||||
var item = $('.course_descriptions'); |
var item = $('.course_descriptions'); |
||||||
item.remove(); |
item.remove(); |
||||||
} |
} |
||||||
message.update(data); |
message.update(data); |
||||||
}; |
}; |
||||||
CourseDescription.delete_by_course({{c_id}}, {{session_id}}, f); |
CourseDescription.delete_by_course({{c_id}}, {{session_id}}, f); |
||||||
|
|
||||||
} |
} |
||||||
|
|
||||||
</script> |
</script> |
||||||
|
|
||||||
{% for message in messages %} |
{% for message in messages %} |
||||||
{{ message }} |
{{ message }} |
||||||
{% endfor %} |
{% endfor %} |
||||||
|
|
||||||
{% if is_allowed_to_edit %} |
{% if is_allowed_to_edit %} |
||||||
<div class="btn-toolbar actions-bar" > |
<div class="btn-toolbar actions-bar" > |
||||||
<div class="btn-group edit new"> |
<div class="btn-group edit new"> |
||||||
{% for type in types %} |
{% for type in types %} |
||||||
<a href="{{root}}&action=add&description_type={{type.id}}" class="btn "> |
<a href="{{root}}&action=add&description_type={{type.id}}" class="btn "> |
||||||
<img title="{{type.title}}" alt="{{type.title}}" src="{{type.icon|icon(32)}} "> |
<img title="{{type.title}}" alt="{{type.title}}" src="{{type.icon|icon(32)}} "> |
||||||
</a> |
</a> |
||||||
{% endfor %} |
{% endfor %} |
||||||
</div> |
</div> |
||||||
<div class="btn-group edit"> |
<div class="btn-group edit"> |
||||||
<a href="{{root}}&action=import_csv" class="btn import_csv" title="{{'ImportCSV'|get_lang}}"> |
<a href="{{root}}&action=import_csv" class="btn import_csv" title="{{'ImportCSV'|get_lang}}"> |
||||||
<i class="size-32 icon-import-csv"></i> |
<i class="size-32 icon-import-csv"></i> |
||||||
</a> |
</a> |
||||||
<a href="{{root}}&action=export_csv" class="btn export_csv" title="{{'ExportAsCSV'|get_lang}}"> |
<a href="{{root}}&action=export_csv" class="btn export_csv" title="{{'ExportAsCSV'|get_lang}}"> |
||||||
<i class="size-32 icon-export-csv"></i> |
<i class="size-32 icon-export-csv"></i> |
||||||
</a> |
</a> |
||||||
<a href="javascript:void(0)" onclick="delete_all();return false;" class="btn delete_all" title="{{'DeleteAll'|get_lang}}"> |
<a href="javascript:void(0)" onclick="delete_all();return false;" class="btn delete_all" title="{{'DeleteAll'|get_lang}}"> |
||||||
<i class="size-32 icon-delete-all"></i> |
<i class="size-32 icon-delete-all"></i> |
||||||
</a> |
</a> |
||||||
</div> |
</div> |
||||||
</div> |
</div> |
||||||
{% endif %} |
{% endif %} |
||||||
|
|
||||||
<ul style="list-style: none; margin-left:0;" class="course_descriptions"> |
<ul style="list-style: none; margin-left:0;" class="course_descriptions"> |
||||||
{% for description in descriptions %} |
{% for description in descriptions %} |
||||||
<li id="description_{{description.id}}" class="course_description" data-id="{{description.id}}" data-c_id="{{description.c_id}}" data-type="course_description"> |
<li id="description_{{description.id}}" class="course_description" data-id="{{description.id}}" data-c_id="{{description.c_id}}" data-type="course_description"> |
||||||
<div class="title sectiontitle"> |
<div class="title sectiontitle"> |
||||||
{% if is_allowed_to_edit %} |
{% if is_allowed_to_edit %} |
||||||
<div class="pull-right element-actions"> |
<div class="pull-right element-actions"> |
||||||
{% if session_id == description.session_id %} |
{% if session_id == description.session_id %} |
||||||
<a href="{{root}}&action=delete&id={{description.id}}" |
<a href="{{root}}&action=delete&id={{description.id}}" |
||||||
onclick="delete_entry('description_{{description.id}}', this); return false;" |
onclick="delete_entry('description_{{description.id}}', this); return false;" |
||||||
title="{{'Delete'|get_lang}}"> |
title="{{'Delete'|get_lang}}"> |
||||||
<i class="size-22 icon-delete"></i> |
<i class="size-22 icon-delete"></i> |
||||||
</a> |
</a> |
||||||
|
|
||||||
<a href="{{root}}&action=edit&id={{description.id}}" |
<a href="{{root}}&action=edit&id={{description.id}}" |
||||||
title="{{'Edit'|get_lang}}"> |
title="{{'Edit'|get_lang}}"> |
||||||
<i class="size-22 icon-edit"></i> |
<i class="size-22 icon-edit"></i> |
||||||
</a> |
</a> |
||||||
{% else %} |
{% else %} |
||||||
<img title="{{'EditionNotAvailableFromSession'|get_lang}}" |
<img title="{{'EditionNotAvailableFromSession'|get_lang}}" |
||||||
alt="{{'EditionNotAvailableFromSession'|get_lang}}" |
alt="{{'EditionNotAvailableFromSession'|get_lang}}" |
||||||
src="{{'edit_na.png'|icon(22)}}" |
src="{{'edit_na.png'|icon(22)}}" |
||||||
style="vertical-align:middle;"> |
style="vertical-align:middle;"> |
||||||
{% endif %} |
{% endif %} |
||||||
</div> |
</div> |
||||||
{% endif %} |
{% endif %} |
||||||
|
|
||||||
<img title="{{description.type.title}}" alt="{{description.type.title}}" src="{{description.type.icon|icon(32)}}" class="icon"> |
<img title="{{description.type.title}}" alt="{{description.type.title}}" src="{{description.type.icon|icon(32)}}" class="icon"> |
||||||
{{description.title}} |
{{description.title}} |
||||||
</div> |
</div> |
||||||
<div class="sectioncomment"> |
<div class="sectioncomment"> |
||||||
{{description.content}} |
{{description.content}} |
||||||
</div> |
</div> |
||||||
</li> |
</li> |
||||||
{% endfor %} |
{% endfor %} |
||||||
</ul> |
</ul> |
||||||
@ -1,15 +1,15 @@ |
|||||||
{{javascript}} |
{{javascript}} |
||||||
|
|
||||||
{% for message in messages %} |
{% for message in messages %} |
||||||
{{ message }} |
{{ message }} |
||||||
{% endfor %} |
{% endfor %} |
||||||
|
|
||||||
<div class="btn-toolbar actions-bar" > |
<div class="btn-toolbar actions-bar" > |
||||||
<div class="btn-group"> |
<div class="btn-group"> |
||||||
<a href="{{root}}&action=listing" class="btn" title="{{'ImportCSV'|get_lang}}"> |
<a href="{{root}}&action=listing" class="btn" title="{{'ImportCSV'|get_lang}}"> |
||||||
<i class="size-32 icon-back"></i> |
<i class="size-32 icon-back"></i> |
||||||
</a> |
</a> |
||||||
</div> |
</div> |
||||||
</div> |
</div> |
||||||
|
|
||||||
{{form.return_form()}} |
{{form.return_form()}} |
||||||
@ -1,9 +1,9 @@ |
|||||||
{% include app.template_style ~ '/glossary/header.tpl' %} |
{% include app.template_style ~ '/glossary/header.tpl' %} |
||||||
|
|
||||||
<div class="actions-bar btn-toolbar" > |
<div class="actions-bar btn-toolbar" > |
||||||
<a href = "{{root}}&action=index" class="btn"> |
<a href = "{{root}}&action=index" class="btn"> |
||||||
<i class="size-32 icon-back"></i> |
<i class="size-32 icon-back"></i> |
||||||
</a> |
</a> |
||||||
</div> |
</div> |
||||||
|
|
||||||
{{form.return_form()}} |
{{form.return_form()}} |
||||||
@ -1,7 +1,7 @@ |
|||||||
{{javascript}} |
{{javascript}} |
||||||
|
|
||||||
<div id="messages"> |
<div id="messages"> |
||||||
{% for message in messages %} |
{% for message in messages %} |
||||||
{{ message }} |
{{ message }} |
||||||
{% endfor %} |
{% endfor %} |
||||||
</div> |
</div> |
||||||
@ -1,39 +1,39 @@ |
|||||||
{% include app.template_style ~ '/glossary/header.tpl' %} |
{% include app.template_style ~ '/glossary/header.tpl' %} |
||||||
{% include app.template_style ~ '/glossary/javascript.tpl' %} |
{% include app.template_style ~ '/glossary/javascript.tpl' %} |
||||||
|
|
||||||
<div class="btn-toolbar actions-bar" > |
<div class="btn-toolbar actions-bar" > |
||||||
{% if is_allowed_to_edit %} |
{% if is_allowed_to_edit %} |
||||||
<div class="btn-group edit"> |
<div class="btn-group edit"> |
||||||
<a href="{{root}}&action=add" class=" glossary btn" title="{{'Add'|get_lang}}"> |
<a href="{{root}}&action=add" class=" glossary btn" title="{{'Add'|get_lang}}"> |
||||||
<i class="size-32 icon-new-glossary-term"></i> |
<i class="size-32 icon-new-glossary-term"></i> |
||||||
</a> |
</a> |
||||||
<a href="{{root}}&action=import_csv" class="btn import_csv" title="{{'ImportCSV'|get_lang}}"> |
<a href="{{root}}&action=import_csv" class="btn import_csv" title="{{'ImportCSV'|get_lang}}"> |
||||||
<i class="size-32 icon-import-csv"></i> |
<i class="size-32 icon-import-csv"></i> |
||||||
</a> |
</a> |
||||||
<a href="{{root}}&action=export_csv" class="btn export_csv" title="{{'ExportAsCSV'|get_lang}}"> |
<a href="{{root}}&action=export_csv" class="btn export_csv" title="{{'ExportAsCSV'|get_lang}}"> |
||||||
<i class="size-32 icon-export-csv"></i> |
<i class="size-32 icon-export-csv"></i> |
||||||
</a> |
</a> |
||||||
<a href="javascript:void(0)" onclick="ui.remove_by_course('entries', this);return false;" class="btn delete_all" title="{{'DeleteAll'|get_lang}}"> |
<a href="javascript:void(0)" onclick="ui.remove_by_course('entries', this);return false;" class="btn delete_all" title="{{'DeleteAll'|get_lang}}"> |
||||||
<i class="size-32 icon-delete-all"></i> |
<i class="size-32 icon-delete-all"></i> |
||||||
</a> |
</a> |
||||||
</div> |
</div> |
||||||
{% endif %} |
{% endif %} |
||||||
<div class="btn-group edit"> |
<div class="btn-group edit"> |
||||||
{% if view == 'table' %} |
{% if view == 'table' %} |
||||||
<a href="{{root}}&view=list" class="btn" title="{{'ViewList'|get_lang}}"> |
<a href="{{root}}&view=list" class="btn" title="{{'ViewList'|get_lang}}"> |
||||||
<i class="size-32 icon-view-text"></i> |
<i class="size-32 icon-view-text"></i> |
||||||
</a> |
</a> |
||||||
{% else %} |
{% else %} |
||||||
<a href="{{root}}&view=table" class="btn" title="{{'ViewTable'|get_lang}}"> |
<a href="{{root}}&view=table" class="btn" title="{{'ViewTable'|get_lang}}"> |
||||||
<i class="size-32 icon-view-detailed"></i> |
<i class="size-32 icon-view-detailed"></i> |
||||||
</a> |
</a> |
||||||
{% endif %} |
{% endif %} |
||||||
</div> |
</div> |
||||||
|
|
||||||
</div> |
</div> |
||||||
|
|
||||||
{% if view == 'table' %} |
{% if view == 'table' %} |
||||||
{% include app.template_style ~ '/glossary/table.tpl' %} |
{% include app.template_style ~ '/glossary/table.tpl' %} |
||||||
{% else %} |
{% else %} |
||||||
{% include app.template_style ~ '/glossary/list.tpl' %} |
{% include app.template_style ~ '/glossary/list.tpl' %} |
||||||
{% endif %} |
{% endif %} |
||||||
@ -1,28 +1,28 @@ |
|||||||
<script type="text/javascript" src="{{www}}/main/glossary/resources/js/proxy.js"></script> |
<script type="text/javascript" src="{{www}}/main/glossary/resources/js/proxy.js"></script> |
||||||
<script type="text/javascript" src="{{www}}/main/glossary/resources/js/ui.js"></script> |
<script type="text/javascript" src="{{www}}/main/glossary/resources/js/ui.js"></script> |
||||||
<script type="text/javascript" src="{{www}}/main/glossary/resources/js/jquery.dataTables.js"></script> |
<script type="text/javascript" src="{{www}}/main/glossary/resources/js/jquery.dataTables.js"></script> |
||||||
|
|
||||||
<script type="text/javascript"> |
<script type="text/javascript"> |
||||||
|
|
||||||
$(function() { |
$(function() { |
||||||
|
|
||||||
ui.proxy = glossary; |
ui.proxy = glossary; |
||||||
|
|
||||||
window.context = {}; |
window.context = {}; |
||||||
|
|
||||||
context.sec_token = '{{sec_token}}'; |
context.sec_token = '{{sec_token}}'; |
||||||
context.c_id = '{{c_id}}'; |
context.c_id = '{{c_id}}'; |
||||||
context.session_id = '{{session_id}}'; |
context.session_id = '{{session_id}}'; |
||||||
context.www = '{{www}}'; |
context.www = '{{www}}'; |
||||||
context.ajax = '{{www}}/main/inc/ajax/glossary.ajax.php'; |
context.ajax = '{{www}}/main/inc/ajax/glossary.ajax.php'; |
||||||
|
|
||||||
if(typeof(lang) == "undefined") |
if(typeof(lang) == "undefined") |
||||||
{ |
{ |
||||||
window.lang = {}; |
window.lang = {}; |
||||||
} |
} |
||||||
|
|
||||||
lang.ConfirmYourChoice = "{{'ConfirmYourChoice'|get_lang}}"; |
lang.ConfirmYourChoice = "{{'ConfirmYourChoice'|get_lang}}"; |
||||||
|
|
||||||
}); |
}); |
||||||
|
|
||||||
</script> |
</script> |
||||||
@ -1,35 +1,35 @@ |
|||||||
|
|
||||||
<ul id="entries" class="unstyled glossary entries" data-c_id="{{c_id}}" data-session_id="{{session_id}}" > |
<ul id="entries" class="unstyled glossary entries" data-c_id="{{c_id}}" data-session_id="{{session_id}}" > |
||||||
{% for item in items %} |
{% for item in items %} |
||||||
<li id="glossary_{{item.id}}" class="glossary term" data-id="{{item.id}}" data-c_id="{{item.c_id}}" data-type="glossary"> |
<li id="glossary_{{item.id}}" class="glossary term" data-id="{{item.id}}" data-c_id="{{item.c_id}}" data-type="glossary"> |
||||||
<div class="title sectiontitle"> |
<div class="title sectiontitle"> |
||||||
{% if is_allowed_to_edit %} |
{% if is_allowed_to_edit %} |
||||||
<div class="pull-right"> |
<div class="pull-right"> |
||||||
{% if session_id == item.session_id %} |
{% if session_id == item.session_id %} |
||||||
<a href="{{root}}&action=edit&id={{item.id}}" |
<a href="{{root}}&action=edit&id={{item.id}}" |
||||||
title="{{'Edit'|get_lang}}"> |
title="{{'Edit'|get_lang}}"> |
||||||
<i class="size-22 icon-edit"></i> |
<i class="size-22 icon-edit"></i> |
||||||
</a> |
</a> |
||||||
<a href="{{root}}&action=delete&id={{item.id}}" |
<a href="{{root}}&action=delete&id={{item.id}}" |
||||||
onclick="ui.remove('glossary_{{item.id}}', this); return false;" |
onclick="ui.remove('glossary_{{item.id}}', this); return false;" |
||||||
title="{{'Delete'|get_lang}}"> |
title="{{'Delete'|get_lang}}"> |
||||||
<i class="size-22 icon-delete"></i> |
<i class="size-22 icon-delete"></i> |
||||||
</a> |
</a> |
||||||
|
|
||||||
{% else %} |
{% else %} |
||||||
<img title="{{'EditionNotAvailableFromSession'|get_lang}}" |
<img title="{{'EditionNotAvailableFromSession'|get_lang}}" |
||||||
alt="{{'EditionNotAvailableFromSession'|get_lang}}" |
alt="{{'EditionNotAvailableFromSession'|get_lang}}" |
||||||
src="{{'edit_na.png'|icon(22)}}" |
src="{{'edit_na.png'|icon(22)}}" |
||||||
style="vertical-align:middle;"> |
style="vertical-align:middle;"> |
||||||
{% endif %} |
{% endif %} |
||||||
</div> |
</div> |
||||||
{% endif %} |
{% endif %} |
||||||
|
|
||||||
{{item.name}} |
{{item.name}} |
||||||
</div> |
</div> |
||||||
<div class="sectioncomment"> |
<div class="sectioncomment"> |
||||||
{{item.description}} |
{{item.description}} |
||||||
</div> |
</div> |
||||||
</li> |
</li> |
||||||
{% endfor %} |
{% endfor %} |
||||||
</ul> |
</ul> |
||||||
@ -1,72 +1,72 @@ |
|||||||
<script type="text/javascript"> |
<script type="text/javascript"> |
||||||
|
|
||||||
$(document).ready(function() { |
$(document).ready(function() { |
||||||
$('#entries').dataTable( { |
$('#entries').dataTable( { |
||||||
"oLanguage": { |
"oLanguage": { |
||||||
"sLengthMenu": "_MENU_ " + "{{'DataTableLengthMenu'|get_lang}}", |
"sLengthMenu": "_MENU_ " + "{{'DataTableLengthMenu'|get_lang}}", |
||||||
"sZeroRecords": "{{'DataTableZeroRecords'|get_lang}}", |
"sZeroRecords": "{{'DataTableZeroRecords'|get_lang}}", |
||||||
"sInfo": "{{'DataTableInfo'|get_lang}}", |
"sInfo": "{{'DataTableInfo'|get_lang}}", |
||||||
"sInfoEmpty": "{{'DataTableInfoEmpty'|get_lang}}", |
"sInfoEmpty": "{{'DataTableInfoEmpty'|get_lang}}", |
||||||
"sInfoFiltered": "{{'DataTableInfoFiltered'|get_lang}}", |
"sInfoFiltered": "{{'DataTableInfoFiltered'|get_lang}}", |
||||||
"sSearch": "{{'DataTableSearch'|get_lang}}", |
"sSearch": "{{'DataTableSearch'|get_lang}}", |
||||||
"oPaginate": { |
"oPaginate": { |
||||||
"sPrevious": "", |
"sPrevious": "", |
||||||
"sNext": "" |
"sNext": "" |
||||||
} |
} |
||||||
} |
} |
||||||
}); |
}); |
||||||
} ); |
} ); |
||||||
|
|
||||||
</script> |
</script> |
||||||
|
|
||||||
<table id="entries" class="data_table glossary entries" data-c_id="{{c_id}}" data-session_id="{{session_id}}" > |
<table id="entries" class="data_table glossary entries" data-c_id="{{c_id}}" data-session_id="{{session_id}}" > |
||||||
<thead> |
<thead> |
||||||
<tr> |
<tr> |
||||||
<th class="sorting"> |
<th class="sorting"> |
||||||
{{'TermName'|get_lang}} |
{{'TermName'|get_lang}} |
||||||
</th> |
</th> |
||||||
<th class="sorting"> |
<th class="sorting"> |
||||||
{{'TermDefinition'|get_lang}} |
{{'TermDefinition'|get_lang}} |
||||||
</th> |
</th> |
||||||
{% if is_allowed_to_edit %} |
{% if is_allowed_to_edit %} |
||||||
<th> |
<th> |
||||||
{{'Actions'|get_lang}} |
{{'Actions'|get_lang}} |
||||||
</th> |
</th> |
||||||
{% endif %} |
{% endif %} |
||||||
</tr> |
</tr> |
||||||
</thead> |
</thead> |
||||||
<tbody> |
<tbody> |
||||||
{% for item in items %} |
{% for item in items %} |
||||||
<tr id="glossary_{{item.id}}" class="glossary term" data-id="{{item.id}}" data-c_id="{{item.c_id}}" data-type="glossary"> |
<tr id="glossary_{{item.id}}" class="glossary term" data-id="{{item.id}}" data-c_id="{{item.c_id}}" data-type="glossary"> |
||||||
<td class="title"> |
<td class="title"> |
||||||
{{item.name}} |
{{item.name}} |
||||||
</td> |
</td> |
||||||
<td class=""> |
<td class=""> |
||||||
{{item.description}} |
{{item.description}} |
||||||
</td> |
</td> |
||||||
{% if is_allowed_to_edit %} |
{% if is_allowed_to_edit %} |
||||||
<td class="td_actions"> |
<td class="td_actions"> |
||||||
{% if session_id == item.session_id %} |
{% if session_id == item.session_id %} |
||||||
<a href="{{root}}&action=edit&id={{item.id}}" |
<a href="{{root}}&action=edit&id={{item.id}}" |
||||||
title="{{'Edit'|get_lang}}"> |
title="{{'Edit'|get_lang}}"> |
||||||
<i class="size-22 icon-edit"></i> |
<i class="size-22 icon-edit"></i> |
||||||
</a> |
</a> |
||||||
<a href="{{root}}&action=delete&id={{item.id}}" |
<a href="{{root}}&action=delete&id={{item.id}}" |
||||||
onclick="ui.remove('glossary_{{item.id}}', this); return false;" |
onclick="ui.remove('glossary_{{item.id}}', this); return false;" |
||||||
title="{{'Delete'|get_lang}}"> |
title="{{'Delete'|get_lang}}"> |
||||||
<i class="size-22 icon-delete"></i> |
<i class="size-22 icon-delete"></i> |
||||||
</a> |
</a> |
||||||
{% else %} |
{% else %} |
||||||
<img title="{{'EditionNotAvailableFromSession'|get_lang}}" |
<img title="{{'EditionNotAvailableFromSession'|get_lang}}" |
||||||
alt="{{'EditionNotAvailableFromSession'|get_lang}}" |
alt="{{'EditionNotAvailableFromSession'|get_lang}}" |
||||||
src="{{'edit_na.png'|icon(22)}}" |
src="{{'edit_na.png'|icon(22)}}" |
||||||
style="vertical-align:middle;"> |
style="vertical-align:middle;"> |
||||||
{% endif %} |
{% endif %} |
||||||
</td> |
</td> |
||||||
{% endif %} |
{% endif %} |
||||||
</tr> |
</tr> |
||||||
{% endfor %} |
{% endfor %} |
||||||
</tbody> |
</tbody> |
||||||
</table> |
</table> |
||||||
<div style="clear:both"></div> |
<div style="clear:both"></div> |
||||||
|
|
||||||
@ -1,9 +1,9 @@ |
|||||||
{% include app.template_style ~ '/glossary/header.tpl' %} |
{% include app.template_style ~ '/glossary/header.tpl' %} |
||||||
|
|
||||||
<div class="actions-bar btn-toolbar" > |
<div class="actions-bar btn-toolbar" > |
||||||
<a href = "{{root}}&action=index" class="btn"> |
<a href = "{{root}}&action=index" class="btn"> |
||||||
<i class="size-32 icon-back"></i> |
<i class="size-32 icon-back"></i> |
||||||
</a> |
</a> |
||||||
</div> |
</div> |
||||||
|
|
||||||
{{form.return_form()}} |
{{form.return_form()}} |
||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue