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.

54 lines
3.0KB

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