Navigation between admin/upload and project page

This commit is contained in:
2021-11-06 19:38:51 +01:00
parent cb8a609605
commit dd04e7ee17
18 changed files with 218 additions and 94 deletions

View File

@@ -1,6 +1,7 @@
<div id="admin">
<h1>Projects</h1>
<div id="projects">
<a name="back" class="button" href="[#]host_url[#]"><i class="fa fa-back push"></i>[#]lang:nav_back[#]</a>
<h1>[#]lang:projects[#]</h1>
<div id="project_section">
<table>
<thead>
<tr>
@@ -17,8 +18,8 @@
</table>
<div id="new"></div>
</div>
<h1>Feeds</h1>
<div id="feeds">
<h1>[#]lang:feeds[#]</h1>
<div id="feed_section">
<table>
<thead>
<tr>
@@ -36,7 +37,7 @@
</table>
</div>
<h1>Spots</h1>
<div id="spots">
<div id="spot_section">
<table>
<thead>
<tr>
@@ -49,13 +50,13 @@
<tbody></tbody>
</table>
</div>
<h1>Users</h1>
<div id="users">
<h1>[#]lang:active_users[#]</h1>
<div id="user_section">
<table>
<thead>
<tr>
<th>[#]lang:id_user[#]</th>
<th>[#]lang:name[#]</th>
<th>[#]lang:user_name[#]</th>
<th>[#]lang:language[#]</th>
<th>[#]lang:time_zone[#]</th>
<th>[#]lang:clearance[#]</th>
@@ -64,15 +65,15 @@
<tbody></tbody>
</table>
</div>
<h1>ToolBox</h1>
<h1>[#]lang:toolbox[#]</h1>
<div id="toolbox"></div>
<div id="feedback" class="feedback"></div>
</div>
<script type="text/javascript">
oSpot.pageInit = function(asHash) {
self.get('admin_get', setProjects);
$('#new').addButton('new', 'New Project', 'new', createProject, 'main-btn');
$('#toolbox').addButton('refresh', 'Update Project', 'refresh', updateProject, 'main-btn');
$('#new').addButton('new', self.lang('new_project'), 'new', createProject);
$('#toolbox').addButton('refresh', self.lang('update_project'), 'refresh', updateProject);
};
oSpot.onFeedback = function(sType, sMsg, asContext) {
@@ -139,11 +140,11 @@ function setProjects(asElemTypes) {
.append($('<td>').text(oElem.name))
.append($('<td>').text(oElem.language))
.append($('<td>').text(oElem.timezone))
.append($('<td>').text(oElem.clearance))
.append($('<td>').addInput('number', 'clearance', oElem.clearance, aoEvents))
break;
}
$Elem.appendTo($('#'+sElemType+'s').find('table tbody'));
$Elem.appendTo($('#'+sElemType+'_section').find('table tbody'));
}
});
});