summaryrefslogtreecommitdiffstats
path: root/askbot/skins/default/templates/embed/list_widgets.html
blob: 83de587109ce823b46359b8f7604e77741a26106 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{% extends "two_column_body.html" %}
<!-- create_ask_widget.html -->
{% block title %}{{widget_name|capitalize}} widget list{% endblock %}
{% block content %}
  <h1>{{widget_name|capitalize}} widget list</h1>

<table border="0">
  <tr>
    <th>Widget Title </th>
    <th>Code</th>
    <th>Actions</th>
  </tr>
  {% if widget_name == 'ask' %}
  {%for widget in widgets%}
    <tr>
      <td>{{widget.title}}</td>
      <td> &lt;script type="text/javascript" src="http://{{request.get_host()}}{% url render_ask_widget widget.id%}" &gt;&lt;/script&gt;</td> 
      <td><a href="{% url edit_widget widget_name, widget.id %}">Edit</a> | <a href="{% url delete_widget widget_name, widget.id %}">Delete</a></td>
    </tr>
  {%endfor%}
  {%else%}
  {%for widget in widgets%}
    <tr>
      <td>{{widget.title}}</td>
      <td> &lt;iframe src="http://{{request.get_host()}}{% url question_widget widget.id%}" &gt; &lt;/iframe&gt;</td> 
      <td><a href="{% url edit_widget widget_name, widget.id %}">Edit</a> | <a href="{% url delete_widget widget_name, widget.id %}">Delete</a></td>
    </tr>
  {%endfor%}

  {%endif%}
</table>

{% endblock %}
{% block endjs %}
{% endblock %}

{% block sidebar %}
<div class="box">
    <h2>{% trans %}How to use?{% endtrans %}</h2>
    <p>{% trans %}
    Just copy the &lt;script&gt; tag provided and paste it in the site where you wan to put it.
    {%endtrans%} 
    </p>
  </div>
{% endblock %}