node-detail-home.html 1.65 KB
Newer Older
1
{% load i18n %}
2 3 4 5 6 7 8 9
<div class="row">
  <div class="col-md-4">
    <dl>
      <dt>System:</dt>
      <dd><i class="icon-linux"></i> Uhu Binux Optikai Rendszer</dd>
      <dt>Description:</dt>
      <dd><small>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc est libero, hendrerit at posuere sed, molestie congue quam. </small></dd>
    </dl>
10 11 12
    <div style="font-weight: bold;">{% trans "Traits" %}</div>
    <div id="node-details-traits" style="margin-bottom: 20px;">
      <div id="node-details-traits-list">
13 14
        {% if node.traits.all %}
          {% for t in node.traits.all %}
15
            <div class="label label-success label-tag" style="display: inline-block">
16
              {{ t }}
17
	      <a data-trait-pk="{{ t.pk }}" href="#" class="node-details-remove-trait"><i class="icon-remove"></i></a>
18 19 20 21 22 23 24 25
            </div>
          {% endfor %}
        {% else %}
          <small>No trait added!</small>
        {% endif %}
      </div>
      <form action="" method="POST">
        {% csrf_token %}
26
        <div class="input-group" id="node-details-traits-form">
27 28 29 30 31 32 33
          <input type="text" class="form-control input-sm input-traits" name="new_trait" id="node-details-traits-input"/>
          <div class="input-group-btn">
            <input type="submit" class="btn btn-default btn-sm input-traits" value="{% trans "Add trait" %}"/>
          </div>
        </div>
      </form>
    </div><!-- id:node-details-traits -->
34 35 36 37 38 39 40 41
  </div>
  <div class="col-md-8">
<img src="/static/grafikon.png" style="width:45%"/>
<img src="/static/grafikon.png" style="width:45%"/>
<img src="/static/grafikon.png" style="width:45%"/>
<img src="/static/grafikon.png" style="width:45%"/>
  </div>
</div>