Browse Source

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

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

12
cms/templates/articles/new.html

@ -14,13 +14,19 @@
{% csrf_token %} {% csrf_token %}
{% bootstrap_form new_article_form %} {% bootstrap_form new_article_form %}
{% buttons %} {% buttons %}
<div class="row">
<div class="col">
<button <button
class="btn btn-primary" class="btn btn-primary"
type="submit" type="submit"
> >
Продвинуть Продвинуть
</button> </button>
<div id="vkShare"></div> </div>
<div id="vkShare" class="col"></div>
</div>
{% endbuttons %} {% endbuttons %}
</form> </form>
</div> </div>
@ -36,8 +42,8 @@
url: articleLink url: articleLink
} }
const buttonType = { const buttonType = {
type: "link", type: "custom",
text: 'Посмотреть' 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) document.getElementById('vkShare').innerHTML = VK.Share.button(gen, buttonType)
} }

Loading…
Cancel
Save