2023-07-13 19:50:45 +10:00
|
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
|
|
|
|
|
|
2023-07-14 01:52:00 +10:00
|
|
|
|
{% include 'navbar.html' %}
|
2023-07-18 23:22:14 +10:00
|
|
|
|
|
|
|
|
|
<div class="row">
|
2023-07-18 23:26:41 +10:00
|
|
|
|
<div class="col s7 m6">
|
2023-07-18 23:49:31 +10:00
|
|
|
|
<div class="card">
|
|
|
|
|
<div class="card-content">
|
2023-07-18 23:46:12 +10:00
|
|
|
|
<div class="row">
|
2023-07-18 23:50:48 +10:00
|
|
|
|
<span class="card-title">Создай то, о чем будут говорить многие.</span>
|
2023-07-19 00:02:34 +10:00
|
|
|
|
<a class="btn-floating halfway-fab waves-effect waves-light red" href="#post-{{ target_post_id }}"><i class="material-icons">>></i></a>
|
2023-07-18 23:46:12 +10:00
|
|
|
|
<div class="input-field col s6">
|
|
|
|
|
<input id="send_this_text" type="text" >
|
|
|
|
|
<label for="send_this_text">Печатать сюда</label>
|
|
|
|
|
</div>
|
2023-07-18 23:49:31 +10:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2023-07-19 00:14:13 +10:00
|
|
|
|
<div class="card-action">
|
|
|
|
|
<button class="btn waves-effect waves-light"
|
|
|
|
|
type="submit" name="action"
|
2023-07-19 00:19:58 +10:00
|
|
|
|
hx-post="/post_to_another_post/{{ target_post_id }}"
|
2023-07-19 00:14:13 +10:00
|
|
|
|
hx-target="#neu-posts"
|
|
|
|
|
hx-include="[name='send_this_text']"
|
|
|
|
|
>
|
|
|
|
|
Отправить!!
|
2023-07-18 23:43:22 +10:00
|
|
|
|
<i class="material-icons right">send</i>
|
|
|
|
|
</button>
|
2023-07-19 00:14:13 +10:00
|
|
|
|
</div>
|
2023-07-18 23:39:40 +10:00
|
|
|
|
|
|
|
|
|
<!-- <h1>Загрузить картинку:</h1>
|
2023-07-18 23:26:32 +10:00
|
|
|
|
<input type="file" #file placeholder="Загрузить картинку" (change)="sendPic($event)" style="display:none;">
|
|
|
|
|
<button type="button" class="btn btn-success" (click)="file.click()">Загрузить картинку</button>
|
|
|
|
|
<div *ngFor="let singlePic of inputImages" >Картинка: {{singlePic}}</div>
|
|
|
|
|
<p>
|
2023-07-18 23:39:40 +10:00
|
|
|
|
<button (click)="eraseData()" >Убрать картинку</button>
|
|
|
|
|
</p> -->
|
2023-07-18 23:26:32 +10:00
|
|
|
|
</div>
|
2023-07-18 23:49:31 +10:00
|
|
|
|
</div>
|
2023-07-18 23:22:14 +10:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2023-07-13 19:50:45 +10:00
|
|
|
|
|
2023-07-13 21:45:11 +10:00
|
|
|
|
<div class="row" >
|
2023-07-18 23:28:39 +10:00
|
|
|
|
<div class="col s5 m4" id="neu-posts">
|
2023-07-13 21:26:04 +10:00
|
|
|
|
{% include 'i-posts.html' %}
|
2023-07-13 21:34:06 +10:00
|
|
|
|
</div>
|
2023-07-13 21:26:04 +10:00
|
|
|
|
</div>
|
|
|
|
|
|
2023-07-13 19:50:45 +10:00
|
|
|
|
|
|
|
|
|
{% endblock content %}
|