mirror of
https://github.com/dkmstr/openuds.git
synced 2025-03-12 04:58:34 +03:00
Added missing gallery files :-)
This commit is contained in:
parent
5f377762b5
commit
c0669bc1f2
19
server/src/uds/static/adm/js/gui-d-gallery.coffee
Normal file
19
server/src/uds/static/adm/js/gui-d-gallery.coffee
Normal file
@ -0,0 +1,19 @@
|
||||
gui.gallery = new GuiElement(api.gallery, "imgal")
|
||||
gui.gallery.link = ->
|
||||
"use strict"
|
||||
api.templates.get "gallery", (tmpl) ->
|
||||
gui.clearWorkspace()
|
||||
gui.appendToWorkspace api.templates.evaluate(tmpl,
|
||||
gallery: "gallery-placeholder"
|
||||
)
|
||||
gui.gallery.table
|
||||
container: "gallery-placeholder"
|
||||
rowSelect: "single"
|
||||
buttons: [
|
||||
"new"
|
||||
"delete"
|
||||
]
|
||||
onDelete: gui.methods.del(gui.gallery, gettext("Delete Image"), gettext("Image deletion error"))
|
||||
return
|
||||
|
||||
return
|
28
server/src/uds/templates/uds/admin/tmpl/gallery.html
Normal file
28
server/src/uds/templates/uds/admin/tmpl/gallery.html
Normal file
@ -0,0 +1,28 @@
|
||||
{% load i18n html5 static %}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<h1>{% trans 'UDS Image Gallery' %}</h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><a class="lnk-dashboard" href="#"><i class="fa fa-dashboard"></i> Dashboard</a></li>
|
||||
<li>{% trans 'Gallery' %}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div><!-- /.row -->
|
||||
{% if messages %}
|
||||
<div class="row">
|
||||
<div class="col-md-offset-2 col-md-8">
|
||||
{% for message in messages %}
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{ message }}
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% verbatim %}
|
||||
<div class="row">
|
||||
<div id="{{ gallery }}" class="col-xs-12"></div>
|
||||
</div>
|
||||
{% endverbatim %}
|
Loading…
x
Reference in New Issue
Block a user