Browse Source

Кнопки выводятся рядом в строку #28

pull/30/head
Artur Galyamov 2 years ago
parent
commit
69cb504252
  1. 24
      cms/templates/articles/new.html

24
cms/templates/articles/new.html

@ -14,13 +14,19 @@
{% csrf_token %}
{% bootstrap_form new_article_form %}
{% buttons %}
<button
class="btn btn-primary"
type="submit"
>
Продвинуть
</button>
<div id="vkShare"></div>
<div class="row">
<div class="col">
<button
class="btn btn-primary"
type="submit"
>
Продвинуть
</button>
</div>
<div id="vkShare" class="col"></div>
</div>
{% endbuttons %}
</form>
</div>
@ -36,8 +42,8 @@
url: articleLink
}
const buttonType = {
type: "link",
text: 'Посмотреть'
type: "custom",
text: '<img src="https://vk.com/images/share_32_2x.png" width="32" height="32" alt="share icon" />'
}
document.getElementById('vkShare').innerHTML = VK.Share.button(gen, buttonType)
}

Loading…
Cancel
Save