puppet node classifier
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

35 lines
1.5 KiB

  1. {% extends "page.html" %}
  2. {% block title %}{% if node %}Edit{% else %}Create{% endif %} node{% endblock %}
  3. {% block subtitle %}{% if node %}Editing "{{ node.fqdn }}"{% else %}New item{% endif %}{% endblock %}
  4. {% block buttons %}
  5. {% if node is defined %}<a href="/nodes/{{ node.fqdn }}"><button class="secondary-button pure-button">Back</button></a>{% endif %}
  6. {% endblock %}
  7. {% block body %}
  8. <div class="photo-view pure-g">
  9. <div class="photo-form pure-u-2-3">
  10. <form action="/node_edit" method="post" class="pure-form pure-form-stacked">
  11. <fieldset>
  12. <fieldset class="pure-group pure-u-1">
  13. <input name="fqdn" type="text" class="pure-input-1" placeholder="FQDN" value="{{ node.fqdn or '' }}" />
  14. <textarea name="body" class="pure-input-1" placeholder="Body" rows="15">{{ node and node.body or '' }}</textarea>
  15. </fieldset>
  16. <!-- <div class="pure-u-1">
  17. <label for="offset">Offset (minutes)</label>
  18. <input id="offset" class="pure-u-1-2" type="text" name="offset" value="xxx" />
  19. </div> -->
  20. <div class="pure-u-1">
  21. <input type="submit" class="pure-button pure-button-primary" name="op" value="{% if node %}Edit{% else %}Create{% endif %}" />
  22. </div>
  23. </fieldset>
  24. </form>
  25. </div>
  26. <div class="photo-info pure-u-1-3">
  27. xxx
  28. </div>
  29. </div>
  30. {% endblock %}