Changeset - 929388220cfc
[Not reviewed]
0 5 0
Joel Addison - 5 years ago 2019-10-20 23:07:50
joel@addison.net.au
Update speaker styling

Use site base template for all pages.
Fix speaker profile to work with Bootstrap 4.
5 files changed with 16 insertions and 23 deletions:
0 comments (0 inline, 0 general)
pinaxcon/templates/symposion/schedule/presentation_detail.html
Show inline comments
...
 
@@ -28,3 +28,3 @@
 
          {% speaker_photo speaker 120 as speaker_photo_url %}
 
          <img src="{{ speaker_photo_url }}" class="rounded-circle">
 
          <img src="{{ speaker_photo_url }}" alt="{{ speaker }}" class="rounded-circle img-fluid">
 
          <p>
pinaxcon/templates/symposion/speakers/base.html
Show inline comments
 
{% extends "utility_page.html" %}
 

	
 
{% block utility_body %}
 
  {% block proposals_body %}
 
  {% endblock %}
 
{% endblock %}
 
{% extends "site_base.html" %}
pinaxcon/templates/symposion/speakers/speaker_create.html
Show inline comments
...
 
@@ -7,3 +7,3 @@
 

	
 
{% block proposals_body %}
 
{% block content %}
 
    <form class="form-horizontal" method="POST" action="" enctype="multipart/form-data">
pinaxcon/templates/symposion/speakers/speaker_edit.html
Show inline comments
...
 
@@ -7,3 +7,3 @@
 

	
 
{% block proposals_body %}
 
{% block content %}
 
    <form class="form-horizontal" method="POST" action="" enctype="multipart/form-data">
pinaxcon/templates/symposion/speakers/speaker_profile.html
Show inline comments
 
{% extends "site_base.html" %}
 
{% extends "symposion/speakers/base.html" %}
 

	
...
 
@@ -6,18 +6,10 @@
 

	
 
{% if speaker.photo %}
 
  {% block header_inset_image %}{% speaker_photo speaker 512 as speaker_photo %}{{ speaker_photo }}{% endblock %}
 
{% endif %}
 

	
 
{% block header_title %}{{ speaker.name }}{% endblock %}
 

	
 
{% block header_paragraph %}
 
{% endblock %}
 

	
 
{% block head_title %}{{ speaker.name }}{% endblock %}
 
{% block page_title %}{{ speaker.name }}{% endblock %}
 

	
 
{% block content %}
 
<div class="row">
 
  <div class="col-md-8">
 
    {% if speaker.user == request.user or request.user.is_staff %}
 
    <p>
 
      <a class="btn btn-default pull-right" href="{% url "speaker_edit" speaker.pk %}">Edit</a>
 
    </p>
 
      <a class="btn btn-secondary float-right" href="{% url "speaker_edit" speaker.pk %}">Edit</a>
 
    {% endif %}
...
 
@@ -43,5 +35,11 @@
 
      {% empty %}
 
      <p>No presentations. This page is only visible to staff until there is a presentation.</p>
 
        <li>No presentations. This page is only visible to staff until there is a presentation.</li>
 
      {% endfor %}
 
    </ul>
 
  </div>
 
  <div class="col-md-4">
 
    {% speaker_photo speaker 512 as speaker_photo_url %}
 
    <img src="{{ speaker_photo_url }}" alt="{{ speaker.name }}" class="rounded-circle img-fluid">
 
  </div>
 
</div>
 
{% endblock %}
0 comments (0 inline, 0 general)