forked from rc/aircox
		
	integrate tiptap text editor
This commit is contained in:
		@ -136,9 +136,9 @@ Usefull context:
 | 
			
		||||
 | 
			
		||||
                {% block content-container %}
 | 
			
		||||
                {% if page and page.content %}
 | 
			
		||||
                <section class="container content page-content">
 | 
			
		||||
                <section class="container no-reset content page-content">
 | 
			
		||||
                    {% block content %}
 | 
			
		||||
                        {{ page.display_content|safe }}
 | 
			
		||||
                    {{ page.content|safe }}
 | 
			
		||||
                    {% endblock %}
 | 
			
		||||
                </section>
 | 
			
		||||
                {% endif %}
 | 
			
		||||
 | 
			
		||||
@ -18,6 +18,12 @@ aircox.labels = {% inline_labels %}
 | 
			
		||||
{% endif %}
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 | 
			
		||||
{% block title-container %}
 | 
			
		||||
{{ block.super }}
 | 
			
		||||
{% block page-actions %}
 | 
			
		||||
    {% include "aircox/widgets/page_actions.html" %}
 | 
			
		||||
{% endblock %}
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 | 
			
		||||
{% block content-container %}
 | 
			
		||||
<a-select-file ref="cover-select"
 | 
			
		||||
@ -102,8 +108,11 @@ aircox.labels = {% inline_labels %}
 | 
			
		||||
    <div>
 | 
			
		||||
        <div class="field {% if field.name != "content" %}is-horizontal{% endif %}">
 | 
			
		||||
            <label class="label">{{ field.label }}</label>
 | 
			
		||||
            <div class="control clear-unset">
 | 
			
		||||
            <div class="control clear-unset no-reset">
 | 
			
		||||
                <a-editor name="{{ field.name }}" initial="{{ field.value }}"/>
 | 
			
		||||
                {% comment %}
 | 
			
		||||
                <textarea name="{{ field.name }}" class="is-fullwidth height-25">{{ field.value|default:""|striptags|safe }}</textarea>
 | 
			
		||||
                {% endcomment %}
 | 
			
		||||
            </div>
 | 
			
		||||
            <p class="help">{{ field.help_text }}</p>
 | 
			
		||||
        </div>
 | 
			
		||||
 | 
			
		||||
@ -2,24 +2,24 @@
 | 
			
		||||
 | 
			
		||||
{% block user-actions-container %}
 | 
			
		||||
{% if user.is_authenticated %}
 | 
			
		||||
{{ object.get_status_display }}
 | 
			
		||||
{{ object.get_status_display|capfirst }}
 | 
			
		||||
 | 
			
		||||
{% if object.pub_date %}
 | 
			
		||||
    ({{ object.pub_date|date:"d/m/Y H:i" }})
 | 
			
		||||
{% endif %}
 | 
			
		||||
{% endif %}
 | 
			
		||||
 | 
			
		||||
{% if user.is_authenticated and can_edit %}
 | 
			
		||||
{% if user.is_authenticated %}
 | 
			
		||||
{% with request.resolver_match.view_name as view_name %}
 | 
			
		||||
   
 | 
			
		||||
  {% if "-edit" in view_name %}
 | 
			
		||||
  {% if request.path != object.get_absolute_url %}
 | 
			
		||||
  <a href="{% url view_name|detail_view page.slug %}" target="_self" title="{% translate 'View' %} {{ page }}">
 | 
			
		||||
      <span class="icon">
 | 
			
		||||
          <i class="fa-regular fa-eye"></i>
 | 
			
		||||
      </span>
 | 
			
		||||
      <span>{% translate 'View' %} </span>
 | 
			
		||||
  </a>
 | 
			
		||||
  {% else %}
 | 
			
		||||
  {% elif can_edit %}
 | 
			
		||||
  <a href="{% url view_name|edit_view page.pk %}" target="_self" title="{% translate 'Edit' %} {{ page }}">
 | 
			
		||||
      <span class="icon">
 | 
			
		||||
          <i class="fa-solid fa-pencil"></i>
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user