diff options
Diffstat (limited to 'views/new-node.templ')
-rw-r--r-- | views/new-node.templ | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/views/new-node.templ b/views/new-node.templ deleted file mode 100644 index b92dbba..0000000 --- a/views/new-node.templ +++ /dev/null @@ -1,30 +0,0 @@ -package views - -import ( - "fmt" - "gitrepo.ru/neonxp/gorum/models" - "strconv" -) - -templ NewNode(parent *models.Node) { - <details> - <summary>Создать топик</summary> - <form method="post" action={ templ.URL(fmt.Sprintf("/n/%d/new", parent.ID)) }> - @CSRF() - <input type="hidden" name="type" value={ strconv.Itoa(int(models.TopicType)) }/> - <label for="text">Топик</label> - <input type="text" name="text" id="text" placeholder="имя темы..."/> - <input type="submit" value="Создать"/> - </form> - </details> - <details> - <summary>Создать пост</summary> - <form method="post" action={ templ.URL(fmt.Sprintf("/n/%d/new", parent.ID)) }> - @CSRF() - <input type="hidden" name="type" value={ strconv.Itoa(int(models.PostType)) }/> - <label for="text">Текст</label> - <textarea name="text" id="text" placeholder="текст..." rows="10"></textarea> - <input type="submit" value="Создать"/> - </form> - </details> -} |