~lutostag/ubuntu/trusty/maas/1.5.4+keystone

« back to all changes in this revision

Viewing changes to src/maasserver/templates/maasserver/settings_commissioning_scripts.html

  • Committer: Package Import Robot
  • Author(s): Andres Rodriguez
  • Date: 2013-03-04 11:49:44 UTC
  • mto: This revision was merged to the branch mainline in revision 25.
  • Revision ID: package-import@ubuntu.com-20130304114944-azcvu9anlf8mizpa
Tags: upstream-1.3+bzr1452+dfsg
Import upstream version 1.3+bzr1452+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
  <script type="text/javascript">
 
2
  <!--
 
3
  YUI().use('maas.reveal', function (Y) {
 
4
    Y.on('load', function() {
 
5
      Y.all('a.script-name').on('click', function(e) {
 
6
        e.preventDefault();
 
7
        var reveal = new Y.maas.reveal.Reveal({
 
8
          targetNode: Y.one(e.target).ancestor().one('.script-content'),
 
9
          linkNode: e.target
 
10
          }).reveal();
 
11
      });
 
12
    });
 
13
  });
 
14
  // -->
 
15
  </script>
 
16
 
 
17
<h2>Commissioning scripts</h2>
 
18
  <table class="list">
 
19
    <tbody>
 
20
    {% for script in commissioning_scripts %}
 
21
      <tr class="script {% cycle 'even' 'odd' %}" id="{{ script.name }}">
 
22
        <td>
 
23
          <a href="#" class="script-name">
 
24
            {{ script.name}}</a>
 
25
          <div class="script-content slider">
 
26
            <pre class="content">{{ script.content }}</pre>
 
27
          </div>
 
28
        </td>
 
29
        <td class="icon-controls">
 
30
          <a title="Delete commissioning script {{ script.name }}"
 
31
             href="{% url 'commissioning-script-delete' script.id %}">
 
32
             <img src="{{ STATIC_URL }}img/delete.png" alt="delete" />
 
33
          </a>
 
34
        </td>
 
35
      </tr>
 
36
    </tbody>
 
37
    {% empty %}
 
38
    No commissioning scripts.
 
39
    {% endfor %}
 
40
  </table>
 
41
<div>
 
42
  <a class="button right space-top-small"
 
43
     href="{% url 'commissioning-script-add' %}">
 
44
    Upload script
 
45
  </a>
 
46
</div>
 
47
<div class="clear"></div>
 
48