developer_key_form.handlebars 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <form action='{{_formAction}}{{#if id}}/{{id}}{{/if}}' method='{{#if id}}PUT{{else}}POST{{/if}}' class="key_form">
  2. <table class='formtable'>
  3. <tr>
  4. <td><label for='key_name'>{{#t "key_name"}}Key Name:{{/t}}</label></td>
  5. <td><input type='text' id='key_name' name='developer_key[name]' value='{{ name }}'/>
  6. </tr>
  7. <tr>
  8. <td><label for='email'>{{#t "owner_email"}}Owner Email:{{/t}}</label></td>
  9. <td><input type='text' id='email' name='developer_key[email]' value='{{ email }}'/>
  10. </tr>
  11. <tr>
  12. <td><label for='redirect_uri'>{{#t "redirect_uri"}}Redirect URI (Legacy):{{/t}}</label></td>
  13. <td><input type='text' id='redirect_uri' name='developer_key[redirect_uri]' value='{{ redirect_uri }}'/>
  14. </tr>
  15. <tr>
  16. <td><label for='redirect_uris'>{{#t "redirect_uris"}}Redirect URIs:{{/t}}</label></td>
  17. <td><textarea id='redirect_uris' name='developer_key[redirect_uris]' class="input-block-level">{{ redirect_uris }}</textarea>
  18. </tr>
  19. <tr>
  20. <td><label for='vendor_code'>{{#t "vendor_code"}}Vendor Code (LTI 2):{{/t}}</label></td>
  21. <td><input type='text' id='vendor_code' name='developer_key[vendor_code]' value='{{ vendor_code }}'/>
  22. </tr>
  23. <tr>
  24. <td><label for='icon_url'>{{#t "icon_url"}}Icon URL:{{/t}}</label></td>
  25. <td><input type='text' id='icon_url' name='developer_key[icon_url]' value='{{ icon_url }}'/>
  26. </tr>
  27. <tr>
  28. <td><label for='notes'>{{#t "notes"}}Notes:{{/t}}</label></td>
  29. <td><textarea id='notes' name='developer_key[notes]' class="input-block-level">{{ notes }}</textarea>
  30. </tr>
  31. <tr>
  32. <td colspan='2'>
  33. <div class='button-container'>
  34. <button type='button' class='btn dialog_closer cancel'>{{#t "cancel"}}Cancel{{/t}}</button>
  35. <button type='submit' class='btn btn-primary submit'>{{#t "save_key"}}Save Key{{/t}}</button>
  36. </div>
  37. </td>
  38. </tr>
  39. </table>
  40. </form>