1
0
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:
Adolfo Gómez García 2014-11-06 04:01:54 +01:00
parent 5f377762b5
commit c0669bc1f2
2 changed files with 47 additions and 0 deletions

View 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

View 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">&times;</button>
{{ message }}
</div>
{% endfor %}
</div>
</div>
{% endif %}
{% verbatim %}
<div class="row">
<div id="{{ gallery }}" class="col-xs-12"></div>
</div>
{% endverbatim %}