<th>{% trans "Title" %}</th>
<th>MP3</th>
<th>Ogg</th>
- <th colspan="3">YouTube</th>
+ <th colspan="5">YouTube</th>
</tr>
</thead>
<tbody>
<em class="text-warning" title="ddd">
({{ audiobook }})
</em>
- {% endif %}
+ {% endif %}
</a>
</td>
<td>{% status audiobook "mp3" %}</td>
{{ audiobook.youtube_volume_index }}/{{ volumes }}
</td>
<td>
- {{ audiobook.youtube_volume }}
+ <form method="POST" action="{% url 'book_youtube_volume' audiobook.id %}">
+ {% csrf_token %}
+ <input name='volume' value="{{ audiobook.youtube_volume }}" class="form-control">
+ </form>
+ </td>
+ <td>
+ {{ audiobook.total|duration }}
+ </td>
+ <td>
+ {{ audiobook.duration|duration }}
</td>
<td>
{% status audiobook "youtube" %}
</td>
<td>
<span class="text-secondary">
- {{ audiobook.youtube_volume }}
+ <form method="POST" action="{% url 'book_youtube_volume' audiobook.id %}">
+ {% csrf_token %}
+ <input name='volume' value="{{ audiobook.youtube_volume }}" class="form-control">
+ </form>
</span>
</td>
<td>
+ </td> >
+ <td class="text-secondary">
+ {{ audiobook.duration|duration }}
+ </td>
+ <td>
</td>
{% endifchanged %}
</tr>
{% endwith %}
</tbody>
</table>
+ <form method="post" action="{% url 'youtube_book_publish' view.kwargs.slug %}">
+ {% csrf_token %}
+ <button class="btn btn-primary">
+ Opublikuj wszystko na YouTube
+ </button>
+ </form>
</div>
{% endblock %}