KXStudio Website https://kx.studio/
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.

new_aggregate.twig 2.7KB

9 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. {% extends "layout.twig" %}
  2. {% block title %}${ "Add Aggregate" | translate("aggregator") }{% endblock %}
  3. {% block content %}
  4. <h1>${ "New Aggregate" | translare("aggregator") }</h1>
  5. <form id="new_aggregate" class="split" action="{% admin "new_aggregate" %}" method="post" accept-charset="utf-8" enctype="multipart/form-data">
  6. <fieldset>
  7. <p>
  8. <label for="name">${ "Name" | translate("aggregator") }</label>
  9. <input class="text" type="text" name="name" value="${ POST.name | escape }" id="name" />
  10. </p>
  11. <p>
  12. <label for="url">${ "Source URL" | translate("aggregator") }</label>
  13. <input class="text code" type="text" name="url" value="${ url | escape }" id="url" size="50" />
  14. </p>
  15. <p>
  16. <label for="feather">${ "Feather" | translate("aggregator") }</label>
  17. <select name="feather" id="feather">
  18. {% for feather in feathers %}
  19. <option value="$feather.safename"${ user.id | option_selected(POST.author) }>$feather.name</option>
  20. {% endfor %}
  21. </select>
  22. </p>
  23. <p>
  24. <label for="author">${ "Author" | translate("aggregator") }</label>
  25. <select name="author" id="author">
  26. {% for user in users %}
  27. <option value="$user.id"${ user.id | option_selected(POST.author) }>${ user.full_name | fallback(user.login) }</option>
  28. {% endfor %}
  29. </select>
  30. </p>
  31. <p>
  32. <label for="data">
  33. ${ "Post Attributes" | translate("aggregator") }
  34. <span class="sub">
  35. <a href="{% admin "help&id=aggregation_syntax" %}" class="help emblem"><img src="$theme_url/images/icons/help.png" alt="help" /></a>
  36. </span>
  37. </label>
  38. <textarea class="code" name="data" rows="9" cols="50" class="wide" id="data">${ POST.data | escape }</textarea>
  39. </p>
  40. <br />
  41. <p>
  42. <button type="submit" class="yay"><img src="$theme_url/images/icons/success.png" alt="success" />${ "Add Aggregate" | translate("aggregator") }</button>
  43. </p>
  44. <input type="hidden" name="hash" value="$site.secure_hashkey" id="hash" />
  45. </fieldset>
  46. </form>
  47. {% endblock %}