Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
BeHub-web
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dominik Rosiek
BeHub-web
Commits
dc29f735
Commit
dc29f735
authored
Nov 22, 2015
by
Rafal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
all
parent
601647cd
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
beacon.js
BeHub/Hub/static/js/beacon.js
+3
-3
beacon_list.html
BeHub/Hub/templates/user_panel/content/beacon_list.html
+6
-1
No files found.
BeHub/Hub/static/js/beacon.js
View file @
dc29f735
...
...
@@ -7,7 +7,7 @@ function show_beacons(){
html
=
[]
for
(
var
i
=
0
;
i
<
beacon_managers
.
length
;
i
++
){
beacon
=
beacon_managers
[
i
].
beacon
;
html
.
push
([
'<div class="box">'
,
html
.
push
([
'<div class="box
shadow
">'
,
'<table class="table borderless">'
,
'<tbody>'
,
'<tr>'
,
...
...
@@ -15,7 +15,7 @@ function show_beacons(){
'<td>'
].
join
(
""
));
for
(
var
j
=
0
;
j
<
beacon_managers
[
i
].
sites
.
length
;
j
++
){
html
.
push
([
'<p> <a href="'
,
beacon_managers
[
i
].
sites
[
j
].
link_url
,
'">'
,
beacon_managers
[
i
].
sites
[
j
].
link_url
,
'</a>'
,
'<button onclick="removeLink(
\'
'
,
beacon_managers
[
i
].
url
,
'
\'
,
\'
'
,
beacon_managers
[
i
].
sites
[
j
].
url
,
'
\'
)" class="btn btn-danger" >Usun</button></p>'
].
join
(
""
))
'<
/td><td class="col-md-offset-0">'
,
'<
button onclick="removeLink(
\'
'
,
beacon_managers
[
i
].
url
,
'
\'
,
\'
'
,
beacon_managers
[
i
].
sites
[
j
].
url
,
'
\'
)" class="btn btn-danger" >Usun</button></p>'
].
join
(
""
))
}
html
.
push
([
'<p> <button class="btn btn-success">Dodaj link</button></p>'
,
'</td>'
,
...
...
@@ -47,7 +47,7 @@ function show_beacons_list(){
'<td>'
].
join
(
""
));
for
(
var
j
=
0
;
j
<
beacon_managers
[
i
].
sites
.
length
;
j
++
){
html
.
push
([
'<p> <a href="'
,
beacon_managers
[
i
].
sites
[
j
].
link_url
,
'">'
,
beacon_managers
[
i
].
sites
[
j
].
link_url
,
'</a>'
,
'<button onclick="removeLink(
\'
'
,
beacon_managers
[
i
].
url
,
'
\'
,
\'
'
,
beacon_managers
[
i
].
sites
[
j
].
url
,
'
\'
)" class="btn btn-danger" >Usun</button></p>'
].
join
(
""
))
'</td><td class="col-md-offset-0">'
,
'<button onclick="removeLink(
\'
'
,
beacon_managers
[
i
].
url
,
'
\'
,
\'
'
,
beacon_managers
[
i
].
sites
[
j
].
url
,
'
\'
)" class="btn btn-danger" >Usun</button></p>'
].
join
(
""
))
}
html
.
push
([
'<p> <button class="btn btn-success">Dodaj link</button></p>'
,
'</td>'
,
...
...
BeHub/Hub/templates/user_panel/content/beacon_list.html
View file @
dc29f735
...
...
@@ -20,6 +20,9 @@
</div>
</a>
</div>
<div
class=
"row"
>
<div
class=
"col-md-10 col-md-offset-1"
>
<script>
$
(
document
).
ready
(
function
(){
show_beacons_list
();
...
...
@@ -33,7 +36,7 @@
{% include 'user_panel/content/beacon_detail.html' %}
</div>
</div>
</div>
<!-- Modal -->
...
...
@@ -120,5 +123,7 @@
});
}
</script>
</div>
</div>
{% endblock content %}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment